Control Your Computer With Your Head!

by Johan Link in Circuits > Arduino

3971 Views, 31 Favorites, 0 Comments

Control Your Computer With Your Head!

IMG_4001.JPG

Hi, I created a system that allows you to control your computer's mouse just by moving your head.

If you like my project, don't hesitate to vote for me in the Arduino Contest 2017. ;)

Why I made this?

I wanted to make an object that makes video games more realistic. However, I wanted to be as simple as possible, you don't need to have good knowledge of electronics and soldering to do this project. I created this system to play games easier, this system is very intuitive. The head of the character in your video game makes the same movement as your head in real life.

My system is useful for playing video games, but this system could be used to make life easier for people with disabilities who can not use their hands. However, it would be necessary to improve my system so that we can use the buttons of the mouse. (Tell me in the comments if you have an idea to improve my project ;) ).

Thanks UTSOURCE.net to offer electronic components for my projects

How It Works?

IMG_4010.JPG

The electronic system contains two important elements. It contains a gyroscope and a microcontroller. The gyroscope measures the tilt of your head and transfer the data to the microcontroller. Then the microcontroller emulates a computer mouse and transmits the information to your computer that will move the mouse. The system emulates a mouse, but you can still use your real mouse at the same time as you play.

How to Use It?

IMG_4031.JPG
IMG_4032.JPG

It's really easy to use. With a rubber band, attach the electronic system to your favorite cap. Then plug a USB extension between your computer and the electronic system. Then move your head and the mouse should move.

Materials

IMG_3962.JPG
IMG_4006.JPG
IMG_4007.JPG

That's the material you need to make this object:

  1. A gyroscope - MPU 9265.
  2. An Arduino - ATMega 32U4.
  3. Two small screws (see pictures), I recovered these screws in an old printers.
  4. A soldering iron.
  5. A screwdriver.
  6. Some wires.
  7. A 3D printer.

The Electronic Circuit

IMG_3963.JPG
IMG_3966.JPG
IMG_3964.JPG

The circuit is really simple.

ATMega 32U4 | MPU

3.3v ------------------ VCC

GND ----------------- GND

SDA(D2) ------------ SDA

SCL(D3) ------------ SCL

How to Assemble It?

IMG_3999.JPG
IMG_4008.JPG
IMG_4004.JPG

First build the electronic circuit then print the case. Then it's very simple, place the circuit in the box then screw the two small screws.

Downloads

How to Program It?

Capture d’écran 2018-01-05 à 18.39.10.png

I didn't realize the entire code, my code is based on a code I found here.

You can program the ATMega32U4 like any Arduino. Download my code then upload it on the Arduino with the Arduino program.

Lines 190 and 191 of the program are important. On line 190 you can change the sensitivity of the sensor, the more you write a big number, the faster the mouse will be. On line 191 you must indicate the orientation of the electronic system. Watch the picture.

I hope you liked my project. I speak French, so sorry for the English mistakes in this Instructable.

Downloads