Never Mind the Switches(cheap Auto.)
by einzigartig arun in Circuits > Arduino
516 Views, 3 Favorites, 0 Comments
Never Mind the Switches(cheap Auto.)
![Fotolia_83087737_Subscription_Monthly_M.jpg](/proxy/?url=https://content.instructables.com/FI5/AR4Z/J8YRJH0V/FI5AR4ZJ8YRJH0V.jpg&filename=Fotolia_83087737_Subscription_Monthly_M.jpg)
![IMG_20171002_201028.jpg](/proxy/?url=https://content.instructables.com/FOY/0IX5/J86HTOJJ/FOY0IX5J86HTOJJ.jpg&filename=IMG_20171002_201028.jpg)
This is a very basic and simple project.
the aim of this is TO SWITCH ON LIGHT AND FAN IN A ROOM WHEN SOMEONE ENTERS THE ROOM AND START COUNTING THE NUMBER OF HEADS IN,FINALLY OFF THE APPLIANCES WHEN NO BODY IS INSIDE THE ROOM.
Items Required
![images.jpg](/proxy/?url=https://content.instructables.com/FIF/8DCF/J8YRKLC8/FIF8DCFJ8YRKLC8.jpg&filename=images.jpg)
![arduino.jpg](/proxy/?url=https://content.instructables.com/FU1/4C54/J8UH1Z8D/FU14C54J8UH1Z8D.jpg&filename=arduino.jpg)
![cable.jpg](/proxy/?url=https://content.instructables.com/FE0/WAX4/J8UH1Z2F/FE0WAX4J8UH1Z2F.jpg&filename=cable.jpg)
![IMG_20171002_200950.jpg](/proxy/?url=https://content.instructables.com/FN5/M54A/J86HTOFZ/FN5M54AJ86HTOFZ.jpg&filename=IMG_20171002_200950.jpg)
the components used are
1.HC-06 ultrasonic sensor (qty-2)
2.relay to control AC(two)
3.arduino UNO R3
Ultrasonics Distance Measuring Sensor
![images.jpg](/proxy/?url=https://content.instructables.com/FIF/8DCF/J8YRKLC8/FIF8DCFJ8YRKLC8.jpg&filename=images.jpg)
this is used to detect any obstacle passing through this sensor.
one is placed inside and other is placed outside the entrance of the room.
An obstacle is detected if the distance output of the module suddenly drops compared to the relative.
thus the no of person inside the room is analysed using the arduino and if any person is inside the room the lights and fans are switched on by means of a relay.
Relay
![2 channel relay.jpg](/proxy/?url=https://content.instructables.com/FE9/KRRS/J8AGPXGV/FE9KRRSJ8AGPXGV.jpg&filename=2 channel relay.jpg)
The relay is just an interface between the arduino and the appliances running in 220v ac(fan & lights).
according to this coding the output from relay is taken from the normally closed connection.
Thus the appliances can be used even if the system is off.
Coding With IDE
![wallhaven-462849.png](/proxy/?url=https://content.instructables.com/FIE/C7R5/J8UH2168/FIEC7R5J8UH2168.png&filename=wallhaven-462849.png)
the coding is given here.
Downloads
Connection
![images.png](/proxy/?url=https://content.instructables.com/FID/5T0Z/J8YRKMWH/FID5T0ZJ8YRKMWH.png&filename=images.png)
![LTI_connection_LMS.jpg](/proxy/?url=https://content.instructables.com/FT6/KS30/J8YRCYEI/FT6KS30J8YRCYEI.jpg&filename=LTI_connection_LMS.jpg)
BE CAREFUL WHILE WORKING WITH A.C.
arduino connection
Arduino pin
ultrasonics 1 (OUT) : trig---------------------------------6
echo-------------------------------7
ultrasonics 2(in): trig-----------------------------------8
echo--------------------------------9
relay: In1-----------------------------------------------------2
In2------------------------------------------------------3
connection complete!!
Power Saving
![images (1).jpg](/proxy/?url=https://content.instructables.com/FKS/O9Y9/J8YRKNJG/FKSO9Y9J8YRKNJG.jpg&filename=images (1).jpg)
Thus this is very simple and easy way to save power.