Newbie question how re-calculate a/d value to match acual room temp.
in
Programming Questions
•
2 years ago
Hi
I have got the simple analog to serial arduino program down to the arduino, and it transmit data ( checked via terminal).
Ok then i have got the serielEvent example from prossing site. Then run the program, and the window opens and
i see " received : 432. But the value 432 is just a A/D value (0- 1024). I have the a resistor and a ptc coupled up to
the analog input of the arduino.
The actual room temperature is lets say 20 degrees.
How do i recalculate the value 432 to a read of 20 degrees. I know ofcouse that the hole ideer depends of that my resistor and ptc is linear. Can i add some calculations til the inString line or???, i have not
found any examples like this... How would it look, i got errors when i try to add or divide with inString....
Regards John Hansen, Denmark
1