Position Controller Help
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
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 Savage
Parallax Engineering
50 72 6F 6A 65 63 74 20 53 69 74 65
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Searider