Home Automation System

November 4, 2021

Home Automation System

November 4, 2021

Created By

About This Project

Hello everyone,


Thank You for viewing our project Home Automation System .


This system is designed to control the speed of the fan to cool a light a bulb.


We decided to build this project because today’s light bulbs tend to heat and this can cause blast in the house. Which could turn out to be a huge fire accident! So, we have made an automation system which could be controlled by your smartphone. This will cool out the bulb and the speed also you can control by just sitting and do the work.



There are 5 speed in the fan which can be controlled by the ‘volume up and down ‘buttons of the IR remote. The fan can be turned on by the ‘2’ button of the IR remote. The bulb can be turned on and off by the ‘1’ button of the IR remote. All the button you press will be displayed in the LCD. So, you can say this is a user friendly project.

Ishaan Periwal

I am Ishaan. I enjoy building and creating and my interests range from quantum mechanics to aerospace. I am an avid course taker and constantly is having at least one course, and I have also participated in many sports and other co-curricular activities.

Components Required

  • Arduino UNO
  • Alphanumeric LCD 16 X 2
  • Justboom IR Remote
  • Thermopile IR Sensor TS105-10L5.5mm
  • LED Light Bulb, Frosted GLS
  • Geared DC Motor, 12V
  • Power Relay, SPDT

Schematics

In this image all the components with the connections are given

Code Of Project

   # 
 include 
 <IRremote.h> 
 
  # 
 include 
 <LiquidCrystal.h> 
 
const int 
RECV_PIN = 
 8 
 ; 
IRrecv irrecv 
 ( 
RECV_PIN ) 
 ; 
decode_results results ; 
 LiquidCrystal 
 lcd 
 ( 
 7 
 , 
 6 
 , 
 5 
 , 
 4 
 , 
 3 
 , 
 2 
 ) 
 ; 
 int 
x = 
 0 
 ; 
 int 
y = 
 0 
 ; 
 int 
z = 
 0 
 ; 
 void 
 setup 
 ( 
 ) 
 { 
 pinMode 
 ( 
 12 
 , 
 OUTPUT 
 ) 
 ; 
 pinMode 
 ( 
 10 
 , 
 OUTPUT 
 ) 
 ; 
 pinMode 
 ( 
 9 
 , 
 OUTPUT 
 ) 
 ; 
irrecv . 
 enableIRIn 
 ( 
 ) 
 ; 
 Serial 
 . 
 begin 
 ( 
 9600 
 ) 
 ; 
lcd . 
 begin 
 ( 
 16 
 , 
 2 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 0 
 , 
 0 
 ) 
 ; 
lcd . 
 print 
 ( 
 "Home Automation" 
 ) 
 ; 
 } 
 void 
 loop 
 ( 
 ) 
 { 
 if 
 ( 
irrecv . 
 decode 
 ( 
 & 
results ) 
 ) 
 { 
lcd . 
 clear 
 ( 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 0 
 , 
 0 
 ) 
 ; 
lcd . 
 print 
 ( 
 "Bulb Fan Speed" 
 ) 
 ; 
 if 
 ( 
results . 
value == 
 0xFD08F7 
 ) 
 { 
x ++ 
 ; 
 if 
 ( 
x % 
 2 
 == 
 1 
 ) 
 { 
 digitalWrite 
 ( 
 12 
 , 
 HIGH 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 0 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
 "ON" 
 ) 
 ; 
 } 
 else 
 { 
 digitalWrite 
 ( 
 12 
 , 
 LOW 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 0 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
 "OFF" 
 ) 
 ; 
 } 
 } 
 if 
 ( 
results . 
value == 
 0xFD8877 
 ) 
 { 
y ++ 
 ; 
 if 
 ( 
y % 
 2 
 == 
 1 
 ) 
 { 
 digitalWrite 
 ( 
 9 
 , 
 HIGH 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 5 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
 "ON" 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 else 
 { 
 digitalWrite 
 ( 
 9 
 , 
 LOW 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 5 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
 "OFF" 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 } 
 if 
 ( 
results . 
value == 
 0xFD807F 
 && 
z >= 
 0 
 && 
z < 
 6 
 ) 
 { 
z ++ 
 ; 
 if 
 ( 
z == 
 1 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 51 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 if 
 ( 
z == 
 2 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 102 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 if 
 ( 
z == 
 3 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 153 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 if 
 ( 
z == 
 4 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 204 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 if 
 ( 
z == 
 5 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 255 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 } 
 if 
 ( 
results . 
value == 
 0xFD906F 
 && 
z > 
 0 
 && 
z <= 
 6 
 ) 
 { 
z -- 
 ; 
 if 
 ( 
z == 
 1 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 51 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 if 
 ( 
z == 
 2 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 102 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 if 
 ( 
z == 
 3 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 153 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 if 
 ( 
z == 
 4 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 204 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 if 
 ( 
z == 
 5 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 255 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 if 
 ( 
z == 
 0 
 ) 
 { 
 analogWrite 
 ( 
 10 
 , 
 0 
 ) 
 ; 
lcd . 
 setCursor 
 ( 
 9 
 , 
 2 
 ) 
 ; 
lcd . 
 print 
 ( 
z ) 
 ; 
 } 
 } 
 Serial 
 . 
 println 
 ( 
results . 
value , 
HEX ) 
 ; 
 Serial 
 . 
 print 
 ( 
x ) 
 ; 
 Serial 
 . 
 print 
 ( 
y ) 
 ; 
 Serial 
 . 
 print 
 ( 
z ) 
 ; 
irrecv . 
 resume 
 ( 
 ) 
 ; 
 } 
 } 
  
 
A person is using a laptop computer next to a robot.
By Siddhartha Kumar January 5, 2022
Robotics: Blessing and Curse? Robots have improved healthcare , surveillance, delivery of goods (drones), spacecraft, travel, logistics, etc.
A man is wearing a virtual reality headset and touching a screen.
By Tahreem Jamadar December 28, 2021
Is it time for 3D Printing to Adopt Blockchain Technology? Research has already shown 3D printing has a growing need for cybersecurity.
A group of children are sitting at a table making a robot.
By Dr. Heath Kirby-Miller December 25, 2021
Why STEM Education in Australia The Australian industries to be benefited from STEM include advanced information and communication technology
A red rc truck is sitting on top of a remote control.
December 12, 2021
Arduino IR remote controlled Car The project is arduino based project. the Links pf the projects are given below
A laptop computer is on a tripod on a table.
November 30, 2021
Animation Studios Mechatron Robotics project uses an Arduino uno R3 a LCD and push buttons. It is based on the concept of arduino and LCD
A young boy wearing headphones is using a laptop computer.
By Kiran Gupta November 30, 2021
Machine Learning for Disables can help those disabled people to improve their lives. With the marvel of machine learning doctors
A man wearing a virtual reality headset is working on a robotic arm.
By Kiran Gupta November 7, 2021
What are the Consequences of Not Embracing Robotics & AI? We won’t be able to go ahead as these are the next big things.
A close up of a bottle of vaccine with a virus in the background.
By Rajesh Sharma November 1, 2021
Robotics and the Pandemic 2020. This is where Robotics can come in, robots can help reduce the human contact.
A person is playing with a robotic head on a table.
By Siddhartha Kumar November 1, 2021
Key Elements Most of the Schools are Missing. Everyone has different criteria but one key element remains the same:” The quality of teaching
A person is sitting at a table working on a mobile app.
By Megha Sutar October 20, 2021
Why Learning App & Game Development is Important for Your Kid? Today, most of the kids are taking interest in the Apps and Games
Show More
A person is using a laptop computer next to a robot.
By Siddhartha Kumar January 5, 2022
Robotics: Blessing and Curse? Robots have improved healthcare , surveillance, delivery of goods (drones), spacecraft, travel, logistics, etc.
A man is wearing a virtual reality headset and touching a screen.
By Tahreem Jamadar December 28, 2021
Is it time for 3D Printing to Adopt Blockchain Technology? Research has already shown 3D printing has a growing need for cybersecurity.
A group of children are sitting at a table making a robot.
By Dr. Heath Kirby-Miller December 25, 2021
Why STEM Education in Australia The Australian industries to be benefited from STEM include advanced information and communication technology
A red rc truck is sitting on top of a remote control.
December 12, 2021
Arduino IR remote controlled Car The project is arduino based project. the Links pf the projects are given below
A laptop computer is on a tripod on a table.
November 30, 2021
Animation Studios Mechatron Robotics project uses an Arduino uno R3 a LCD and push buttons. It is based on the concept of arduino and LCD
A young boy wearing headphones is using a laptop computer.
By Kiran Gupta November 30, 2021
Machine Learning for Disables can help those disabled people to improve their lives. With the marvel of machine learning doctors
A man wearing a virtual reality headset is working on a robotic arm.
By Kiran Gupta November 7, 2021
What are the Consequences of Not Embracing Robotics & AI? We won’t be able to go ahead as these are the next big things.
A close up of a bottle of vaccine with a virus in the background.
By Rajesh Sharma November 1, 2021
Robotics and the Pandemic 2020. This is where Robotics can come in, robots can help reduce the human contact.
A person is playing with a robotic head on a table.
By Siddhartha Kumar November 1, 2021
Key Elements Most of the Schools are Missing. Everyone has different criteria but one key element remains the same:” The quality of teaching
Show More