Displaying the temperature on an LCD screen
We are now going to see how to combine several of the concepts we learned in the previous recipes. We are going to read data from the same analog temperature sensor we used earlier in this chapter, and display the readings from this sensor on the LCD screen we used in the previous recipe.
Getting ready
For this project, you will need an LCD screen. I used a 4 x 20 lines LCD screen with an I2C interface. You can use a smaller LCD screen, but you really need one with an I2C interface or it won't work. You will also need a TMP36 temperature sensor.
This is the link for all the parts I used for this recipe:
- SainSmart I2C LCD screen 4 x 20 (http://www.sainsmart.com/sainsmart-iic-i2c-twi-serial-2004-20x4-lcd-module-shield-for-arduino-uno-mega-r3.html)
- TMP36 sensor (https://www.sparkfun.com/products/10988)
As in the previous recipe, you will also need the I2C display library to control the LCD screen from your Galileo board, which can be found at the...