Exercises
These exercises let you extend the functionality of your robot code and deepen your understanding of the topics:
- In the Bluetooth control app, there are four numeric buttons. Could you extend the control program to use these to control the robot’s speed?
- The Bluetooth control pad app also has a little window to show messages. Try sending messages back from the robot code to the app to show in this window.
- Could you use the plotting code with the encoder counts and plot these? Perhaps divide their total counts by elapsed time in the code, or reset the encoder counts and reread them to plot a rate per second.