Exercises
These exercises will deepen your understanding of the topics that were covered in this chapter and make the robot code better:
- Combining the preceding behaviors with the menu system for the UART we’ve seen in previous chapters would allow you to tune the PID with the robot running.
- Could you use the known turn behavior and straight-line behavior to write a better version of the planned path program from Chapter 5, Driving Motors with Raspberry Pi Pico?
- Experiment with the Euler heading reading – after calibrating, see how the readings change when you bring the robot near objects such as a laptop or kitchen appliances. This experiment will demonstrate a weakness with this kind of sensor.
- An advanced experiment would be to extract the quaternion (instead of Euler data) and write this to the UART.