Shop OBEX P1 Docs P2 Docs Learn Events
Need help with Pololu motor controller programming — Parallax Forums

Need help with Pololu motor controller programming

LongneckLongneck Posts: 13
edited 2005-10-07 02:34 in Robotics
·Hi , I am new to robotics , programming , and this forum. I hope You can help me.I have a Boe-Bot that I am currntly trying to convert to DC motors.
·The Pololu Dual Micro Serial Controller uses serout for commands from my BS2.
· The command line as written·is as follows; serout 5, 84,[noparse][[/noparse]$80,0,5,127].
·· This gives me the serial pin , baud , Pololu dev. , motor controller , motor#2forward, at full speed. What I need to know is how to program for duration to allow for 90 degree turns etc. Can anyone send me a code snippet as an example to accomplish this? Thanks

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-10-07 01:20
    You're going to have to do that empirically. Put your robot into a turn and time how long (use a stopwatch) to go 360 degrees. Now you can divide this as required and insert appropriate PAUSE commands in your code to control how long the robot is turning.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • LongneckLongneck Posts: 13
    edited 2005-10-07 02:34
    ·Got 'er doin backward 90deg.......Thanks Jonhop.gif
Sign In or Register to comment.