The main hardware requirements for this chapter are the following:
- An HC-SR04 ultrasonic sensor
- A 16x2 LCD or a 16x2 LCD with an I2C LCD module
- A breadboard
- One 1 KΩ resistor
- One 2 KΩ resistor
- 12-13 connecting wires
The code files for this chapter can be downloaded from https://github.com/PacktPublishing/Hands-On-Robotics-Programming-with-Cpp/tree/master/Chapter04.