
EEGbiofeedback
USA
Asked
— Edited
Here's a video of a balance bot concept with two wheels.
Click To Watch VideoCode:
$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)
Best,
Bill
Pic:
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
30mph monster truck that sounds awesome!
Neil