Ultrasonic Smart Car

Introduction Video:

Overview:

In this exercise, you will use an ultrasonic sensor to detect objects in front of a two-wheel-drive electric car. The electric motors are driven by a L298N board and the Arduino is actually powered by the 5V logic supply included on the board. We supply the board with 9V but significantly reduce the power delivered to the motors by using PWM and lowering the percentage of time the motors actually receive power. This project is ripe for a lot of side projects being added on to it. After you do the basics, try to take it a step further!

Parts:

1 – Arduino Uno

1 – L298N Motor Driver Board

1 – 9V Battery

1 – Robot Chassis

1 – Ultrasonic Sensor

Assorted Wires

Wiring:

Ultrasonic
Arduino

Vcc

5V

Trig

13

Echo

12

GND

Gnd

Code:

Last updated

Was this helpful?