Create a Hands-Free Computer Mouse With Your Eyes & Muscle

by Upside Down Labs in Circuits > Sensors

2176 Views, 18 Favorites, 0 Comments

Create a Hands-Free Computer Mouse With Your Eyes & Muscle

Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (14).gif

Have you ever wished you could move your cursor just by turning your head, click using a blink, or trigger a command with a simple jaw clench?

In this project, we build a hands-free Human-Computer Interface (HCI) mouse using the Neuro-PlayGround Lite (NPG Lite). By combining head tracking, eye signals, and muscle signals, the computer can be controlled without touching a mouse at all.

This setup uses:

  1. IMU motion sensing for cursor movement
  2. EOG signals for blinks and click actions
  3. EMG signals for jaw clench commands

The result is a wireless Bluetooth-based control system that feels intuitive, practical, and fun to use.

NOTE : This project is made by Varun Adinath Patil.

Watch the complete tutorial for this project on YouTube.

Supplies

Explorer pack with text.png
NPG Ninja Pack Main with text.png
NPG Beast with text main.png

Hardware

  1. 1 ×Neuro PlayGround Lite (Explorer, Ninja, or Beast Pack)
  2. 1 × VibZ Playmate
  3. 1 × MPU6050 or BMI270 IMU Sensor (QWIIC version)
  4. 3 × BioAmp Snap Cables
  5. 3 × Gel Electrodes
  6. 1 × Alcohol Swab
  7. 1 × Headband
  8. 1 × USB Type-C Cable
  9. 1 × Laptop or Desktop Computer with Bluetooth

Software

  1. Arduino IDE
  2. ESP32 Board Package (Version 3.2.0)
  3. Adafruit NeoPixel Library
  4. MPU6050 Library or SparkFun BMI270 Library
  5. ESP32 BLE Combo Library (Modified Version)
  6. NPG Lite Mouse Firmware
  7. Bluetooth-enabled Windows, Linux, or macOS PC

How It Works?

This project combines two types of input:

1. Head Movement Tracking

We use an IMU (Inertial Measurement Unit) such as:

  1. MPU6050
  2. BMI270

An IMU contains:

  1. a 3-axis accelerometer, which measures tilt and movement
  2. a 3-axis gyroscope, which measures rotation in X, Y, and Z directions

By mounting the IMU along with NPG Lite on a headband, the system can track head orientation and convert it into smooth cursor movement.

2.Biopotential based Mouse Clicks

Instead of using physical mouse buttons, we use natural body signals:

  1. Jaw clench → left click
  2. Double blink → click and drag
  3. Triple blink → right click

Jaw clenching produces an EMG signal, while blinks produce EOG signals.

Together, these inputs create a complete hands-free mouse experience.

Skin Preparation

Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (3).gif


  1. Clean the tageted suface area with alcohol swabs.

This removes oil and dead skin, improving signal quality.

Electrode Placement

Control Your PC With Your Eyes & Muscles using NPG Lite  instructable.png

Measuring EEG using Gel electrodes:

  1. Connect the BioAmp Cable to gel electrodes,
  2. Peel the plastic backing from the electrodes.
  3. Place the cable connected to A0P between the Fp1 and Fp2 positions
  4. Place the cable connected to A0N on the bony part behind the earlobe on one ear.
  5. Place REF on the bony part behind the earlobe of the other ear.

Connecting BioAmp Cables

Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (1).gif
Control Your PC With Your Eyes & Muscles using NPG Lite  instructable.png

Once your skin is prepared, it’s time to connect BioAmp Snap Cables.

Connect 3 BioAmp Snap Cables to

  1. Positive of Channel 1 to A0P
  2. Negative of Channel 1 to A0N
  3. Reference cable to REF

Connect MPU6050

Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (17).gif

Once the snap cables are connected, connect the MPU6050 to NPG lite using the QwiCC port on the VibZ playmate.

Copy the Code

C5043.00_03_57_05.Still001.png
C5043.00_04_04_23.Still002.png
C5043.00_04_06_04.Still003.png
C5043.00_04_07_20.Still004.png
C5043.00_04_13_07.Still007.png
C5043.00_04_16_21.Still009.png
C5043.00_04_15_00.Still008.png
  1. Power on the NPG Lite
  2. Turn on the board using the ON/OFF switch.
  3. Connect it to your computer using a USB Type-C cable.
  4. Download the firmware
  5. Open the NPG Lite Arduino Firmware repository on GitHub.
  6. Choose the firmware that matches your motion sensor:
  7. MPU6050: NPG-Mouse-MPU6050
  8. BMI270: NPG-Mouse-BMI270
  9. Copy the sketch
  10. Create a new Arduino sketch
  11. Launch the Arduino IDE.
  12. Create a New Sketch.
  13. Paste the copied code into the editor

Install Esp32 by Espressif Systems.

C5043.00_04_29_19.Still013.png
C5043.00_04_34_20.Still014.png
C5043.00_04_21_04.Still010.png
C5043.00_04_23_10.Still011.png
C5043.00_04_27_10.Still012.png
  1. Install the ESP32 board package
  2. Open Boards Manager.
  3. Search for esp32 by Espressif Systems.
  4. Install Version 3.2.0.
  5. Important: Do not use newer versions, as they may cause compatibility issues.

Install Required Libaries(adafruit Neopixels)

C5043.00_04_38_13.Still015.png
C5043.00_04_39_03.Still016.png
C5043.00_04_40_00.Still017.png
C5043.00_04_42_09.Still018.png
C5043.00_04_43_09.Still019.png
C5043.00_04_34_20.Still014.png
  1. Install the required libraries
  2. Install the following libraries using the Library Manager:
  3. Adafruit NeoPixel
  4. MPU6050 library (if using the MPU6050 sensor)
  5. SparkFun BMI270 Arduino Library (if using the BMI270 sensor)

Install ESP32 BLE Combo Library

C5043.00_05_00_03.Still021.png
C5043.00_05_04_07.Still022.png
C5043.00_05_05_13.Still023.png
C5043.00_05_09_16.Still024.png
C5043.00_05_12_02.Still025.png
C5043.00_05_15_20.Still026.png
  1. Install the ESP32 BLE Combo library
  2. Open the ESP32 BLE Combo GitHub repository.
  3. Click Code → Download ZIP.
  4. In Arduino IDE, navigate to:
  5. Sketch → Include Library → Add .ZIP Library
  6. Select the downloaded ZIP file and install it.

Upload the Code

C5043.00_05_17_10.Still027.png
C5043.00_05_20_00.Still028.png
C5043.00_05_21_15.Still029.png
C5043.00_05_23_20.Still030.png
C5043.00_05_29_17.Still031.png
  1. Select the correct board
  2. Go to:
  3. Tools → Board → ESP32 Arduino
  4. Select ESP32C6 Dev Module.
  5. Upload the firmware
  6. Verify that the correct board and COM port are selected.
  7. Click the Upload button.
  8. Wait until the upload completes successfully.
  9. Go wireless
  10. Disconnect the USB Type-C cable.
  11. Your NPG Lite is now running the HCI Mouse firmware and is ready to connect wirelessly via Bluetooth.

Wear the Headset

Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (5).gif
Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (6).gif
Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (7).gif
Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (4).gif

Insert the NPG Lite into the headband (or your preferred mount).

Wear it comfortably so the IMU stays firmly attached to your head.

Power on the device.

Pair the Bluetooth Mouse

Open your computer's Bluetooth settings.

Choose:

Add Bluetooth Device

Select:

NPG Lite BCI Mouse

When the connection is successful:

  1. the board vibrates briefly
  2. the connection LED turns green

Your wireless mouse is now connected.

Calibration

Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (10).gif
17.png
18.png

Calibration starts automatically after connecting.

The VibZ Playmate provides vibration feedback during calibration.

Follow these movements:

First Vibration

Tilt your head upward.

Hold the position until the vibration stops.

Return to the neutral position.

Second Vibration

Tilt your head to the left.

Hold until the vibration stops.

Return to neutral.

A final short vibration indicates that calibration has finished.

The cursor should now follow your head movements accurately.

Control Your Computer

Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (11).gif
Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (12).gif
Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (13).gif

You can now operate your PC without touching a mouse.

Cursor Movement

Move your head.

Left Click

Clench your jaw.

Click and Drag

Double blink.

Right Click

Triple blink.

Practice each gesture a few times until it feels natural.

Final Result

Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (16).gif
Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (15).gif
Control Your PC With Your Eyes & Muscles using NPG Lite  instructable (14).gif

Now that you've built a Bluetooth HCI mouse, you can explore many exciting projects such as:

  1. Hands-free gaming
  2. Accessibility interfaces
  3. Smart home control
  4. Robotic control
  5. Human-Computer Interaction research
  6. Brain-Computer Interface experiments

You can also modify the firmware to assign your own gestures and actions.

Video Tutorial

Control Your PC With Your Eyes & Muscles using Neuro PlayGround (NPG) Lite - DIY Wireless HCI Mouse

The full step-by-step tutorial for this project is available on our YouTube channel, where we explain every step in detail—from hardware setup and wiring to programming and testing.