3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Easy build self balancing electric skateboard

Step 20Arduino board

Arduino board
Arduino microcontroller used.

My previous machines used robotics AVR boards but the Arduino is cheap, has huge active forums if you get stuck, books on how to get started and is easy to program and load software onto via a USB lead.

Code: send me a message with your email and I will respond.

Past versions of the code and how it has developed can be seen on my website of past self-balancing projects:
http://sites.google.com/site/onewheeledselfbalancing/

This diagram comes out small so I have enlarged sections of it on next 2 pages.

Code examples for this project attached to pages 43 - 47 of this Instructable.
« Previous StepDownload PDFView All StepsNext Step »
2 comments
May 22, 2011. 7:00 PMkriogenic says:
Hey there,

I see your using pull down resistors for all the inputs.

I think it may have already been mentioned but instead of all the resistors you can use the atmegas internal 20k pull up resistors. you can do so with the following

pinMode(pin, INPUT); // set pin to input
digitalWrite(pin, HIGH); // turn on pullup resistors

this makes them a steady 5V in which you can reverse the check of the inputs to see if they are "LOW" then trigger.
May 31, 2010. 12:25 AMxained says:
Hi there!

First off: great project, thanks for sharing your knowledge!

I'm trying to build a similar project, and I'm following different instructables for this. (I must say yours is the biggest part, lol)

Could it be possible to get the code you wrote, for the Arduino ?!
(It's just that I don't want to invent 'hot water', when it was allready invented, years ago. Plus I'm more able to adapt code than to write it from scratch. I guess I'm not smart enough for that, lol)

My email is : Xained@gmail.com

Thanks for your time,
Keep on building !
Xai Ned

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
127
Followers
10
Author:XenonJohn