Shop OBEX P1 Docs P2 Docs Learn Events
Pololu Motor Controller — Parallax Forums

Pololu Motor Controller

jeffrey morrisjeffrey morris Posts: 52
edited 2005-09-14 19:46 in Robotics
I got the Pololu Micro Dual Serial Motor Controller. I'm confused by the instructions on sending commands to the motor controller. I can get one motor to run at a time. How can I get two motors to run at same time?

Comments

  • Rick BrooksRick Brooks Posts: 67
    edited 2005-09-13 23:08
    Jeffrey,

    Where you have one serial command like: "SEROUT 14,84,[noparse][[/noparse]$80,0,0,speed]", just follow it with the serial command for the second motor.

    FOR speed = 0 TO 127
    SEROUT 14,84,[noparse][[/noparse]$80,0,0,speed]
    SEROUT 14,84,[noparse][[/noparse]$80,0,2,speed]
    PAUSE 20
    NEXT

    That should get both motors running at the same time.

    Rick
  • jeffrey morrisjeffrey morris Posts: 52
    edited 2005-09-14 19:46
    Rick, Thanks.
Sign In or Register to comment.