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 27Motor controller

Motor controller

This is a Sabertooth 2 x 25Amp (40Amp peak) robot motor controller for medium sized robots with 2 motors.
Each motor has to be able to go forward and reverse, and switch direction frequently and rapidly without mishap.

The ones I have are 250 Watt 13.7 Amp peak (that is what it says on them). Watts = Amps x Volts and I have 24 Volts so that makes 10.4 Amps using that calculation. Anyhow, well within limits of the Sabertooth.

NOTE: It will handle most forms of abuse and will shut down rather than burn out and so on. It will NOT tolerate having the power supply leads conncted up back to front however - be warned.

Also it has to be able to handle a lot of power as if falling over, motors have to be big enough to allow machine to accelerate fast to bring itself beneath you once again.

Therefore unless you really know what you are doing, designing your own is out of the question.

The sabertooth can handle many types of misuse but you mustn't connect the batteries to it back to front!

The Arduino can send control data to it in several ways but I have chosen a mode called simplified serial mode. The Sabertooth website has a lot of downloadable information on all this.

It isn't exactly low cost but worth the money.

« Previous StepDownload PDFView All StepsNext Step »
10 comments
May 18, 2012. 5:45 AMtranct says:
Hi John,
I am a beginner. As I see on Ebay lots of Sabertooth >But they are not the same with yours -
Please, could you show me where to buy this one
Many thanks
TRANCT
May 23, 2012. 3:18 AMtranct says:
Where can I find a complete list of all objets to buy ?
Thanks
TRANCT
May 23, 2012. 3:11 AMtranct says:
Merci John
Aug 3, 2011. 4:40 AMjmunsami says:
Im thinking of using a LEAD battery permanantly instead of lithuim polymer. I plan to use a 75Ah 12v battery
http://uk.rs-online.com/web/p/lead-acid-rechargeable-batteries/4363614/
and use a converter to make it 24v
http://www.virtualvillage.co.uk/12v-to-24v-dc-dc-power-converter-module-003602-013.html
Is this a good idea?
Also.... Is it possible to make the hand controller wireless? (bluetooth)
Aug 4, 2011. 1:35 PMjmunsami says:
Thank you John :D

Im planning on using the same motors as you... are these the ones?

http://www.ebay.co.uk/itm/24V-250W-Electric-Scooter-Motor-Unite-Brush-MY1016-/170671368090?pt=Motorcycles_Parts_Accessories&hash=item27bcce679a#ht_2798wt_1139


Can you use bluetooth to link the nunchuck?(if it doesnt already use that LOL)
I now plan on using these batteries

http://uk.rs-online.com/web/p/lead-acid-rechargeable-batteries/3730366/

, 2 to make a 24v system. I was wondering... what batteries do you use and how much battery life does it give you? I was hoping to use this for at least 3 hours.
I want a design like your carbon fibre pneumatic system... but dont have access to welding and metalwork facilities. Is it possible for you to make me one and me pay you? Speaking of pneumatic, how much benefits to the pneumatic tires give?
Also could i use the pressure sensors on the board to make a dead switch?
Excuse me for asking so many questions, because im making 8 of these to sell, with a £160 profit on each, so i want to make them good :D

Thanks for your amazing advice and all the time you put into making the instructions viewable.


Aug 8, 2011. 2:34 PMjmunsami says:
Haaahaa! Im not thinking as big as that! But Im Sure that these could make a much larger profit if made per 100's!
Apr 22, 2011. 1:14 PMgrunff says:
Hi John,

I hooked up my Arduino to my Sabertooth for the first time today, and ran the motor test. The output from the Arduino looks good. The deadman switch is on, and it is stepping through the motor outputs as it should. The DIP switches on the Sabertooth are set correctly, and the batteries and motors are all in place. But the Sabertooth doesn't power the motors - nothing at all!

I tested the Sabertooth in analogue mode just to check that it's good, and that side of it is fine. I stripped down the test code to just power the motors at 100%, and still nothing.

Did you have any problems getting the Arduino to talk to the Sabertooth? Any tips?
Apr 24, 2011. 1:42 AMgrunff says:
Thanks for your help John. After spending much of yesterday playing with it, trying everything I could think of (including packetised serial), I am now 99% confident that my Sabertooth doesn't talk serial.

Rather than using the Sabertooth in Analog mode, I'm having a go at using it in RC mode. This is where it pretends to be a servo. I've used Arduinos to control small RC ESC like this. It does work fine, but I am concerned it wont be fast enough for self balancing.

There's an Arduino Servo library which does all the work for you, you just give each motor an input between 0 (full reverse) and 180 (full forward).

Will post an update on how this goes - I'm not convinced the response will be fast enough though.
Apr 24, 2011. 3:59 AMgrunff says:
Ok, here's the update. I've used the Sabertooth's RC mode, and modified John's self balancing code to talk to the Sabertooth as a servo. While the communication does work, the board will not balance. It tries to, but overshoots, and ends up oscillating back and forth.

Do you think the speed of the communication is the issue, or could solething else be causing the overshoot?
Apr 24, 2011. 5:42 AMgrunff says:
Another update :-) Got it to balance by cutting the servo output down to 50% (so instead of 180-90-0 it's 135-90-45.

Balances fine, but has a tendency to wander around the garden slowly on its own.
Feb 26, 2011. 9:15 AMxiodene says:
Help!
I turned this on for the first time today as was very careful to get the + and - the right way round, started off fine, pressed the deadman switch and it spun. So i turned it over and pressed it agai, it ran for around 2 seconds before the sabertooth burst into flames!!

Is there anything else that could have done this??
as i had the batteries connected up fine!
Feb 28, 2011. 7:31 AMxiodene says:
I have emailed the company i bought it from so will hopefully have some joy as i cant see what has gone wrong.

Silly question.... but you can use the ground on the digital site of the arduino board as a normal ground cant you?


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