Problem with PropBot
MacGeek117
Posts: 747
I just got my first Propeller in the form of a Protoboard that I just put on my BoeBot chassis. I've posted the program I'm using to test the servos, but only the servo I set first runs. The other one stays still. Does anyone know what I'm doing wrong?
RoboGeek
PS. Yes, the connections are good, I already tested them.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"
Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
Post Edited (RoboGeek) : 3/6/2007 5:34:04 PM GMT
RoboGeek
PS. Yes, the connections are good, I already tested them.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"
Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
Post Edited (RoboGeek) : 3/6/2007 5:34:04 PM GMT
spin
418B

Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Stan Dobrowski
Stan671 is correct... another reason for doing this is so the servo's have some sort of pre-defined position. Doing so otherwise may yield unpredictable behavior.
Try something like this...
''*************************** ''* Propeller Template V1.0 * ''* Author: Peter Quello * ''* Started: 18 JUN 2006 * ''*************************** [b]CON[/b] [b]_clkmode[/b] = [b]xtal[/b]1 + [b]pll[/b]16x [b]_xinfreq[/b] = 5_000_000 left = 25 right = 24 [b]VAR[/b] [b]OBJ[/b] servo : "servo32" [b]PUB[/b] Start servo.set(right, 1300) servo.set(left, 1700) servo.start▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 3/6/2007 8:17:28 PM GMT
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"
Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
·