Step 5Use the interface program
The unmodified sketch defaults to 38400 baud but can be changed to suit your needs for things like a slower radio link. note: baud rates higher than 38400 have not been very stable, I think this is because the uart fills up before the data can be processed.
Next, select the COM port to use. the program defaults to COM4 be sure to change it or the program will crash.
Finally, click open. If all went well the program will open the selected serial port at selected baud rate.
If not the program will probably crash with an unhandled exception. make sure the port is correct and try again.
Use the textboxes to submit direct commands to the arduino. The "map(command[1], 32, 126, 2, 180)" scales all the 94 possible commands, *space* through ~, readable by the arduino in ASCII to 2 through 180 for the servo. any byte less than ASCII 32 (space) or above 126 (~) defaults to 63 (?)
The track bars provide an eaiser interface for direct commands. each step sends a serial command to the arduino incrementally.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|










































