SciChair (Balancing Electric Chair)

Written by: roboguru

Picture of SciChair (Balancing Electric Chair)

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.

 

Step 1: Description of the Build

Picture of Description of the Build

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.

Step 2: Parts

Picture of PartsPicture 001.jpgPicture 006.jpgPicture 007.jpgPicture 008.jpgPicture 010.jpgPicture 012.jpg

Parts Needed:

  • Chair - Any type will do. Something comfortable that you can lay back into.
  • Arduino UNO - Check your local suppliers or eBay.
  • Sabertooth 2x52 Motor Controller- www.dimensionengineering.com or a local supplier.
  • 5 DOF accelometer www.ebay.com/itm/181004141876?sPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
  • 2 scooter motors - I would recommend 200w and up. www.oatleyelectronics.com or eBay. Have a look around your area.
  • Batteries - SLA batteries are good and cheap, Power drills can be quite inexpensive too.
  • Wheels - Larger wheels are better for bumps. Get one with the same sprocket chain type as the motors if possible.
  • We got our wheels from www.oatleyelectronics.com
  • Shielded multi-core cable for the accelerometer and heavy power cable for the motors
  • Deadman switch
  • Toggle switch for turning. A joystick is good for this.
  • Toggle switch for adjusting balance position.
  • DC connector for Arduino.
  • DIL pins to suit Arduino
  • Double sides tape
  • Screws etc 
  • Metal tubing for the frame

Step 3: Tools

Picture of Tools

Basic tools are required.
Also,  you will need someone with the equipment and skills to weld the frame.

Other tools you will need:

  • Drill and drill bits
  • Soldering iron and solder
  • Wire cutter and wire strippers
  • Heat shrink and hot air gun to shrink it

Step 4: Building The Frame

Picture of Building The FrameIMG_0831.JPGIMG_0832.JPGIMG_0833.JPGIMG_0834.JPGIMG_0835.JPGIMG_0815.JPGIMG_0817.JPGIMG_0819.JPGIMG_0822.JPGIMG_0823.JPGIMG_0825.JPGIMG_0842.JPGIMG_0844.JPGIMG_0845.JPG

The design of the frame is quite basic (see photos).

There is a U-shaped tube over each wheel to bolt the wheel to and to hold the motors, and a bar between these as the main member. At first we didn't have the gussets in place (triangular shaped pieces) but the bottom bar started bending. Make sure that the main member is heavy duty and have reinforcing to the wheel U shape.

Then add a central tube for the two removable skids. Skids are recommended because they stop a lot of breakages and accidents. We made the seat mounts adjustable for a balance point but this is not needed. Just mount your seat in the middle.

We used a Carbon Fibre Racing Chair we just had sitting around, but most people don't. Try a school seat, car seat or whatever you can find that's comfortable and has a long back with head rest, if possible.

Step 5: Motors

IMG_0798.JPGIMG_0814.JPGIMG_0799.JPGIMG_0825.JPGIMG_0800.JPGIMG_0801.JPGIMG_0811.JPGIMG_0818.JPGIMG_0826.JPG

The motors we used are geared 250W 24V brushed motors from www.oatleyelectronics.com
Motor RPM is about 320 RPM.

The wheels were purchased from the same place.
The fine tooth gear was removed from the wheel and a BMX gear was fitted on the thread.
The pitch of the BMX gear was the same as the motor 12.7mm.

Although this works okay, there is a bit of chain stretch and the key way on the motor gear will wear out eventually.
It is better to use toothed belts here, if possible but the cost does go up when using these!

A plate was made to hold the motors and it bolts to a piece of metal welded to the frame. The piece of metal has two slots cut into it to allow the motor to slide up/down to take up the chain slack. There are different ways of doing this. Something like how a car alternator mounts might be another way. Open the bonnet of your car and see how it's done.

Step 6: Electronics

Picture of ElectronicsIMG_0805.JPGIMG_0808.JPGIMG_0819.JPGIMG_0821.JPGIMG_0803.JPGIMG_0810.JPGIMG_0828.JPGIMG_0829.JPGIMG_0844.JPG

The electronics section involve three things:

Mount the motor controller and ardunio somewhere where they won't get damaged when you crash! Yes you will crash!!!!!!!!!

The Accelerometer needs to be mounted preferably at axle height and vertical. The four holes on the circuit board should be facing down and the chip side to the back.

We used double sided tape as it's a good insulator and sticky!!!!!!! Make sure it's in a nice waterproof area and maybe even heat shrink it water tight. A glue coated heatshrink is good for this. We used shield cable for the wiring as it will stop any added noise getting into the system.

Make sure it is held on tight. If not you will have a bucking bull chair! Believe me I know about this!

The unit has a few switches to add.

  1. The dead man switch. The big red button that has to be held at all times to make the unit work.
  2. Main Power. Cuts power to everything. Ours was built into the battery holder.
  3. Joystick.  Allows you to turn left/right and drive forward in up coming code.
  4. Tilt Adjustment. Allows you to adjust your balance point

Find a good safe, easy to use spot to mount these. Connect all units together and wire these up as per the wiring diagram.
The wiring is pretty much the same as Xenonjohn's Skateboard but without the resistors.
See our circuit diagram below.

Once it is all wired and the code has been uploaded, it's time to test. Puts ome bricks underneath it to lift the wheels off the ground. Tilt it forward and turn the main switch on. Wait your four seconds for the Acceleromoter to calibrate and hold down the deadman switch. The wheels shouldn't start yet.

Slowly tilt the unit back until the Accelerometer is vertical. The motors should start up and you should be able to slowly move it back and forward to slow and speed them up. Check the rotation to make sure that the wheels are going the right way. If not, then power the unit down and swap the polarity for that motor.

Now, you should be ready to drive the unit around.
 

http://www.instructables.com/files/orig/F8I/H5HZ/GYO8A9MC/F8IH5HZGYO8A9MC.pdf

Step 7: The Code

Picture of The Code

The main code used is XenonJohns code for his skateboard. I used the rocker steering but we removed the resistors.

So here is the code for toggle button steering but still using your tilt for forward/backward movement.

**************************************************
Code bug updated on the 24th Feb 2012.
Issue with timing routine.
**************************************************

http://www.instructables.com/files/orig/F6O/2ONA/GZ0JI5YF/F6O2ONAGZ0JI5YF.txt

Step 8: Videos

The SciChair in action!

 

 

 

 

 

Step 9: New Features (Pot Steer and code)

Picture of New Features (Pot Steer and code)20120214_103026.jpg20120214_102948.jpg20120214_103048.jpg20120214_103058.jpgSciChair_Chair_Pot_Steer.png20120214_103706.jpg20120214_103657.jpg20120214_103648.jpg

************************************** New features added 24 August 2012********************************************

Well, we finally have some new features.

We have fitted a potentiometer joystick with proportional steering.
Also the forward/backward movement is still done by Joystick control too.

We have added two Li-Ion batterys instead of the single battery.

We added a status light for the gyro startup period.

And BLING. We added a strip of blue LED's underneath to make it look cheaper.
Nothing better than adding a blue LED to something to make it look cheap!

THE CIRCUIT:
We have removed all the resistors and used software pullups for ease of building.
See the circuit diagram in the pictures above.

THE CODE:
I have also posted the Code below for proportional steering but uses lean to move. The deadman switch has a lock-out, so if you release the button then you need to completely power the unit down and go through the whole start-up procedure again. (For Safety reasons)
It also has a light that flashes when you turn power on until the gyro locks on (about 4 seconds).

FUTURE CHANGES:
We will be changing the chain drive to timing belt drive. (See the expanding collets in the picture above)

Pictures coming soon!

http://www.instructables.com/files/orig/FLC/KUAL/H6730DTD/FLCKUALH6730DTD.txt

http://www.instructables.com/files/orig/F6O/M84D/GYO8A9EU/F6OM84DGYO8A9EU.pdf

 

Leave a Reply