Tag Archives: accelerometer

VR Controller (Step 2: AirMouse)

 

So I managed to get my virtual reality controller to the next step.

Took some time to find the best blueooth adapter, but i finally got one to act easy as a HID:  Bluefruit EZ-Key. This is a very easy to use component, which can be used even without an Arduino, just a few buttons soldered on the right pin. For my purposes a serial communication between a microcontrooler and it is crucial, since I don’t need only the basic buttons handled.

As a gyroscope + accelerometer I sticked to the GY-521 which is a breakout board for the MPU 6050 chip. This one is more tricky since it requires I2C communication, which is totally new to me.

The programming of the Arduino was not so difficult, only the I2C part took some tinkering, but I got it to work since I didn’t need to learn only some parts.

Finally it can be used to connect to any BT device like PC, Arduino phones and tablets, and play games which handle mouse/keyboard input.

Todo in the next step:

  • try to make a glove out of it
  • replace Arduino with Atmega 328
  • solder everything on 1-2 perfboards
  • add on/off switch
  • add buttons to fire/action
  • add some tilt sensor for moving forward/backwards