22
Crowduino UNO-SD/Arduino UNO x1
Crowtail – Base Shield x1
Crowtail – I2C LCD x1
Crowtail – Temperature&Humidity Sensor x1
Crowtail – Cable x2
USB Cable x1
Required Parts
Open the downloaded folder “Crowtail-Advanced kit for Arduino demo code”, navigate to the folder
lib-> DHT, and add DHT to the Arduino library. Open the
P10_Temperature&Humidity_Detecting_
System
with Arduino IDE and upload it.
STEP2:
Connect Crowtail-I2C LCD and Crowtail-Temperature&Humidity Sensor to Crowtail-Base
shield’s I port and D5 port. The complete connection is as follows:
STEP1:
Plug the Crowtail-Base Shield onto the Arduino or Crowduino Board.
Hardware Connection
You will see that the first column of the LCD displays the humidity information of the current environment,
and the second column displays the temperature information of the current environment. When you blow
on the Temperature & Humidity Sensor, you will see Temperature and humidity will also change on LCD.
What will you see
1. Import the LCD and Temperature&Humidity Sensor library.
2. Macro definitions of Temperature&Humidity Sensor pin and DHT11.
3. Create a DHT instance and lcd instance.
4. Initialize the serial monitor, Temperature&Humidity Sensor and lcd.
5. Read the humidity and temperature information from Temperature&Humidity Sensor.
6. Print humidity and temperature information on LCD.
Code overview
DHT library: #include "DHT.h".
Code usage
Содержание Crowtail
Страница 48: ......