$20 Arduino Obstacle Avoidance Smart Car


About: A Interaction Designer with Industrial Design and EE background. Maker since a kid. Super grateful to new technology and online communities made everything possible!

Hope you enjoyed the video above, in this tutorial, you can make yourself one of this obstacle avoidance robot car for under $30.

What you will need:

$19.99 Smart Robot Car kit: https://www.banggood.com/DIY-L298N-2WD-Ultrasonic...

Parts you might already have:

M3 *10mm Standoffs: https://www.banggood.com/50pcs-M3-10mm-Brass-Fema... Amazon: https://www.banggood.com/50pcs-M3-10mm-Brass-Fema...

Jumper cables: https://www.banggood.com/120pcs-Multicolored-Dupon...

Amazon: http://amzn.to/2G6WH78

4 AA batteries

Required Tools:

Soldering Iron:

Screw Drivers:

Twist Ties(For fixing the ultra sonic sensor)

Optional Tools:

3D Printer for upgrade parts


Step 1: Mechanical Assembly

Please follow the video to assemble your kit. The board mounting location will be covered in the next step video.

Step 2: Electronic Connections and Component Tests

Please be aware that there are connect changes in the next step.

To learn more about the L298N, please watch:


The test codes for motors, ultra sonic sensor and servo can be found here:


Step 3: Updates for the Full Code

Step 4: Full Code Explained



    • Classroom Science Contest

      Classroom Science Contest
    • Woodworking Contest

      Woodworking Contest
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest