Self Balancing Scooter Ver 2.0 by ScitechWA
Featured
IMG_1081.JPG
11/01/2013
******************************************************************************************************************
Unfortunatly the IDG500/ADXL335 chips unsed on the accelometer is End of Life.
So they will no longer be manufacturing those chips and therefore the accelometers.

There are digital versions out there but a complete code change will have to be done to get it working.
Hopefully soon we will have a solution.


Solution has been found
http://www.ebay.com/itm/181004141876?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

******************************************************************************************************************


After building the first Self Balancing Scooter as a test platform, we found it to be quite cool so we built another with a few extra features.

This time we added:
  • 2 x 14.4Volt Li-ion batterys
  • Solid frame for motor and wheel mounts
  • Adjustable height handle
  • A nice CNCed platform
  • And Tread Plate!

The exact same parts used on the first scooter were utilized to build this one.
http://www.instructables.com/id/Self-Balancing-Scooter-Ver-10/

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

 

 
Remove these adsRemove these ads by Signing Up

Step 1: Details about the build

IMG_1085.JPG
IMG_1081.JPG
Issues encountered with the first unit were fixed with this version.

The main issue was that the rear end of kids scooters were a cheap pressed plate that would buckle and bend when under weight so stronger, metal plates were laser-cut to replace the frame which holds the motor and wheels.

The frame was made from 25mm tube and reinforced to hold more of weight.

The front handle was made adjustable so smaller people can ride it too.

Because there wasn't any cheap torches that used the chosen batteries, a holder was made to store the batteries.

A tread plate was added to make it look professional.


1-40 of 173Next »
eyhseow says: May 9, 2013. 1:50 AM
Hi All
My self-balancing likes to move left and right and doesn’t stay still in one position. Anywhere in the code where I can change to make it stay still?
Please help. Thanks.
CUSTOMIZER says: May 2, 2013. 12:31 PM
Hi

regarding the Ebaylink for the new IMU. that IMU uses ADXL335 and IDG650 not IDG500!!!

Will it work??
ScitechWA (author) says: May 2, 2013. 9:30 PM
Yes it does. Someone has used it and works ok!
eyhseow says: May 1, 2013. 10:00 PM
Dear Sir
Would you tell the code to stop the scooter from flying off if it tilt too much?

Thanks.

ScitechWA (author) says: May 2, 2013. 6:11 PM
That is a bit of a code change. We won't be doing that any time soon.
eyhseow says: Apr 25, 2013. 2:21 AM
Dear Sir,

I had started on building but encountered some problems.

1. When I tilted the scooter too much, it will fly off. Is there any code in the program to prevent the scooter from flying off if it is tilt too much?
2. When the scooter fly off, it took quite a bit of time to ‘recover’ to it balancing position if I were to tilt it to the opposite direction. Anywhere in the code where I can change to have the scooter tilt back faster?
ScitechWA (author) says: Apr 29, 2013. 6:35 PM
1. Yes that's right. We do need to add code in to turn off when you tilt that far.
2. You need to turn off the unit off and to reset the gyro.
If you have gotten to that point then I dought you are still on the scooter.
sravanrkappen says: Apr 22, 2013. 2:52 AM
hi sir. i am glad to inform you that our segway balanced worked properly. but all of a sudden the response of the gyro is slow and it does not work properly. it responds to the gyro but it is very slow. we have tried our best to make it work. we tried changing the cycle time in the codes, but it also didnt work. we checked for the short in the connections and it looks fine. so kindly help us with your ideas to make it work.
ScitechWA (author) says: Apr 29, 2013. 6:31 PM
We have had it "go slow" and reponse to the gyro is very slow (0.5 seconds) at some stage. Usually pulling the battery for a period of time fixed that.
Not sure what it is yet.
If it does it all the time then I'm not sure.
jidane17 says: Apr 18, 2013. 1:41 PM
halo.....i am doing balancing scooter using arduino leonardo and IMU 5DOf with MD10C motor driver.....that the coding same with sabertooth??
can you give the suggestion or the code???TQ....=)
ScitechWA (author) says: Apr 21, 2013. 12:24 AM
The Leonardo should be ok. If the 5DOF IMU is the one I recommended then that will be ok.
MD10c is not a sabbertooth and completely different code. It won't work.
gttipsgsegwayteam says: Mar 8, 2013. 5:27 AM
Greetings Sir,
The self balancing scooter is responding to the two directions of tilt well.But the reference point seems to fluctuate a lot and it is not constant. As far as our observation goes, there are three reference points. Is there anyway to fix the reference point so that the IMU outputs a 300 mV???
gttipsgsegwayteam says: Mar 4, 2013. 8:05 PM
Greetings sir,
In the tiltstart mechanism,you have mentioned that we will observe a 300 mV output at the successful calibration of the IMU board.Can u please help us as to which pin will display this output???
ScitechWA (author) says: Mar 5, 2013. 4:11 PM
That is the output per G at 90 degrees. It comes from the IMU through the analog pins.
eyhseow says: Mar 4, 2013. 7:25 PM
Dear Sir

Do you have any update on the digital Gyro code?
Thanks.
ScitechWA (author) says: Mar 5, 2013. 4:04 PM
Nope sorry. Not yet.
We should have soon when the guys gets back to write it!
sravanrkappen says: Feb 20, 2013. 12:37 AM
respected sir,
i have a doubt...
is the mechanical design will decide the balancing of the vehicle?

ScitechWA (author) says: Feb 20, 2013. 3:30 PM
No Mechanical has nothing to do with the balancing as long as you have it round about centre.
Are you still having issues?
If so do a youtube video so I can see.
sravanrkappen says: Feb 12, 2013. 9:35 PM
respected sir,
we are very happy to inform you that our segway started balancing.....
but sir we found that after trimming the gyro,when the power goes down,the balancing point comes back to previous point......
we tried the tilt start,but it seems not responsive.....
so please help us with your ideas....
ScitechWA (author) says: Feb 13, 2013. 3:33 PM
Ok so when you have the unit tilted turn on the power. DONOT move the unit for 4-5 seconds.
Now turn on the deadman switch, slowly tilt the unit up to vertical and the motors should turn on and start balancing.
You can adjust the position using the switches for better riding.

If you ar having issues with the tilt start position. Make sure that the IMU is set vertically and not loose.

If you need to change the startup position then go to line 366 in the code.

x_accdeg = (float)((accsum - (340 + balancetrim))* (-0.862));

Change the value 340 by 5 each time either up or down and see if it starts in a better position.

This should help
bnur cahyono says: Feb 5, 2013. 7:29 AM
in your balancing scooter? can it?
:D
ScitechWA (author) says: Feb 5, 2013. 3:20 PM
We haven't tried it with our code but it should do.
The problem at the moment is that the Accelerometer for our project is no longer avalible.
So you can not build the project until we find a replacement or change the code.
bnur cahyono says: Feb 4, 2013. 9:49 AM
hello
can it self balancing when no people above it?
thanks
ScitechWA (author) says: Feb 4, 2013. 3:31 PM
Yes it is possible.
The tuning isn't that fine on this code to use it like that.
Have a search on the net for segway robot code.
http://blog.tkjelectronics.dk/2012/03/the-balancing-robot/
ScitechWA (author) says: Jan 31, 2013. 3:45 PM
Hi,
That gyro is identical to the one eyhseow put a link to before.
They say that they are using the IDG500 but it is the IDG655 chip they have on board.
It is 4 times molre sensitive so the code could probably be changed but it would be wasting time.
It would be better to spend the time on a new digital units.

But hey if you want to buy one to test out let us know if it works ok.
gerrymazzotta says: Jan 31, 2013. 6:41 AM
Hi friends,
do you think this could go?
http://it.aliexpress.com/item/New-5DOF-Dual-axis-analog-gyro-sensor-IDG500-IDG655-650-ADXL335-module-Quaranteed-100/541996199.html
eyhseow says: Jan 28, 2013. 11:08 PM
Dear Sir

Which digital Gyro part (part number) are you intend to use for next version?
Thanks.
ScitechWA (author) says: Jan 29, 2013. 3:20 PM
The new Gyro will probably be this model.
https://www.sparkfun.com/products/10121
We will be working on the code in the next week.
eyhseow says: Jan 11, 2013. 12:02 AM
Dear Sir

Do you have any spare 5 DOF accelometer that you willing to sell to me or do you have oher source that I can purchase from. Hopefully you able help in writing the new code for digital accelometer. Thanks in advance.
eyhseow says: Jan 24, 2013. 10:25 PM
Dear Sir

Can I use 5DOF module accelerometer + dual-axis gyro instrument IDG500/IDG655 650 ADXL335 from this website: http://www.ebay.com.sg/itm/5DOF-module-accelerometer-dual-axis-gyro-instrument-IDG500-IDG655-650-ADXL335-/181004141876?pt=LH_DefaultDomain_0&hash=item2a24b00534

Please advise.
Thanks.
ScitechWA (author) says: Jan 27, 2013. 5:00 PM
Hi,
Having a quick look at the specs on the chip it might work!
I can't garrantee that without buying one and testing it.
It's sensitivity is 4 times that of the version we used.
If you want to spend the money to test it.

We will be looking at getting the digital gyro running soon!
eyhseow says: Jan 27, 2013. 10:16 PM
Dear Sir

Which digital gyro part are intend to use?
ScitechWA (author) says: Jan 13, 2013. 4:52 PM
Hi,
No sorry we only have one spare incase the any of the ones we have break.
gerrymazzotta says: Jan 19, 2013. 1:06 AM
Hello,
this is what I would do.
Do you think that you can do?
Sincerely,
Gerry.
IMG_0153.JPG
ScitechWA (author) says: Jan 20, 2013. 4:35 PM
Hi,
Yep looks good.

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.
gerrymazzotta says: Jan 18, 2013. 5:49 AM
Hi,
I would like to build your scooter with the steering commands to right and left positioned at the base of a oscillating handlebar handle and the radius of curvature with two potentiometers mounted on the base of the same.
Of course you should change the code Arduino but do not know where to start.
Thanks for that can you give me,
Sincerely, Gerrymazzotta.
ScitechWA (author) says: Jan 16, 2013. 6:47 PM
As I wrote below, it is the chips that are end of life!!!!!
They are not producing them any more.
So you will be lucky to find them.
We will be working on the code soon.
Otherwise search for IDG500 and ADXL335 and see if anybody still has an IMU.

They have gone away from the analog IMU's to the digital ones.
eyhseow says: Jan 16, 2013. 5:43 PM
Dear Sir
Since I cannot get the analog 5DOF. Can I use individual IDG500 and ADXL335 board to combined for this project?
Please advise. Thanks.
eyhseow says: Jan 10, 2013. 5:31 PM
Dear Sir

Can we use MinIMU-9 from Pololu for replacemnet part for 5 DOF accelometer?
Please advise. Thanks.
ScitechWA (author) says: Jan 10, 2013. 6:52 PM
No that one will not work
1-40 of 173Next »
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!