In this chapter, we have looked at certain criteria for selecting a robot chassis. After that, we constructed our car, connected the motor driver to the Raspberry Pi, and understood the workings of an H-bridge circuit. Finally, we wrote programs to make the robot move forward, backward, left, and right.
In the next chapter, after understanding the basic fundamentals of moving a robot in this chapter, we will first write a program to measure distance using an ultrasonic sensor. Next, we will use these distance values for avoiding obstacles, that is, if the robot comes very close to a wall then the ultrasonic sensor will sense it and it will command the robot to take a turn, thereby avoiding the obstacle.