Overview
LM35 is an analog temperature sensor, creates an analog voltage output corresponding to the temperature value. The conversion temperature ranges between -55 to +125 degree Celsius. The accuracy of step temperature is 0.5 degree Celsius.
Example image of this example The temperature reading is 27.83 degree Celsius. |
It's supplied from a DC voltage between 4 V to 30 V. The physical package is mostly in TO-92.
LM35DZ in TO-92 Package |
Since the output data is analog voltage, the temperature reading is easily accomplished with the MCU ADC module. With Arduino analogRead() function, the analog temperature reading is done from scratch.
A display device must connect to Arduino module to display the data. Arduino display module are available in many forms and very low cost. As mentioned so often in the previous post, I decide to use SH1106.
Arduino Interfacing And Programming
In this example, LM35DZ connects to pin A0 of Arduino Uno to output the analog voltage correspond to the temperature value. An SH1106 OLED GLCD display the temperature data.
Schematic Diagram |
To find the analog temperature value, I follow the following step.
- Read the analog voltage from pin A0 (or any other analog input pin)
- Make a calculation to find the voltage
- Multiply the voltage with 100 to make the temperature become understandable to human
Arduino Sketch |
Click here if you want to download archive of this example.
No comments:
Post a Comment