Offline
Newbie
Karma: 0
Posts: 7
|
 |
« on: December 20, 2012, 03:49:48 am » |
Hi there, I need an advice to read the value from a TMP36 temperature sensor.
I connected: PIN1 to VCC (5V from Arduino UNO board, tried also with 3.3V) PIN2 to A0 (analog input) PIN3 to GND (GND of arduino UNO board)
No resistors or capacitors are connected to this section of the circuit.
Then I uploaded a simple sketch to read the value. The read values (from serial monitor) are right, but the TMP36 gets very hot, so the values keep raising. At about 100°C I unplagged the power in order to save the component.
Any ideas about why this behaviour?
Thanks in advance, Fabio
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 269
Posts: 25418
Solder is electric glue
|
 |
« Reply #1 on: December 20, 2012, 04:09:19 am » |
No resistors or capacitors are connected to this section of the circuit. The data sheet shows a capacitor across the supply on every single example. What makes you think you don't need one? It is probbly oscillating.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #2 on: December 20, 2012, 04:22:59 am » |
I'm sorry but I'm a novice in electronics. I'll try adding it, and let you know.
Thanks
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 269
Posts: 25418
Solder is electric glue
|
 |
« Reply #3 on: December 20, 2012, 04:34:14 am » |
Also check you have the power and ground right, that diagram in the data sheet is looking at the pins.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #4 on: December 20, 2012, 04:26:20 pm » |
Ok Mike, I've tried adding the capacitor (today I have only a 0,47uF), but nothing changed. Power supply is the 3.3V supply from arduino board (tried reducing input voltage). I also tried unplugging the analog output pin of the sensor (just to be sure that the problem is on power supply side..)
What else could be? A faulty sensor?
Thanks, Fabio
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 269
Posts: 25418
Solder is electric glue
|
 |
« Reply #5 on: December 20, 2012, 05:01:55 pm » |
I have only a 0,47uF Might get away with that it s hard to tell. Can you post a photo of your setup so we can see the connections. Have you gone through this? http://learn.adafruit.com/tmp36-temperature-sensor
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #6 on: December 20, 2012, 05:27:02 pm » |
I've read that now, thanks. I noticed that the V+ and GND pins are turned with respect to what is stated on the data sheet, what do you think about that? Will I risk to burn the sensor in case I try to connect that way?
In case there's no problem buying another one, but it takes time to arrive..
I'm attaching my setup.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 269
Posts: 25418
Solder is electric glue
|
 |
« Reply #7 on: December 20, 2012, 05:34:18 pm » |
I would go with the tutorial. If the supply were swapped I would expect it to get hot.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #8 on: December 20, 2012, 05:41:15 pm » |
Damn datasheet.. now it works without getting hot!! Thanks a lot for your help!
Fabio
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 230
|
 |
« Reply #9 on: December 20, 2012, 07:32:47 pm » |
You had VDD on the ground side it shows in your Picture it's some times misleading how the pin are like the 2n7000 some show bottom up pin side and some show top down This data sheet has it right http://www.analog.com/static/imported-files/data_sheets/TMP35_36_37.pdf
|
|
|
|
« Last Edit: December 20, 2012, 07:35:54 pm by be80be »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #10 on: December 21, 2012, 02:33:23 am » |
Yep.. You're right. I didn't realize that the view of the datasheet was reverse. The view of the sample (3D) was clearer. So it was my fault, not the datasheet.  Thanks a lot again.
|
|
|
|
|
Logged
|
|
|
|
|
|