| Arduino Forum ::  Members :: kukulo
 Show Posts Pages: [1]
 1 Products / The Arduino Starter Kit / Re: [3/Love-o-meter] it seems TMP36 doesn't work (volts: 0.00 ; degrees: -50.00) on: January 30, 2013, 05:55:27 am Quote from: hiduino on January 26, 2013, 04:38:26 amQuote from: kukulo on January 23, 2013, 07:51:11 amI implemented project 03 (love-o-meter) but the value measured by the sensor varies between 144 and 146, that means 0 volts and a temperature of -50.00 degrees.The formula for the voltage should be;Voltage = (sensor / 1024) X 5.0So if you had a sensor value of 145 then it should be (145/1024) X 5 = 0.71 volts, not 0 volts.Thank you, hiduino!Do you know what? I calculated Voltage by multiplying to 0.5 instead of 5.0   Adjusting the multiplication factor, it works fine.Just a short note: if I write "Voltage = (sensor /1024) * 5.0", Voltage is calculated as 0.00; instead, if I write "Voltage = (sensor /1024.0) * 5.0", the result is correct (not zero).Do I need to write any number using at least a decimal place after point?But this is not really a problem for me: probably, a better knowledge of this specific coding language could help me in avoiding this kind of mistakes.
 2 Products / The Arduino Starter Kit / [3/Love-o-meter] it seems TMP36 doesn't work (volts: 0.00 ; degrees: -50.00) on: January 23, 2013, 07:51:11 am I'm a beginner and I'm trying to train myself following step-by-step "Arduino Project Book" teachings.I implemented project 03 (love-o-meter) but the value measured by the sensor varies between 144 and 146, that means 0 volts and a temperature of -50.00 degrees.I tried to "heat" the sensor for some minutes with my fingers (preheated) without any results.The circuit is (or seems to be) the one explained on the book, and the same is for the code.Is it possible there is some problem with the sensor?Thanks.
 Pages: [1]