Asked — Edited

Balance Bot Demo Mma7455 Accelerometer

Here's a video of a balance bot concept with two wheels.

Click To Watch Video


$n=0
$D0Pos=GetServo(D0)
$D1Pos=GetServo(D1)
ServoSpeed(d1,0)
$posA=50
$posB=50
:Top


$n=$n+1
#print("MMAX=$mmAX MMAY=$MMAY  MMAZ=$MMAZ n=$n")

if ($mmay`>116)
$posa=$PosA+2
servo(D1,$posA)
#sleep(200)
$posb=$posb-2
servo(D0,$posB)
#sleep(200)
endif
#sleep(200)
release(D0)
release(D1)

goto(Top)

User-inserted image

Best,

Bill


ARC Pro

Upgrade to ARC Pro

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

#1  

That is awesome! I would assume your next step is movement. EZ-Robot segway?

#2  

Wow, That's impressive. Lots of things that can be done with this. Thanks for the code also!

#3  

this is cool! although only this thread has a weird layout problem. hmmmmmm... Pic: User-inserted image

#4  

A balance not for sure is on the list probably before walking ones.:) thanks for the demo.

United Kingdom
#5  

@EEGbiofeedback that's brilliant just what I wanted to see thanks for sharing. I take it these are continuous rotation servos? And I presume the MMA7455 is strapped to them in some way?

#6  

Thanks Winstn,

Yes the MMA is twist tied on. No they are not continuous servos which would be a problem if I had longer wires. However the MMA7455 is working perfectly with all 8 inch wires. It's very accurate.

My next trick is to put it in my tank chassis to teach it to more intelligently autonomously climb arbitrary hills etc. If it's angles are too great, it'll back up and twist to compensate. Yet keep moving in an upward direction.

Down the road, I just bought a Radio Shack monster truck capable of 30mph speed. It'll be fun to include it as an anti rollover control system. I should be able to make it know if it's power is too great to slow down before turning. It should be able to figure out it's max capacities and stay within them. But the first thing with that will be to make it pop some serious wheelies. :)

Bill

United Kingdom
#7  

Hi Bill if they are ordinary servos I'll build this then as I have all the bits and experiment. I thought you needed a gyro as well for a balancing robot I need to do some more research I think.

30mph monster truck that sounds awesome!

Neil