-
Notifications
You must be signed in to change notification settings - Fork 13
Hardware Setup
Faisal Thaheem edited this page Sep 17, 2018
·
2 revisions
The project requires two sensors and an IR blaster to function, these are
- A PIR Sensor to detect activity in the area
- A DHT-22 sensor to observe the ambient temperature and humidity levels
- An IR Blaster to relay commands from the mobile app to the air conditioner
The following image shows these assembled
These are designed to be used with mobile phone chargers and are terminated on a usb port (only for power) and share a common power supply circuit which can be see in the following schematic
The above schematic also shows the circuit for the IR blaster. These circuits are hooked to ESP-01 modules which are available from aliexpress.com. The schematic for the PIR sensor is shown below
Once the circuits are assembled the ESP modules can be flashed with the following firmware
Arduino IDE or similar can be used to compile and flash the above firmware to the ESP modules.