Control PC Wirelessly With Eye Blinking ;)





Introduction: Control PC Wirelessly With Eye Blinking ;)

What about going beyond your habits?? What about trying something new??!!!!

What about controling your PC and doing anything that you want WITHOUT using your keyboard and mouse!

Hmm... But how is this possible???

With just a blink of your Eye!! Don't believe it???

Ok, so just keep reading and you will found out how can this happen!!;)

Step 1: Materials: What You Will Need

Step 2: Bluetooth AT Mode & Commands

For this process I am using an Arduino Uno board

1. Connect GND and Vcc of Bluetooth module to GND and 5V of Arduino board respectively.

2. Push the button on HC-05 Bluetooth and while you keep it pressed, plug the Arduino to your PC. You will see the led on Bluetooth module blinking with interval of 2 seconds which means that you have entered AT mode.

3.Open Arduino IDE and Upload an empty sketch to the Arduino Board.

4. Connect Rx and Tx of Bluetooth module to Rx(pin0) and Tx(pin1) of Arduino board respectively.

Important: When uploading a sketch, remove Rx and Tx connections and plug them back again to their positions after uploading is Done!

HC-05 -> Arduino

Vcc -> 5V


Rx -> Rx (pin 0)

Tx -> Tx (pin1)

All the connections are shown in the image.

5. HC 05 Bluetooth module needs a Carriage Return & Line Feed after each command.

So open, Serial Monitor and select “Both NL & CR” and 38400 baud.

Type in: AT and then click Send.

Now you should get an OK as a response meaning that you have successfully entered in AT Commands!

Step 3: AT Commands for SLAVE Module

1. Type in AT+NAME? to see the name of the module.

You can change it as you like, by typing for example: AT+NAME=SLAVE

2. In order to see the password type in AT+PSWD? (default is: 1234)

3. Type in AT+ROLE=0 to make it slave

4. Type in AT+ADDR=? to get its address. You must know the address of this module in order to PAIR it with another.

Note that the address will look similar to that: :21:13:19E8

5. Unplug it from the PC to exit from AT mode.

Note: The address can also be found at Bluetooth devices, add device, right click on SLAVE (the name of Bluetooth),Properties, Bluetooth -> Unique Identifier.

Step 4: AT Commands for Master Module

1. Type in AT+NAME? to see the name of the module.

You can change it as you like, by typing for example: AT+NAME=MASTER

2. In order to see the password type in AT+PSWD? (default is: 1234)

3. Type in AT+ROLE=1 to make it master

4. Type in AT+CMODE=0 to make the module to connect to a specified Bluetooth address.

5. Type in AT+BIND= 0021,13,0109E8 (put here the address of your slave module) to pair it with the slave module.

Note: In AT Commands the colons should be replaced with commas and also that the full address of this

”:21:13:19E8 ” is “ 00:21:13:01:09:e8” because “0” are omitted at the beginnings.

Step 5: Arduino Micro Connections

Make the connections as shown in the image:

HC-05 -> Arduino

Vcc -> 5V


Tx -> pin 11

Potentiometer -> Arduino

V -> 5V


Input pin -> pin A2

Upload the following sketch:

Important: When uploading a sketch, remove Rx and Tx connections and plug them back again to their positions after uploading is Done!

Step 6: Arduino Nano Connections

Make the connections as shown in the image:

HC-05 -> Arduino

Vcc -> 5V


Tx -> pin 10

Rx -> pin 11

QRE1113 -> Arduino

VCC -> 5V


OUT -> pin A0

Battery -> Arduino

9V -> Toggle switch


Toggle Switch -> Arduino

V -> Vin

Upload the following sketch:

Step 7: Adjustments

Congratulations! You have completed the most demanding part! ;) :)

Now time for adjustmentsssss!

1.Connect Arduino Micro to your Pc. You will see the led on Bluetooth module blinking repeatedly.

2.Turn οn the switch on the Arduino Nano to power it up. After some seconds you will see both bluetooth modules flashing in the same way (one blink after 2 sec). This means that your Arduino boards are paired and can communicate to each other.

3.Open Arduino IDE. Select your board (Arduino Micro) and the appropriate COM port and open the Serial Plotter. You will see a plot with the measurements of the sensor and the value of potentiometer. With the blue color are the values from potentiometer (threshold) and with red the values from the sensor.

4. Remove the lens from the glasses so as to have only the frame.

5. Attach the Spark Fun line sensor to the frame in a position similar to the photos.

6.Put on the glasses and adjust the sensor to be next to your eye. By making some blinks with your eye you will notice some peaks in the graph of Serial Plotter. Adjust the value of potentiometer to be above the peaks and below the other values as shown in the image. Now you have successfully set your threshold!

Note: From the threshold adjustment you can also choose which kind of blinks ( intentional or unintentional ) you will accept. In this way you can fully control when the 'ENTER' command will be sent.

And...... Finally :D

The only thing you have to do now is just BLINK (close and open your eye) ;)

An "Enter" will be sent to your PC!!

Yes, but is there any way to write and do anything that I want without touching my PC???

Yeeaaahhh... Continue to the last part to see for yourself!! ;)

Step 8: 3D Printing Time!!! :D

This step is an optional step to give a more compact and portable feeling to this project!! ;)

You can experiment with yourself and create your own enclosures with any design that you like! Below you can find my designs, too!

For this project I used FDM process with PLA as material. PLA is a great option for low-cost and fast prototyping and comes in a large range of colors.

After 3D printing is completed you can use sand papers to make them smooth and nice and also you can paint them any color that you want!

That's all !!!! :D:D

Enjoy your new device and use LESS keyboard and mouse and MORE Eye Blinking ! ;)

Step 9: Control Your PC ;)

Now it's time to see it working!!!!

Please feel free to share with me any comments or suggestions that you have!!!

And don't forget......!!


If you liked that project please vote it for the competitions! Thank you!

PS. For the video I used the On-Screen keyboard from windows that supports automatic scanning and scanbuddy software from ahf.

Remote Control Contest 2017

First Prize in the
Remote Control Contest 2017



    • Clocks Contest

      Clocks Contest
    • Oil Contest

      Oil Contest
    • Water Contest

      Water Contest

    25 Discussions


    6 hours ago

    Honestly, I feel stupid when I see just how brilliant so many of the contrubutors are on here!!

    Should've made a kickstarter

    Amazing project and concept and very nice explaination!!! Since you are using very less pins of arduino you can replace arduino with ATTiny85 or other small micro-controller as arduino is an overkill for this project with small pin requirements. You may also use printed PCB or the one with copper dots to make the project compact instead of mini breadboards :)

    Dear Jfieldcap, thanks for your comment! It has been fixed!

    Just a note: You mixed up the names for the Arduino Nano and Micro in your parts picture tags.

    This project is awesome! What software did you use to draw the selection boxes on the computer screen? I see the arduino sketches but I don't see any software to cycle through the selections. Am I just missing it?

    1 more answer

    Thank you very much for your comment!!! I am glad that you like it!
    I used a software called scanbuddy from ahf.

    As someone who often reads in bed using an e-reader, I am wondering if you could come up with a device that would command the e-reader to turn the page, using a voice command, like "Turn", rather than having to tap the device. This would be hugely convenient! Thanks for your ideas.

    1 more answer

    Yes, I believe that this could happen! ;)
    I don't have much experience with e-readers but I believe that this would be achievable!

    Absolutely love this project! I know someone who could benefit from this as he was in an accident and is now quadriplegic. I sincerely hope you continue developing this from that point of view.

    6 replies

    This is a great project!! I love the inventiveness demonstrated here and feel it is a very worthy experiment. And while I don't want to rain on someone parade here, I do think someone with a real spinal cord injury should be looking for more commercially proven devices. If he needs a device to control his computer he should look for something called a "PCI Mini". It is already integrated into the common devices (via USB) and is about the size of a writing pen..

    That aside, for the guy who just wants to do something cool and make his computer work just by blinking his eyes, this is a really cool way to do it :)

    I would agree as long as they can afford it. My friend received one due to people donating money. Otherwise as he was the primary income earner for the family, his accident was financially devastating and in his case, insurance wouldn't pay for it. More options for these folks is always a positive.

    Thank you a lot for your comment! I really appreciate it!
    You are right about that this device you mentioned is more commercially proven but it has a great cost.
    However, this project suggest a much more cheaper and full adjustable solution.

    Thank you for your comment!!

    You are right, almost all people can use that and especially people with disabilities or people at rehabilitation programs!

    Thank you a lot!

    Fabulous!! We always know someone who could enjoy and benefit from this project!