loading

This is a really fun and easy project that can be done in about an hour. On the bottom of the skateboard is an accelerometer/gyro with an Arduino board that transmits the angular motion of the board via bluetooth to a little virtual reality game I made for Android phones. I attempted to model El Toro which is a famous skateboard spot in California. So, when you turn on your Arduino and the bluetooth connects with your phone, you start moving forward. Lean left and you go left, lean right and you go right. Lift up the front wheels and your character will jump. This only works for Android phones and your phone must be compatible with Google Cardboard. So, if you have an old board laying around, turn it into a virtual reality skateboard. Here's how:

You will need:

A Google Cardboard style virtual reality headset.

A skateboard.

4 tennis balls (to keep from rolling away)

An Arduino Leonardo (or Uno)

Some jumper wires

A mini breadboard

An HC-06 bluetooth module

An MPU-6050 accelerometer/gyro

A 9V battery with battery box that has a on/off switch and a barrel plug (to power the Arduino board)

A soldering iron and maybe a hot glue gun

Arduino code, and parts list with links can be found here:

http://wirebeings.com/virtual-reality-skateboard.h...

Android app can be downloaded here:

https://play.google.com/store/apps/details?id=com....

For anyone interested in replicating the bluetooth communication with Unity I have used the "Bluetooth for Microcontrollers" plugin on the asset store by techtweaking:

https://www.assetstore.unity3d.com/en/#!/content/...

Step 1: Create Your Arduino Transmitter Device

Assemble your device as shown in the picture above.

You will need to solder the header pins onto the MPU-6050, if your soldering iron is new and the tip is clean this can be done in about 11 seconds. If your soldering iron tip is dirty and old this will quickly become the hardest thing you have ever done (speaking from experience).

Make sure the orientation of everything is exactly as shown in the pictures above so you do not have to get into the code and edit anything.

NOTE: The Leonardo works much better for this...however... If you are using an Arduino Uno all the connections are the same. However, the SDA could go to A4 and SCL could go to to A5.

About This Instructable

1,821views

15favorites

License:

Bio: My name is Matthew and I attend the University of Pittsburgh. Currently I am a senior, going for a bachelors in Information Science with a ... More »
More by matthewh8:Lets Make an Augmented Reality App in 6 MINUTES! TRUMP EDITION  How to Markerless Augmented Reality Tutorial: SLAM Make a Killer Augmented Reality App 
Add instructable to: