Skip to content

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

  1. A PIR Sensor to detect activity in the area
  2. A DHT-22 sensor to observe the ambient temperature and humidity levels
  3. An IR Blaster to relay commands from the mobile app to the air conditioner

The following image shows these assembled

Sensors and IR Blaster

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 power supply 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 PIR Schematic

Once the circuits are assembled the ESP modules can be flashed with the following firmware

Sensor Firmware
IR Blaster https://github.com/faisalthaheem/machine-learnt-air-conditioning/tree/master/Arduino/esp_raw_ir
PIR Sensor https://github.com/faisalthaheem/machine-learnt-air-conditioning/tree/master/Arduino/lounge-pir
DHT Sensor https://github.com/faisalthaheem/machine-learnt-air-conditioning/tree/master/Arduino/lounge-dht

Arduino IDE or similar can be used to compile and flash the above firmware to the ESP modules.

Clone this wiki locally