Data Sheet
79 : circuit 4b
PROGRAM OVERVIEW
1
Get the analog value from the TMP36 and convert it back to a voltage between 0 and 5V.
2
Calculate the degrees Celsius from this voltage.
3
Calculate the degrees Fahrenheit from this voltage.
4
Clear the LCD.
5
Print the degrees C with a label on the first row.
6
Print the degrees F with a label on the second row.
7
Wait for a second before taking the next reading.
WHAT YOU
SHOULD SEE
The LCD will show the temperature
in Celsius and Fahrenheit. The
temperature readings will update
every second. An easy way to see the
temperature change is to press your
finger to the sensor.
Open the Arduino IDE
Connect the RedBoard to a USB port on your computer.
Open the Sketch:
File > Examples > SIK_Guide_Code-V_4 > SIK_CIRCUIT_4B-TEMPERATURE SENSOR
Select UPLOAD to program the sketch on the RedBoard.