0 reading from MCP3008

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
egutting
 
Posts: 297
Joined: Wed Nov 14, 2012 12:57 am

0 reading from MCP3008

Post by egutting »

I am working on the learning project where you capture the temperature and load it to COSM. I have the RPi set up and the code seems to be working correctly. The problem is it keeps reading the adc0 as 0 which shows as -50 C & -58 F. I have checked the TMP36 and it is reading .75 volts and I have bypassed the cobbler and wired straight into the ribbon (to check my soldering). Could my MCP3008 be bad, or am I missing something? I wired the breadboard identical to the images shown.

Thanks!

Joe Gutting

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: 0 reading from MCP3008

Post by adafruit »

its unlikely that the chip is bad, how about you start over with the cobbler, then post a clear photo of your wiring? we'll check it out! Also, post a screenshot of the output of the python sketch

User avatar
egutting
 
Posts: 297
Joined: Wed Nov 14, 2012 12:57 am

Re: 0 reading from MCP3008

Post by egutting »

Looks like I needed to do an update on apt-get as once I did that everything seemed to install correctly and it is working now.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: 0 reading from MCP3008

Post by adafruit »

great :)

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”