22Ultrasonic Robot

In this project we’ll combine an ultrasonic sensor with two DC motors and a servomotor to create a simple object-avoiding robot.

Image
Image

PARTS REQUIRED

Arduino board

Jumper wires

L293d motor shield

2 DC motors and wheels*

HC-SR04 ultrasonic sensor

9V AA battery pack

Robot base with fittings*

Center wheel*

Tower Pro SG90 9g servomotor

LIBRARIES REQUIRED

Servo

NewPing

Adafruit Motor Shield V1

* These items can be purchased as part of a kit

HOW IT WORKS

The key parts of the ultrasonic robot are the HC-SR04 ultrasonic sensor, L293d motor ...

Get Arduino Project Handbook, Volume II now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.