A Wireless Application of The Rain, Humidity and Temperature Sensors Based on Arduino and Bluetooth
1. Intelligent Control Laboratory, Dept. of Engineering Science, National Cheng Kung University
Advisor : Prof. Teh-Lu Liao
Student : Zheng-De Liu
2. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
Motivation
Block Diagram
Framework Diagram
Arduino Introduction
Device Description
Flow Diagram
Master Code & Slave Code
Performance
2
3. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
3
Schematic View
Rain Sensor
Humidity and
Temperature Sensor
Control
Control
LCM
Screen
Bluetooth
5. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
5
Microprocessor
Rain Sensor
Temprature and
Humidity Sensor
Wireless
Transceiver
Uart
Host
Debug
Uart
I/O
I/O
Microprocessor
Light and
Buzzer
LCM
Screen
Wireless
Transceiver
Uart
Uart
Host
Debug
I/O
IIC
Central Node Sensor Node
6. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
6
Arduino-
ATMEGA2560
YL-83
DHT-11
HC-05
Uart
Serial
Monitor
Uart
I/O
I/O
Arduino-
ATMEGA2560
Light and
Buzzer
LCM
1602
HC-05
Uart
Uart
Serial
Monitor
I/O
IIC
Central Node Sensor Node
7. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
Arduino is an open-source
electronics prototyping
platformbased on flexible,
easy-to-use hardware and
software.
7
8. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
8
Rain Sensor : YL-83
Sensitivity: 0~5V
Humidity and Temperature
Sensor : DHT11
Sensitivity:0~50 oC
20~90%RH
Bluetooth : HC-05
LCM : 1602
8-Channels Relay DIY Extension Cord
9. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
9
Arduino-1
LCM
Extension
cord
Relay
Bizzer
Bluetooth
Light
10. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
10
Rain
Sensor
Humidity and Tempture
Sensor
Bluetoooth
Arduino-2
11. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
11
HC-05
Slave
Slave
Slave
Master
12. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
The Bluetooth module has two work modes:
Commands response mode and auto connection mode.
Ex: AT+ROLE=1 (Enter) Can change from M to S .
AT+BIND=12,3,287044 (Enter) Binding address.
12
13. Intelligent Control Laboratory, Dept. of Engineering Science,
National Cheng Kung University
13
Start
BT
match?
Finding
Slave?
Raining?
Set AT-command
LCM show
DHT11-Sensor
Reading DHT11
Form BT
LCM show
YL-83-Sensor
Reading YL-83
Form BT
Switch
on?
Buzzer call
& Light on
Y
N
N
Y
N
Y
N
Y
LCM show
standby
LCM show
standby
LCM show
standby
Rain
stopped?
End
Y
N