Microduino OLED temperature and humidity meter(DHT11, SHT10, AM2321)

From Microduino Wiki
Jump to: navigation, search
Language: English  • 中文

Objective

This tutorial teach you how to use three temperature and humidity sensors, DHT11, SHT10 and AM2321, and use the OLED to display result.

Equipment


First Experiment (DHT11)

Schematic

MicroduinoOLED温湿度计原理图(DHT11).jpg

Microduino-OLED's wire connects to Microduino-Cube-S1's slot, and then connects to sensor.

Program

Download program: https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Sensor/OLED_DHT11

Debug

Step 1: Download DHTlib library, and unzip it to the libraries folder of Arduino IDE, and then restart IDE. https://github.com/RobTillaart/Arduino/tree/master/libraries/DHTlib

Step 2: Copy code to IDE and compile it.

Step 3: Set up circuit, as follows:

MicroduinoOLED温湿度计连接图(DHT11).jpg

Step 4: Run program.

Step 5: Observe the OLED. Find a hot object to close the temperature sensor or blowing on the sensor, the OLED will display the result.

Result

After DHT11 sensor near the heat source, the OLED displayed value will rise, leave the heat source temperature will gradually reduce. Blowing on the sensor, the number will rise too.


Second Experiment(SHT10)

Schematic

MicroduinoOLED温湿度计原理图(SHT10).jpg

Microduino-OLED's wire connects to Microduino-Cube-S1's slot, and then connects to sensor.

Program

Download program: https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Sensor/OLED_SHT10

Debug

Step 1: Download SHT10 library, and uncompress it to libraries folder of Arduino IDE, then restart IDE. https://github.com/practicalarduino/SHT1x

Step 2: Copy the code to IDE and compile it.

Step 3: Set up circuit, as follows:

Step 4: Run program.

Step 5: Observe the OLED. Find a hot object to close the temperature sensor or blowing on the sensor, the OLED will display the result.

Result

After SHT10 sensor near the heat source, the OLED displayed value will rise, leave the heat source temperature will gradually reduce. Blowing on the sensor, the number will rise too.


Third Experiment(AM2321)

Schematic

MicroduinoOLED温湿度计原理图(AM2321).jpg

Program

Download program: https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Sensor/OLED_AM2321

Debug

Step 1: Download AM2312 library, and uncompress it to libraries folder of Arduino IDE, then restart IDE. https://github.com/wangdong/AM2321

Step 2: Copy the code to IDE and compile it.

Step 3: Set up circuit, as follows:

MicroduinoOLED温湿度计连接图(AM2321).jpg

Plug in Microduino-Core and Microduino-FT232R to Microduino-Weatherstation's two slots.

Step 4: Run program.

Step 5: Observe the OLED. Find a hot object to close the temperature sensor or blowing on the sensor, the OLED will display the result.


Result

After AM2321 sensor near the heat source, the OLED displayed value will rise, leave the heat source temperature will gradually reduce. Blowing on the sensor, the number will rise too.

VIDEO