Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

Interfacing (DSI, CSI, I2C, etc.) • Re: Getting Consistent 0 Readings from MCP3008 ADC on Raspberry Pi Zero 2 W - Wiring and Code Troubleshooting

$
0
0
"The MCP3008 is powered by 3.3V " - but why does the picture above show red wire to 5V and 3rd screenshot has

Code:

VDD   5V       Power to MCP3008
Oops you are absolutely correct. The picture I attached originally was powered by 5V, but after some reading I found that the raspberry pi’s gpio pins allow up to 3.3V, and if I kept powering it via 5V it could damage the pi. I did reconnect them to power the ADC using 3.3V and the REV-C using 5V.I should have attached a photo, but nonetheless I did manage to figure out the ADC library problem and the power problem. The libraries I had used for the ADC were not setup correctly and required a further “install” script that I of course overlooked. On to the power problem, It turned out I needed was a simple DMM test. Where I tested the 5V line after adding one sensor the voltage dropped down a considerable amount (3.96V), which is barely enough to power one sensor. I connected 2 sensors to the 5V line and the voltage dropped again to (3.5V). I now realize that I cannot power these sensors directly through the pi and will need to implement another PCB board that will act as a “5V regulated supply”, or simply splice a 5V 1A outlet plug directly into the 5V and GND rail. Overall, I appreciate everyone who responded in this forum, and your patience with me is nothing short of a miracle.

Regards,
Wildman120

Statistics: Posted by Wildman120 — Sat Mar 29, 2025 7:46 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles