Now that we can move the robot in multiple directions for specified periods of time, let's think about how to read values from an ultrasonic sensor in order to create a robot that can avoid obstacles. We will also use an LCD display and use it to print distance values.
In this chapter, we will cover the following topics:
- Using an ultrasonic sensor
- Using an LCD
- Creating an obstacle-avoiding robot