Microduino OLED thermometer(LM35, DS18b20)

来自Microduino Wikipedia
Pkj讨论 | 贡献2014年4月2日 (三) 14:08的版本 (Created page with "{{Language | Microduino OLED温度计(LM35, DS18b20)}} {| style="width: 800px;" |- | ==Objective== This tutorial will teach you using two temperature sensor, that are LM35 and...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
Language English

Objective

This tutorial will teach you using two temperature sensor, that are LM35 and DS18B20, and use the OLED module to display the temperature.

Equipment


First experiment (LM35 temperature sensor)

Schematic

LM35 and DS18B20 use the same pin connection.

OLED IIC connection method:

OLED Core Core+
SDA A4 SDA
SCL A5 SCL
3V3 3V3 3V3
GND GND GND

Program

LM35 and DS18B20 use the same program.

Refer to MicroduinoOLEDThermometerLM35-DS18B20.ino


Debug

Step 1:Copy the code to IDE and compile it

Step 2:Set up the circuit, as follows:

Step 3:Download the program and then run it.

Step 4:Observe the OLED module. Find a hot object to close the temperature sensor, the OLED will display the value.


Result

After LM35 sensor near the heat source, the OLED displayed value will rise, leave the heat source temperature will gradually reduce.


Experiment (DS18B20 temperature)

Schematic

LM35 and DS18B20 use the same pin connection.

OLED IIC connection method:

OLED Core Core+
SDA A4 SDA
SCL A5 SCL
3V3 3V3 3V3
GND GND GND

Program

LM35 and DS18B20 use the same program.

Refers to MicroduinoOLEDThermometerLM35-DS18B20.ino


Debug

Step 1:Copy the code to IDE and compile it

Step 2:Set up the circuit, as follows:

Step 3:Download the program and then run it.

Step 4:Observe the OLED. Find a hot object to close the temperature sensor, the digital tube will display the value.

Result

After DS18B20 sensor near the heat source, the digital tube displayed value will rise, leave the heat source temperature will gradually reduce.

Video

LM35: http://v.youku.com/v_show/id_XNjkwMTQxMDY4.html

DS18B20: http://v.youku.com/v_show/id_XNjkwMTMyMDcy.html