You can also communicate with the Arlo through the SimpleIDE Terminal, and perform the same serial communication tasks the Propeller has been programmed to do. For example, here is the sequence of commands and replies from Test Encoder Connections example.
In this example, the rst command clears the encoder counts stored by the DHB-10. Next, gospd 32 32 makes the Arlo move forward at 32 counts per second with each wheel. Of course, gospd 0 0 stops the wheels, and dist asks how many encoder counts have passed since the last rst command. Last, but not least, exit takes the program out of command mode and allows the program to continue.
NOTE: For a full list of serial commands you can use, check the DHB-10 Motor Controller Firmware Guide [1].
/* Arlo - SimpleIDE Terminal Command Mode.c Communicate with Arlo through the SimpleIDE Terminal. */ #include "simpletools.h" #include "arlodrive.h" int main() { dhb10_terminal(SIDE_TERM); print("Back in main program."); }
Links
[1] https://www.parallax.com/downloads/dhb-10-motor-controller-firmware-guide