SciChair (Balancing Electric Chair)

 by ScitechWA
Featured
Picture 017.jpg
One day whilst at work we decided we would build something cool so we went to the Instructables website for ideas! Our criteria was that it had to be driven by an Arduino! After searching through the vast amounts of really cool projects, we found XenonJohn's Balancing Electric Skateboard  

We thought we should build a stand-on Balancing scooter but then decided that we needed to make something original. What about a Balancing chair my boss said. Now that's cool!

We happened to have a cool looking Carbon Fibre Racing chair just sitting around not being used so we started with that. We previously ordered a couple of geared down 250W scooter motors and some wheels to suit.

Now to order the electronics! Reinventing the wheel is a waste of time, and XenonJohn had already developed the code and worked out which hardware to use so we ordered exactly what he recommended.

Power came from some Makita drill batteries. These are used for most of our travelling exhibits as they are easy to get, to charge and we have a few batteries laying around for just such a purpose.

Here is a short video of the chair being driven around. Note the 3rd build Balancing scooter too doing a drive through.

















 
Remove these adsRemove these ads by Signing Up

Step 1: Description of the Build

Picture 003.jpg
The description of this build a little bit in reverse as we built the chair fairly quickly and forgot to take build photos.

There is little or no detail about the balancing software or how it works as XenonJohn has already described this so well.
There will be details on how we built our SciChair and what you will need to do to build your own.

The electronics is nearly exactly what XenonJohn used on his skateboard but I have removed the resistors he used for the switches so therefore, the code is different. See attached code for button steer and proportional steer.

1-40 of 111Next »
ScitechWA (author) says: Feb 13, 2012. 10:24 PM
Hi Everybody.
Thanks for your patients waiting for the code.
Well it's finally here!
Both the switch steer and the resistor pot steer.
Wiring is quite easy. I have a simple diagram to show what goes where.
Enjoy and let me know if there is anything missing or questions.
TheVenueManager says: Apr 29, 2013. 8:35 PM
Hi ScitechWA,
Well my boys and I are embarking on a build based on your SciChair...we have purchased all the items including the 5 DOF accelometer (linked to in the parts list) and can't seem to work out how to wire this in to the circuit based on the different board layout. Can you provide some guidance on this...

We live in Adelaide and hope to have our self-balancing "cockpit" up and running in a few months...we would also love to send some photos and perhaps video when we finally get things sorted.

Thank you for all the info in your instructable, it seems pretty straight forward and gave us the confidence to embark on our journey :)
ScitechWA (author) in reply to TheVenueManagerMay 2, 2013. 6:31 PM
I'll have to draw up a new diagram for the new IMU.
But in the mean while if you look at the old sparkfun IMU and connect the same names as the new IMU.
The buttons on the joystick should connect to the tilt adjust mechanism.
I'll check it!

Can wait to see a video.
TheVenueManager in reply to TheVenueManagerMay 1, 2013. 11:03 PM
Also as a follow up question...I have had a look at the code and there does not seem to be anything addressing the forward and backward buttons of the joystick???
fozz18 says: Apr 19, 2013. 2:21 PM
is the code set to go slower than the segway-clone code you used?
ScitechWA (author) in reply to fozz18Apr 21, 2013. 12:26 AM
no it should be the same. Is thee an issue?
fozz18 says: Mar 28, 2013. 8:34 PM
how do I change the balance point? the annotations are not clear to me
ScitechWA (author) in reply to fozz18Apr 2, 2013. 4:17 PM
Do a search through the code for the value 350.
This value is in the annotation as 350 but the value I used in the code is 340.
Change it up/down by about 5 and this will change the tip start position.
fozz18 says: Mar 26, 2013. 7:52 PM
(removed by author or community request)
ScitechWA (author) in reply to fozz18Mar 26, 2013. 9:55 PM
Yep that's great. Works the same as the one we used but smaller.
The only issue is that bumps move your hand and the joystick more.
fozz18 says: Mar 25, 2013. 11:31 PM
got everything working tonight without changing your code. it was a loose wire causing my problem. What value potentiometer do you recommend the steering is super sensitive. I'm using 10k ones.
ScitechWA (author) in reply to fozz18Mar 26, 2013. 4:48 PM
That's awesome. I'll put the link up for that IMU.
We used a joystick that doesn't give full left or full right for the movement.
It's a 100k we are using but that doesn't matter as you put 5volts across the terminals and read the voltage from the wiper.
If you disconnect the gnd and 5volt lines and fit a 2k resistor inline between the gnd side and the 5volt side.
This means the reading will never reach 0volt or 5volts.
That should fix your issue.
fozz18 says: Mar 24, 2013. 2:44 PM
sorry to bother you but I have 5DOF module that I got from eBay and cant seem to get it working with your code any help would be appreciated I'm at a stand still here
http://www.ebay.com/itm/181004141876?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
ScitechWA (author) in reply to fozz18Mar 25, 2013. 4:20 PM
That's right that one won't work as it uses a different chip to the one we used.
We will be writting code for the 6DOF digital version soon.
John has written code for that IMU which it sound like you have.
http://www.instructables.com/id/Easy-build-self-balancing-skateboardrobotsegway-/step53/Code-for-use-with-new-6dof-DIGITAL-IMU-from-Sparkf/

Test it out and let us know how it goes.
gttipsgsegwayteam says: Mar 10, 2013. 10:39 PM
greetings sir,
what the value of potentiometer is used in the steering??
fozz18 says: Mar 6, 2013. 12:02 AM
(removed by author or community request)
ScitechWA (author) in reply to fozz18Mar 6, 2013. 3:42 PM
That's right the analog versions were nice and easy to read.
John who wrote the code we are using has done some code to use the IMU you have.
http://www.instructables.com/id/Easy-build-self-balancing-skateboardrobotsegway-/step53/Code-for-use-with-new-6dof-DIGITAL-IMU-from-Sparkf/

Let us know how it works.
bgoldberg1 says: Feb 20, 2013. 7:56 PM
Very cool looking! :)

It looks almost like a wheelchair for a disabled person, except for the smallish wheels.

Can it go up a curb from street to sidewalk?
ScitechWA (author) in reply to bgoldberg1Feb 20, 2013. 8:56 PM
lol. Except they don't use Carbon Fibre racing chairs. lol.
Nope won't go up curbs unless it's ramped.
bcamaro says: Feb 17, 2013. 1:25 AM
Please explain Why TORQUE = 9
ScitechWA (author) in reply to bcamaroFeb 17, 2013. 3:38 PM
You might want to ask John that question.
He wrote the code.
http://www.instructables.com/id/Easy-build-self-balancing-skateboardrobotsegway-/
gerrymazzotta says: Jan 18, 2013. 12:30 PM
Hello,
With your code chair would like to build a scooter type V2 but with the steering right and left driven by two potentiometers at the base of the steering column.
You can do?
What should I change in the code?
What pots to use?
Sorry for the many questions ..
Thank you very much,
Sincerely, Gerry
ScitechWA (author) in reply to gerrymazzottaJan 20, 2013. 4:34 PM
Hi,
You only need one potentiometer for the steering.
Have the other one as a small one that you set to the middle position.
Tilting the unit will still work as normal.
Or remove that part out of the code like the scooter has.
As for a potentiometer get a good quality one for RS components or someone.
bcamaro says: Jan 9, 2013. 12:01 AM
What is TORQUE.
ScitechWA (author) in reply to bcamaroJan 9, 2013. 3:25 PM
In physics, a torque is a vector that measures the tendency of a force to rotate an object about some axis.
kaizoku30 says: Nov 8, 2012. 11:54 AM
hi, i am building a self balance scooter using the pot steer code using 2 350w 2750 rpm motors, 2 12v 7.2ah sla battery. This thing happened to me when i doing a circuit dry run. when i tilt the gyro, it does not have any response, but when it does, it run full speed clockwise, tilting back to the opposite direction does not change the direction . One thing i notice is when the motor start running, the error led on the sabertooth blink one time and goes off. Any idea what i have done wrong? Thanks.
ScitechWA (author) in reply to kaizoku30Nov 8, 2012. 3:15 PM
Hi, Just checking your startup proceedure and gyro position.
The gyro should be mounted with the 2 holes in it at the bottom and the chip side facing towards the back and vertical.
When starting the unit the gyro should have a tilt on it.
So first tilt the gyro, turn on power and DO NOT MOVE IT for 5 seconds.
This is very hard if being held in your hand. I suggest sticking it to the bottom of a ruler so that large movement at the top equals small movement at the bottom.
Now turn on the deadman switch. Tilt the gyro upto the vertical position and the motors should kick in.
Tilt the ruler around the vertical position and the motors should reverse and slow.
Tilt it more and it will speed up.

We don't bother doing dry runs as we know the circuit/code works.
The only issue you should have is the motors being connected the wrong way and sitting it up on some crates allows you to tilt start.

Hope this helps.
TheWreckingYard says: Aug 23, 2012. 9:57 AM
Could you verify that the Scichair_pullup_pot_24_feb_2012.txt file is the pot steer code? I had a good look at it and it still looks like it's the toggle switch version. Thanks for uploading this instructable, I'm hoping my version will be up and running this weekend.
ScitechWA (author) in reply to TheWreckingYardAug 23, 2012. 5:36 PM
Lol. Sorry about that.
I have attached the lastest code we have.
It is propotional steer and driving forward/back via the joystick.
It also has a feature with a flashing status for the gyro for turn on.
Basically you turn on power and the light will flash until the gyro has locked on (about 4 seconds) and then goes steady.
TheWreckingYard in reply to ScitechWASep 5, 2012. 5:24 PM
Thanks again for posting this, I just got mine working today, I made a few changes in that I used a Playstation 2 controller for driving it, works great! I uploaded a driving video to YouTube at: http://youtu.be/s_AOMc45DnY

Thanks alot guys never would have conceived of building this without this instructable!!!

Ron
TheWreckingYard in reply to ScitechWAAug 23, 2012. 6:58 PM
Excellent, thanks alot!
ScitechWA (author) in reply to TheWreckingYardSep 5, 2012. 6:22 PM
LOL. Wow. That's brilliant. We wanted to build a big one.
Your most welcome. You just made my day!

Cheers
Rodney
ScitechWA (author) in reply to ScitechWASep 5, 2012. 6:33 PM
What Motors and batteries are you using?
Still using the sabbertooth?

Man it gets going.

Just a disclaimer!
Wear a helmet! The code isn't perfect so don't rely on it, especially at high speed.
And there is no governer/speed limiter in the code so when you get to top speed the motors can't keep up and the front will touch the ground.
Be safe and have fun!

But awesome job!
TheWreckingYard in reply to ScitechWASep 5, 2012. 7:33 PM
Thanks, I bumped up a bit on a few things but electrically it's pretty much the same thing. I used a Sabertooth 2x60 controller, 600W 2400rpm motors (no gear reduction, which might be iffy), same gyro/accelerometer and then I just swapped in the PS2 controller library. As well I used a pair of 12V 20Ah batteries, switched on with a large 24V solenoid. No idea what the run time is but it`s alot of fun. Disclaimer taken, I already clipped a power pole with it. :)

Ron
gerrymazzotta says: Jul 2, 2012. 2:20 AM
Hello,
you managed to create the new code with potentiometer for joystick forward / backward?
IMU What are you using?
Can I get a code from your code for 3-wheel scooter without IMU?
Sorry for so many questions.,
Regards, Gerry.
ScitechWA (author) in reply to gerrymazzottaJul 6, 2012. 6:36 AM
A 3 wheeled scooter doesn't need to balance so you don't need an IMU or an arduino.
Use the wizard for the sabertooth in analog mixed mode steering.
http://www.dimensionengineering.com/datasheets/SabertoothDIPWizard/start.htm

Rod
pranav vempati says: Jun 18, 2012. 7:45 AM
Can you please upload the CAD model of the Scichair???
ScitechWA (author) in reply to pranav vempatiJun 18, 2012. 4:14 PM
Hi,
There is no CAD model for the chair.
The frame dimentions would vary due to the size wheels you use, the type and size chair you use. The size person you want to fit in the chair.
Take the basic frame design you see and design yours to suit the chair, wheels, person you are going to use.
ScitechWA (author) says: Apr 10, 2012. 9:32 PM
Replace IMU link updated in Parts list. Thanks 3ug3n.
pranav vempati says: Mar 31, 2012. 7:04 AM
Can you please post the dimensions of the the frame???
1-40 of 111Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!