A two wheeled self balancing skateboard
Arduino Prolog
Permalink
Failed to load latest commit information.
arduino/velociryder
board
solidworks model laskjflasjdflaskjfdlasjdflsj Mar 13, 2012
.gitignore Update gitignore Mar 2, 2012
LICENSE Add license and readme Mar 13, 2011
README.md Add to readme Mar 13, 2011

README.md

Velociryder Code

This is the software for the Velociryder, a self balancing two wheeled skateboard, started as a side project and was then entered in Georgia Tech's 2011 InVenture Prize. We made it all the way to the finals!

Features

The code has the following features:

  • PD control (no integral, wasn't necessary)
  • Automatic startup via killswitch and level detection
  • Support for foot pedal steering, just as in the Velociryder
  • Use of accelerometer and gyroscope to obtain board level
  • Moving average and complementary filters for the sensors

It works alright.

Usage

Things you will probably need to tweak:

In velociryder.pde

  • Turning constants

In sensors.pde

  • GYROTORAD4, GYROTORAD, ACCLTORAD: These convert the sensor's ADC units to radians
  • ACCL_CENTER: This defines the center balance point of the board
  • sensor defines: The pins the sensors are on
  • OHSHITSWITCH: killswitch pin

In motors.pde

  • However you control your motors

This is Arduino source code. So put it in a directory called velociryder in your sketchbook, fiddle, program, and go!

Implementations

License

This code is released under the MIT License. If you do use it, send me a message, I want to see it!