Creating and Coding a Serial Command Protocol to Control Your Arduino Robot Project

 Learn how to receive serial commands sent by your computers com port or other serial device and use those commands to make your Arduino control things such as servo motors and LED's. Play around with the sliders and buttons on the serial command simulator to see some possible device control implementations. Click the "View Arduino Code" button to see example code and some hints on making your own serial command protocol.

 

 This example shows one of the ways that Microbotlabs control software sends commands to the Arduino used to control the  ArmUnu  Armio and MeArm robotic arms. Its easy to understand yet still flexible in its ability to control many actions that you would want your Arduino to do. You can upload the example code to your Arduino and use the Arduino IDE "Serial Monitor" to send data packets to see it in action.

 

 The simple serial command protocol provides a good starting point to learn before tackling more complicated protocols that could provide additional benefits such as error detection and more efficient data usage.

 

This tutorial is a work in progress, and will be updated with more details soon...

Copyright © MICROBOTLABS

Our Make & Learn Brands: MICROBOTLABS™ ARM.UNO™ ROBOTIO™ PROTIO™ ARMIO™ ANITRON™ ANITRONIC™ ARM.ONE™