Controlling a car robot from a computer
We can control our robot from a computer. This means that we can send commands to the robot to perform an action. In order to send a communication between a computer and robot, we need a communication module on both.
In this section, we will build a communication between the Pololu Zumo robot and a computer. I usually use Bluetooth modules as wireless stacks for communication.
For implementation, I use Bluetooth HC-06. This is a Bluetooth slave, so we can communicate directly through UART protocol. The Bluetooth HC-06 module is cheap, and you can buy it on banggood.com, eBay, dx.com, and AliExpress.
The Bluetooth HC-06 module has the following four output pins:
VCC
GND
Rx
Tx
A form of Bluetooth HC-06 module can be seen in the following figure:
To communicate with Bluetooth HC-06, I use the SoftwareSerial library (https://www.arduino.cc/en/Reference/SoftwareSerial). This library is supported for the AVR MCU model. If you use an Arduino-based ARM MCU, such as...