Introduction: $20 Arduino Obstacle Avoidance Smart Car
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
Parts used in this video:
Ultrasonic Sensor holder by Uri Shani: https://www.thingiverse.com/thing:2765463/
Thanks Uri!
Tiny screw kit: https://www.banggood.com/1000Pcs-Glasses-Sunglass...
Third Wheel: https://www.thingiverse.com/thing:2811802
9V Battery Clip: https://www.banggood.com/Wholesale-9Volt-Battery-...
Step 4: Full Code Explained
Full code can be found here:
2 Comments
Question 1 year ago
I also had already soldered the wires to the motor but it looks like I reversed the color of the wires--my black one is on top. Is this going to mess up the vehicle?
Question 1 year ago on Step 1
I bought a kit for an obstacle-avoiding vehicle and it came with no way to attach the servo and the ultrasonic distance sensor. So I looked up a tilt and pan bracket kit. The ultrasonic sensor is HC-SR04 (if that means anything to you). I am concerned abouty size--with the sensor fit into the bracket kit. The servo is the same size as the one I have. I like how you fumble through the construction--I liked hearing you think through it without any instructions in the kit.