Giter Club home page Giter Club logo

arduroller's Introduction

ArduRoller

This repo contains the source code and assets for my ArduRoller balance bot.

ArduRoller out for a spin

Here's a video of it in action: http://flic.kr/p/a4iTvU

Specs:

  • Chassis: laser cut 2.7mm bamboo ply (Ponoko); various M2.5 machine screws from Amazon; Instamorph low-melt-point thermoplastic to fill in the gaps.
  • Brains: 1 x Arduino Uno
  • Motor driver: 1 x Sparkfun Ardumoto
  • Motors: Sparkfun 2 x 24:1 gearmotor
  • Wheels: 1 set Sparkfun 70mm -- repaired with Instamorph after they cracked around the axle
  • Gyro: 1 x ADXRS613 (Sparkfun breakout) mounted at the axis of rotation
  • Accelerometer: 1 x ADXL203CE (Sparkfun breakout) mounted at the axis of rotation
  • Batteries: 2 x 3.7V Li-poly 850MAh (Sparkfun)

Code

The code is in main.c. The code only depends on avr-libc and it includes the proect files for the AVR plugin for Eclipse.

The code has 3 parts:

  • main() is the entry point, which runs
  • setup() which does start-of-day initialization.
  • ISR(TIMER1_OVF_vect) the interrupt service routine for the timer 1 interrupt. The ISR is the main workhorse function. It runs several hundred times per second.

There are a lot of magic values in the code that took me considerable time to tune. I also find that some of them aren't constant (e.g. the gyro drift changes with temperature and battery voltage). If you try to make one of these it'd probably be a good idea to pick my brains before you start or to use a more standard approach like a complementary filter.

Assets

The diagram for the chassis is in the assets directory. I used Ponoko to manufacture it in (2.7mm blonde bamboo).

Creative Commons License
ArduRoller Chassis by Shaun Crampton is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

WARNING It's prototype standard -- I had to rebuild the motor mounts with Instamorph because they were too loose in one direction and sand them heavily because they were too tight in the other.

arduroller's People

Contributors

fasaxc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.