Readings from Tmp36 Drop Off

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Readings from Tmp36 Drop Off

Postby mail929 » Sat Feb 02, 2013 9:12 pm

I'm using a tmp36 with an Arduino Due. The first 5 readings I am getting are normally good (about 70*f or .72v), but after that they drop off to about 31*f or .5v. I have checked the voltage going in and there is no change occationally it drops to 3.32v instead of 3.33v. Any ideas?

Reading, Converting, and Printing Code
Code: Select all
  int reading = analogRead(tempPin); //reads voltage
  float voltage = reading * 3.3;  // saves voltage
  voltage /= 1024; //divides voltage by 1024
  Serial.print(voltage);
  Serial.println(" volts"); //prints voltage
  float tempC = (voltage - 0.5) * 100 ;  //converts to celcius
  Serial.print(tempC); Serial.println(" degrees C"); //prints c
  float tempF = (tempC * 9.0 / 5.0) + 32; //converts to farenhiet
  Serial.print(tempF); Serial.println(" degrees F"); //prints farenhiet
mail929
 
Posts: 4
Joined: Sun Jul 15, 2012 11:31 am

Re: Readings from Tmp36 Drop Off

Postby mail929 » Sat Feb 02, 2013 11:40 pm

It appears to last a little longer when I use my 9v wall adapter
mail929
 
Posts: 4
Joined: Sun Jul 15, 2012 11:31 am

Re: Readings from Tmp36 Drop Off

Postby adafruit_support_bill » Sun Feb 03, 2013 6:42 am

It appears to last a little longer when I use my 9v wall adapter

What were you using before?
User avatar
adafruit_support_bill
 
Posts: 16644
Joined: Sat Feb 07, 2009 9:11 am

Re: Readings from Tmp36 Drop Off

Postby mail929 » Sun Feb 03, 2013 10:38 am

I was using a MicroUSB connection to the programing port.
mail929
 
Posts: 4
Joined: Sun Jul 15, 2012 11:31 am

Re: Readings from Tmp36 Drop Off

Postby mail929 » Sun Feb 03, 2013 11:22 am

Well it appears to be working but I am using a different USB cable. I think it maybe because the wire to the analog from the tmp36 is just stretched tight.
mail929
 
Posts: 4
Joined: Sun Jul 15, 2012 11:31 am


Return to Arduino

Who is online

Users browsing this forum: No registered users and 4 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[23]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]