Step 1: Prepare the Components
*** Individual Components *** - Arduino UNO https://www.banggood.com/custlink/KKmdjuNyto - L298N Motor Driver or L293D Motor Shield https://www.banggood.com/custlink/GDmyjunh5b - Chassis(including motors and wheels) - Wires - Battery Holder - Micro Servo Motor SG90 https://www.banggood.com/custlink/DGvdl7sRim - HC-SR04 Ultrasonic Sensor https://www.banggood.com/custlink/33GdO7QYiY - Sensor Mount (Optional) *** Tools (Optional) *** Soldering Iron Hot Glue Gun Wire Cutter Screw Driver
Step 2: Assembly All Components
Connect the wheel, circuit board, servo motor, sensor...to the chassis
Step 3: Wiring
Connect the wires according to the circuit diagram as shown above
Step 4: Coding & Testing
Upload Sketch and Testing it!
Source code: https://www.hackster.io/goldscrew/arduino-obstacle-avoiding-robot-car-2wd-with-aa-battery-514b3c#code
0 Comments