Control a Servo Claw Using Your Eye Blinks (EOG)

by Upside Down Labs in Circuits > Sensors

2245 Views, 10 Favorites, 0 Comments

Control a Servo Claw Using Your Eye Blinks (EOG)

Thumbnail.jpg

In this tutorial, you are going to control a servo motor using your eye blinks. To do so we will be detecting the EOG signals from eyes and take the eye blink as a trigger to move the servo motor.

But before moving forward, let's understand a brief about Electrooculography (EOG):

What is Electrooculography (EOG)?

Electrooculography (EOG) is a technique for measuring the corneo-retinal standing potential that exists between the front and the back of the human eye.The resulting signal is called the electrooculogram.

Supplies

DIY Neuroscience Kit - Pro (Front).jpg
DIY Neuroscience Kit Pro (Contents).jpg

DIY Neuroscience Kit Pro (Upside Down Labs Store | Amazon India | Tindie | DigiKey )

The kit includes:

  • BioAmp EXG Pill (Assembled)
  • Arduino Uno with USB Cable
  • BioAmp Cable (100cm)
  • 3 x Jumper Cables
  • NuPrep Skin Preparation Gel (25g)
  • Wet Wipes x 10
  • Repositionable Gel Electrodes x 3
  • Boxy Gel Electrodes x 100
  • Gel Electrodes (4 variants, 6pcs each)
  • Muscle BioAmp Band (EMG Band)
  • Brain BioAmp Band (EEG Band)
  • Heart BioAmp Band (ECG)
  • Electrode Gel (30ml)
  • Servo Claw
  • Muscle BioAmp Shield Kit
  • Muscle BioAmp Shield v0.3 (Assembled)
  • BioAmp Cable (100cm)
  • Muscle BioAmp Band (EMG Band)
  • BioAmp AUX Cable
  • Gel Electrodes (4 variants, 6pcs each)
  • STEMMA Cables x 6
  • 9V Snap Cable

SOFTWARE:

Arduino IDE

About DIY Neuroscience Kit Pro:

It is like your Neuroscience Lab in a Box which lets you explore the world of neuroscience by recording various biopotential signals of your body (EEG, EMG, ECG, EOG) and making amazing HCI and BCI projects.

Stack Muscle BioAmp Shield on Arduino Uno

Stacking on Arduino Uno.gif

Stack the Muscle BioAmp Shield on top of Arduino Uno properly.

Connecting BioAmp EXG Pill

EXG Pill_shield_connection.gif

You can connect the BioAmp EXG Pill at A2 port of Muscle BioAmp Shield using the the 3 pin STEMMA cable as shown above.

Connecting Electrode Cable

EXG Pill_Bioamp cable_connection.gif

Connect the BioAmp Cable to BioAmp EXG Pill as shown in the video above.

Skin Preparation

Skin Preparation.gif

Apply Nuprep Skin Preparation Gel on the skin surface where electrodes would be placed to remove dead skin cells and clean the skin from dirt. After rubbing the skin surface thoroughly, clean it with a wet wipe.

About Nuprep Gel:

Nuprep skin preparation gel is a mildly abrasive, highly conductive gel that should be applied before placing the electrodes on the skin to improve measurements. When applied gently, it strips away the top layer of skin and moistens the underlying skin layer which reduces the skin impedance with minimal skin irritation and discomfort.

Electrode Placements

Electrode Placements.jpg
  1. Connect the BioAmp Cable to gel electrodes,
  2. Peel the plastic backing from electrodes,
  3. Place the IN+ and IN- cables on the forehead and below the eye & REF (reference) at the bony part, on the back side of your earlobe as shown above.

Connecting Servo Motor

claw connection.gif

Connect the servo motor to Muscle BioAmp Shield as shown in the video above.

The 3D printed servo claw is originally made by Nasir and you can find the complete documentation on it by clicking the link below:

https://www.thingiverse.com/thing:4300387


Download Arduino IDE

Download the Arduino IDE from the link given below:

https://www.arduino.cc/en/software

(We have used Arduino IDE version 1.8.19 for this project)

After downloading, connect the Arduino to your laptop using the USB Cable

Note: Make sure your laptop is not connected to a charger and sit 5m away from any AC appliances for best signal acquisition.

Coding Time!!

Download the zip file from the link given below and unzip it in your laptop.

EOG Servo Control Firmware

Copy paste the Arduino Sketch in Arduino IDE and flash it on the Arduino Uno board.

Blink Your Eyes

EOG_Servo control using eye blink.gif

Blink your eyes to be able to move the servo motor left and right.

Now you are all set to explore on your own and make amazing HCI projects at the comfort zone of your home.

Let us know your feedback in the comments and feel free to ask any questions.

You can also mail us at support@upsidedownlabs.tech for any kind of support while you are making this project.