Home Automation
Home Automation
INTRODUCTION
This project is regarding Home Automation which was prototyped during the summer of 2021 and
refined during the summer of 2023, if you are a student of science, you might find it interesting to go
through and learn some new things about IoT (Internet of Things), Cloud Computing and
Microcontrollers.
PURPOSE
The very reason for this project was to automate the home appliances (like: Lights, Fans, Air
Conditioners. Etc.) and to know the status of every device/appliance right on our mobile devices or
laptops or any other device which can access the internet.
APPARATUS
This project required many things from different points in time, here is a list of all the things used during
the entirety of this project:
1. ESP8266:
3. 3D Printed Case:
A case was designed using Blender with the intention of holding all
the components including the Microcontroller, Relay Module, Wires. Etc. Unfortunately, the
data of the same was wiped out of the system for some unforeseen circumstances but a model
closest to the same can be found on Thingiverse. Click here.
5. Wires:
An IR (Infrared) LED was used to turn ON and OFF the Air Conditioner.
CIRCUITRY
To understand the circuitry of this project, firstly let us see the pinout diagram of ESP8266:
In this project GPIO (General Purpose Input/Output) Pins 2,5,12,13,14 are used, along with couple of
3.3V power supply and GND ground pins to provide power supply to the Relay Module.
Relay Circuitry:
Relay is another important circuitry to be discussed in this project. It contains three inlets for wires
which are Normally Closed (NC), Normally Opened (NO) and Common Contact (Common). Initially when
there is power supply and no external signal on the input pin, Inlets Common and NC are connected, and
NO is open. But, as soon as there is an external signal on the input pin of the relay, Common and NO are
connected, and NC is open. This makes the relay act as a CloudSwitch for our project.
Image of the Room Automation Project
Note* LED is wired up with ESP8266 using GPIO and GND pin.
Code Snippet
Arduino IoT Cloud was used to generate control signals to operate the appliances/Things!
On the boot, some pins of the ESP8266 are HIGH which turns ON the appliances connected to them, and
it becomes difficult to handle power cuts due to this fact.
Handling the appliances/Things with the pins which stay LOW on the boot or using a UPS (uninterrupted
Power Supply) could be proposed.
References