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
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
arduino.jpg
cable.jpg
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

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

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

the coding is given here.

Downloads

Connection

images.png
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

Thus this is very simple and easy way to save power.