Shop OBEX P1 Docs P2 Docs Learn Events
Position Controller Help — Parallax Forums

Position Controller Help

rwcloughrwclough Posts: 1
edited 2009-12-04 02:35 in Robotics
I can't get the Position Controller (#29319) to work consistently.
For initial testing I connect the TX pin of a dsPIC30F6010A UART to one Position Controller and send commands for which the Position Controller does not send replies. I send the following command sequence:
0b00101000 "Clear Position"
2 ms delay
0b00100000 "Travel 300 positions"
2 ms delay
0x01
2 ms delay
0x2C
2 ms delay

The Position Controller commands a Parallax HB-25 motor driver. The motor
ramps up to speed, goes at constant speed for a few seconds, then ramps down to
a stop. When I push the reset button on the micro to restart the command
sequence the motor sometimes just spins at high speed and does not stop.

I'm using defaults for all the Position Controller parameters.
I have verified that the Motor Driver is working correctly.
The UART is initialized to 19200 baud, 8 bits, no parity, one stop bit.

What am I doing wrong?
Any help is greatly appreciated.

Post Edited By Moderator (Chris Savage (Parallax)) : 12/3/2009 8:55:41 PM GMT

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-12-03 20:53
    This post is being moved to the Robotics Forum. A subject was added.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    ·
  • SeariderSearider Posts: 290
    edited 2009-12-04 02:35
    This sounds like a reversed connections. Pay very close attention to the wiring diagram. You can also search this forum for threads on the Possition controller that will explain in more detail.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    Searider
Sign In or Register to comment.