Vayu - A Customizable Smart Air Cooler Controller

Published Dec 11, 2021
 20 hours to build
 Intermediate

A customizable smart air coolers/conditioners controller with IoT integration.

display image

Components Used

MOC3020 Optocoupler
Triac & SCR Output Optocouplers 6Pin 400V Optocoupl Rand Phs Triac Drvr
1
4N35 Optocoupler
Transistor Output Optocouplers Phototransistor Out
1
BT136 Triac
Triacs Triac
3
ESP8266 WiFi Module
ESP8266 is a system on chip (SoC) which provides WIFI capability for embedded applications. This enables internet connectivity to embedded applications. ESP8266 modules are mostly used in Internet of Things(IoT) applications.
1
Terminal Blocks 2 POS 3.5mm
Fixed Terminal Blocks PT 1.5/2-3.5H 2POS HRZ 3.5mm SCREW
2
5VDC Adapters Power Supply
Wall Mount AC Adapters ac-dc, 5 Vdc, 2 A, SW, wall-plug, EU, P5 center pos, level VI, black
1
3.3V Voltage Regulator AMS1117
LDO Voltage Regulators 1A,Pos Fix Vltg LDO Linear Reg
1
Power Supply Circuit
220VAC to 5V and 3.3VDC Circuitry
1
Description

 

What it does

A customizable smart air coolers/conditioners controller with IoT integration lets the manufacturers get a room for their production of the coolers from building the control unit. In the upcoming days, it is expected that most of our electronic devices will be connected thus leading to the sustainability of this unit.

How it works

The controller is an advanced PI-type controller with anti-windup for self-controlling and adapting. The PID calculations are made at 0.1Hz, this slow rate is okay since the temperature is a sluggish changing variable. The motor control is a phase angle control for smooth dimming and variable AC drive of the motor. Firstly, it looks for an input command from the WiFi, if something new is in the buffer, it reads it and changes its setpoint. Else it goes with the previously set setpoint. Then it calculates the PI value needed for the delay time of the phase angle control, then it drives the motor with Triac, three Triac are parallelly placed for the high current drive of the motor. This phase angle control is also done by the same microcontroller by detecting the zero cross, so there is an interrupt occurring when the microcontroller is not in deep sleep mode, when it wakes up (every 10s) it calculates the PI value and with that, the interrupt mask is set and loops with the drive power of the motor, thus driving the motor with the desired speed. After setting the speed, the microcontroller again goes to sleep mode, and this cycle repeats. The above agenda is written in the firmware which you can find in the attached GitHub link.

Tech used

PI control for setting the power of the compressor fan. The drive of the fan is obtained by phase angle control by zero-cross detection. And we made the PCB in EasyEda.

Codes

Downloads

Flow Chart Download
PCB_PCB-Vayu_2021-11-13 Download
3D_Vayu Download
Schematic_Diagram Download
Vayu-Firmware Download
Comments
Ad