Other
It's originally designed to calculate directions of our robot for French Robotic Cup (in France). It's developped to drive two stepper motors (Left and Right). It aims to be controlled from a Labview/LabwindowsCVI interface via two Xbee (one on the robot and the other connected to PC) and an USB Xbee shield to connect to PC. It can easily be controlled through an hyperterminal. The command is as below :
[number of steps for left motor][speed left][direction left][number of steps for right motor][speed right][direction right]'\n'
example : 00500 01 0 00100 05 0\n
Speed acts as a timer modulo divider for each motor, the much it is, the slower you go. In this example I set speed proportionnally to opposed motor step number : It will enable us to do a circle (or a part of circle) with synchronisation.
* Attention : spaces are only for readability, don't put spaces between characters when you send even you'll don't obtain the result you w
c
uart
步进电机
控制
mspg
No comment