Motion Sensor Car Manual
Welcome to my Motion Sensor Car Manual!
In this Instructable, I will be teaching you how to create a motion sensor car that will avoid objects.
Read through the steps to find out how
Step 1: What You Will Need!
Arduino UNO - https://www.ebay.com/p/Arduino-UNO-R3-Board-With-...
Robot car chassis with 2 toy car wheels - https://www.ebay.com/p/Arduino-UNO-R3-Board-With-...
DC motors - https://www.ebay.com/p/Arduino-UNO-R3-Board-With-...
Motor driver - https://www.ebay.com/p/Arduino-UNO-R3-Board-With-...
Ultrasonic Sonar sensor - https://www.ebay.com/p/Arduino-UNO-R3-Board-With-...
Micro Servo 9g - https://www.ebay.com/p/Arduino-UNO-R3-Board-With-...
Battery Pack - https://www.ebay.com/p/Arduino-UNO-R3-Board-With-...
All materials needed come with links to where you can purchase!
Accessories:
- Wires (male-to-male, male-to-female)
- Mini breadboard
- Ultrasonic sonar sensor
- Mounting bracket
- Screws and nuts
- Screwdriver
- Soldering iron
- Double-sided tape
Step 2: Assembling the Car Chassis
To start off, solder two wires to each DC motor, then fix two motors to the chassis using the screws. If you need any clarification, please watch this YouTube video. https://www.google.lk/url?sa=t&rct=j&q=&esrc=s&so...
After you are done soldering the wired you will connect to your DC motor and have screwed the two motors, you will now simply put the wheels onto each side of the car, the wheels should place easily!
Step 3: Mount the Components
Mount the Arduino UNO, the motion sensor and servo motor on the chassis, as well as the battery pack. Note: When mounting the Arduino board, leave enough space to plug the USB cable, since later you have to program the Arduino board by connecting it to the PC via USB cable. If you want to add any extra features to the breadboard, you can go ahead, but for this specific project, all you need is the Arduino, battery pack, servo motor, and a motor sensor mounted.
Step 4: Mounting the Sensor
Plug the four jumper wires to the touch sensor and mount it on the mounting bracket. Then mount the bracket on the micro servo which has already installed on the chassis.
Step 5: Wiring
vcc------+5vgnd---------gnd
trig pin--------connect 5pin of the Arduino
echo pin--------connect 6pin of the Arduino.
8,7,4, and 3pin are connected to motor driver l293d
8pin of Arduino is connected to 2pin of l293d.
7pin of Arduino is connected to 7pin of l293d.
4pin of Arduino is connected to 10pin of l293d.
3pin of Arduino is connected to 15pin of l293d.
Step 6: Coding & Programming
Step 7: Powering Up the Car
Connect the power cord to the battery pack after you are finished uploading your code to the Arduino board.
Step 8: Finished!
Your robot is now ready to move around and avoid objects!
Have Fun and Enjoy!