Introduction: Home Automation With Blink (eye/organ)

About: A diy learner and I love computers..

To control appliances with eye blink and provide system for cheap home automation.

Step 1: Aim

Well the aim was to design a simple, cheap and easy to build home automation system which can be controlled by simple blink detection such as eye or any organ movement. A few requirements for the system were:

1. Should be able to {switch-on} and {switch-off} the device.

2. Should be able to able to control multiple devices.

3. Should be cheap and easy as well as robust.

4. It should distinguish between intentional and unintentional blinks for eye.

5. Should be fun as well !!

Keeping above things in mind , as nobody can wait to see it works, above image is the working prototype for the proposed system which we implemented in our projects. A detailed description with few changes , future scope, program code and video will be followed below.

Step 2: Components

Step 3: Description:

1. Arduino : Uno was the cheapest and oldest of the series for our specifications. It has a controlled and stable power supply for theoretically controlling and powering all the components used. It is programmed used the arduino - IDE and more details can be found on arduino homepage.

2. IR sensors : The ir-sensors used is a cheap module with ir-led and a photo diode .The module consists of a pot. to control the sensitivity of the module .The module if consists of active low/high control then it`s better. If not possible to buy ,I will tell the changes in the code later.( More is given in the ir sensor diagram attached).

3. Voltage regulator : 5V power supply module is n=made using a 5v regulator (7805) and darling-ton pair. There are also many links for the diy regulated supply.

4. Relay module : The relay module consists of two relays and opto-coupler to save the arduino from power surges and other spikes. It can control two devices but you can buy more channel relay module or make yourself one.

5. RF-module: The rf-transmitter and rf-recevier module is inbuilt with encoder and decoder (ht12-e/d). The module also comes with inbuilt switch to control and interact with multiple transmitters without interference and comes handy in full scale deployment of system.

The rf-tx/rx can be soldered on the module easily . Simply attach two jumpers on the ANT pin provided on the module. It should be soldered on it to provide range to the system.

6. Power supply: The 12v power adapter can be powered with direct AC supply and link is provided above.The transmitter side power supply is made with connecting two 3.5V dc spare cells i had. The output voltage was 7.5V for the supply regulated with 5V regulator.

(The 9v power supply was not able to provide the desired current for long time and gets drained very fast, hence power supply should be kept in mind while designing.)

Step 4: Code:

If active-low is used then use the same code

If active-high is used then change the following

pinout(13,HIGH)

in both the {if conditions},

which will check for high pulse from sensor upon blinking rather than low pulse.

Step 5: Circuit:

Transmitter Side:

The diagram is displayed above.

Apart from the power supply The b0,b1 pins of the rf-transmitter module is connected to digital pins of the ir sensor module to give digital output. The switch configuration should be same on the both transmitter and receiver side. The ir sensor on left detects the blink to switch ON the bulb while the ir-sensor on the right detect blinks to switch OFF the bulb. The power supply is made with connecting two 3.2 spare cells i have which gave 7.5V approx.

Receiver Side:

The diagram is displayed above.

The power supply is provided via arduino to all the components from Vin,5v and 3.3v. The receiver side pins D0,D1 are connected to arduino digital pins D4,D6 to get the sensor input from the transmitter .The input is sensed from the sensors as per the blink, if the blink to switch on the bulb occurs then a 2s delay or the unintentional eye blinking time is provided in which there will be no detection by the arduino to save the short circuiting of bulb and relay module. The same occurs with the blink detection for the off sensor. The reay module is NC the Vcc is connected from relay module to bulb and to the positive of the power supply and the Gnd is common for both. (Check more online for relay connections).

Hence to conclude, the blink detected when the sensor goes on is transmitted to the arduino with rf-transmitter and a 2 sec delay is provided to mitigate unintentional blink. The bulb glows ON and remains on till the 2 sec continuously (until OFF sensor is provided) or switched off manual power supply.Therefore if the OFF sensor is provided the same occurs again. The device can be increased by connecting different pins with the arduino and relay module.

Step 6: Working:

The above circuits are given in figure.

The first is for transmission part and second is for the receiving part. If no recognizable rf interference is not present is the room, the system can detect upto 2 rooms i.e. approx 30m apart easily with rf range. The system is made with taking distance in mind to attach goggles in case of eye blink as shown in the video below.

The video was not captured as we didn`t had mobiles with us in the conference room. And all the parts were subsequently submitted but we implemented the same system with two microcontrollers as will be shown in the next step with video.

Step 7: Demo:

Here we implemented the system with same specifications and two ir sensors (TCRT5000) which fits on the goggle very easily . The tx side is arduino nano and the rx side is arduino uno. The system is implemented without any organ hence with just the eye only and can be used in paralyzed person cases.

Using this TCRT5000 also helps to implement this system on the goggles and used specifically for aye blinks . The led glows subsequently on-off after detecing blink. Here the delay is 5 sec(unintentional blink time).

my friend also helped me to design the system. Check out his instructables at another DIY enthusiast page:

Arduplane