Robot Car

  • Neil Cameron


Building a robot car combines devices outlined in several chapters, with DC motors in Chapter  23, a servo motor in Chapter  8, an ultrasonic distance sensor in Chapter  3, an OLED display in Chapter  13, and an RGB LED in Chapter  14. The obstacle-avoiding robot car detects the distance to surrounding objects in front of the robot car, and if the distance is below a threshold, the robot car stops and scans left and right to determine the direction away from the nearest obstacle. An RGB LED indicates the direction of the turn. The distances from the robot car are shown on the OLED display (see Figure 24-1).

Copyright information

© Neil Cameron 2019

Authors and Affiliations

  • Neil Cameron
    • 1
  1. 1.EdinburghUK

Personalised recommendations