Introduction: Never Mind the Switches(cheap Auto.)

Picture of Never Mind the Switches(cheap Auto.)

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.

Step 1: Items Required

Picture of Items Required

the components used are

1.HC-06 ultrasonic sensor (qty-2)

2.relay to control AC(two)

3.arduino UNO R3

Step 2: Ultrasonics Distance Measuring Sensor

Picture of Ultrasonics Distance Measuring Sensor

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.

Step 3: Relay

Picture of Relay

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.

Step 4: Coding With IDE

Picture of Coding With IDE

the coding is given here.

Step 5: Connection

Picture of Connection

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!!

Step 6: Power Saving

Picture of Power Saving

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

Comments

About This Instructable

114views

2favorites

Bio: I like to do robotics and automation projects.* denke anders!(think different)
More by einzigartig arun:Learn Arduino in 20 Mins(simplified)Learn SERVO Control (at a Glance)Learn ARDUINO(in 20 Mins)
Add instructable to: