In this project, an old radio-controlled car was made autonomous by adding an ultrasonic sensor to it. This ultrasonic sensor helps in avoiding obstacles in front of the car by emitting ultrasonic sound waves. This autonomous car detects the obstacle and avoids collision by changing its direction of movement. The ultrasonic sensor sends the data to the Arduino micro-controller and then the micro-controller with the help of a motor-shield controls the movements of the wheels via DC motors
Here is the block diagram of this project which depicts all the components connected together. With the help of this the user can understand the connection of the components.
The breadboard view gives you a strong clarity of how different components are connected together, by looking at this you can aslo build similar design for your project.There is no need to solder any wire or component. Motor-shield comprises screws which need to be tightened after connecting the wires. But we must be careful that all the pins of the motor-shield must coincide with that of the Arduino pins, else the motor-shield would be burnt or doesn’t function properly
Here is a map of all the top-level contents listed in the repository:
- /Images - This is where the image files for this readme are.
- /Modules - This is the place where the code is divided into segments, for better understanding.
- /src - This is where you can see all the coding stuff (.ino).
- /README.md - This is the file you're reading now! :-D
This is the best library when it comes to operating DC motors via motor-shield.
- 1 x RC Car
- 1 x Ultrasonic Sensor.
- 1 x Arduino UNO
- 1 x Ada-fruit Motor Shield L239D.
- 3 x LED for the brake lights.
- 2 x Battery holders.
- 2 x Bread board for placement of Arduino Uno and Ultrasonic sensor. 8 3 x 100k resistor
- 10 x AA batteries (10 Volts).
-
You can download the IDE from here : (https://www.arduino.cc/en/main/software).
-
After you install the IDE click here to learn more about it : (https://www.arduino.cc/en/Guide/HomePage).
- Upload the code to the Arduino.
- Power both the Arduino and the Motor-shield via batteries.
- Then the car moves to the front automatically, it then stops if it finds an obstacle, and then goes back for a bit, and then turns to the left and again checks for the obstacle, otherwise, it turns to the right this time and further continues to go in the same direction.
- This would be cool to watch because it automatically does all these things by itself.
- Last, don’t forget to remove the batteries from the battery holder, sometimes both the Arduino and the Motor-Shield can become really hot after an immense usage.
- Tanu Nanda Prabhu - I did everything. I am the only contributor for this project, I am fascinated about cars, also I am a car freak, Hence I chose this project which makes me happy. Contact me at @ tanuprabhu96@gmail.com
- Trevor Michael Tomesh: consultation on directory structure