Twin Motor Spybot using Mbed with bluetooth connection to a PC
Dependencies: mbed Motor X_NUCLEO_53L0A1
Homepage
General Information¶
This code allows an mbed LPC1768 to be wirelessly controlled from a PC. The PC sends serial chars over Bluetooth to control motors connected to an H-Bridge. This code works via interrupt driven functions which receive the incoming chars over a serial Bluetooth connection. The chars are sent in the format "0.00" with a - sign if it is negative. The functions parse the strings out and convert them into float values before then writing them into the Motor API. This all works while the LIDAR polls readings to ensure that it is not to close to any objects.
The serial chars are generated on the PC by a C# application which reads gamepad inputs. (Motors are controlled via float values from the analog sticks).