OPEN-SMART Email:
- 33 -
9 Lesson 5: Temperature and display
9.1 Overview
Usually we need to know the temperature of many places, such as baby room, warehouse,
greenhouse, incubator, fish tank.
LM75A temperature sensor we used is a high-speed I2C interface temperature sensor and it can
converted the temperature into a digital signal directly in the temperature range of -55
℃
~ +
125
℃
. MCU can read data from its internal registers directly through the I2C bus, and operate
the 4 data registers to set different operation modes. The module can not only measure the
temperature but you can set the over-temperature protection temperature. It is widely used.
In this lesson, you can learn how to get temperature and display integer part of the temperature on
the 4-digit tube.
9.2 Upload code for lesson 5
1) Open lesson5 example
Double click the file in the directory of
\arduino-1.6.5-r2\libraries\RichUNO\examples\L5_Temperature_Display
So that you find the window below: