Skip to main content

SELF DRIVING CAR USING AURDINO


  • SELF DRIVING CAR USING AURDINO


Here i'm going to instruct you about making an Obstacle Avoiding Robot based on Arduino. I hope to do step by step guide on making this robot in very easy way. An obstacle avoiding robot is a fully autonomous robot which can be able to avoid any obstacle which it face when it move. Simply, when it met an obstacle while it moving forward, automatically stop moving forward and makes a step back. Then it looks it's two sides left & right and starts to move the best possible way; which means either in left direction if there is another obstacle in right or in right direction if there is another obstacle in left side. The obstacle avoiding robot is very helpful and it is the base of many large projects such as Automatic cars, robots used in Manufacturing factories, even in robots used in spacecrafts.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.


Step 1: What You Need in This Project:

Picture of What You Need in This Project:
Picture of What You Need in This Project:
Picture of What You Need in This Project:
Picture of What You Need in This Project:
Picture of What You Need in This Project:
Picture of What You Need in This Project:
  1. Arduino UNO - https://www.ebay.com/p/Arduino-UNO-R3-Board-With-...
  2. Smart robot car chassis with 2 x toy car wheels and 1 x Universal wheel (or ball casters) - https://www.ebay.com/itm/Motor-New-Smart-Robot-Ca...
  3. Two DC motors - https://www.ebay.com/itm/Arduino-Smart-Car-Robot-...
  4. L298n motor driver - https://www.ebay.com/itm/New-L298N-DC-Stepper-Moto...
  5. HC-SR04 Ultrasonic Sonar sensor - https://www.ebay.com/itm/Ultrasonic-HC-SR04-HC-SR0...
  6. TowerPro micro servo 9g - https://www.ebay.com/itm/6X-TowerPro-SG90-Mini-Gea...
  7. 7.4V 1300mah Lipo battery - https://www.ebay.com/itm/VOK-Lipo-Battery-for-RC-H...
  8. Jumper wires (male-to-male, male-to-female)
  9. Mini breadboard
  10. Ultrasonic sonar sensor mounting bracket
  11. Screws and nuts
  12. Screwdriver
  13. Soldering iron
  14. Double sided tape(optional)
  15. Hot glue gun(optional)
Step 2: Assembling the Chassis
Picture of Assembling the Chassis
Picture of Assembling the Chassis
Picture of Assembling the Chassis
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 youtubevideo https://www.google.lk/url?sa=t&rct=j&q=&esrc=s&sou... and it will show you how to assemble the Smart 2WD Robot car chassis. Finally attach the Universal wheel (or ball caster wheel)

Step 3: Mount the Components

Picture of Mount the Components
Mount the Arduino UNO, L298n motor driver and TowerPro servo motor on the chassis. 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 the it to the PC via a USB cable.

Step 4: Preparing the Ultrasonic Sensor
Picture of Preparing the Ultrasonic Sensor
Picture of Preparing the Ultrasonic Sensor
Picture of Preparing the Ultrasonic Sensor
Picture of Preparing the Ultrasonic Sensor
Plug four jumper wires to the Ultrasonic sensor and mount it on the mounting bracket. Then mount the bracket on the TowerPro micro servo which has already installed on the chassis.

Step 5: Wiring Components

Picture of Wiring Components
Picture of Wiring Components
Picture of Wiring Components
Picture of Wiring Components
L298n motor driver:
+12V → Lipo battery (+)
GND → Lipo battery (- ) important: connect the GND to lipo battery (-) and to arduino board any GND pin
+5V → arduino Vin
In1 → arduino digital pin 7
In2 → arduino digital pin 6
In3 → arduino digital pin 5
In4 → arduino digital pin 4
OUT1 → Motor 1
OUT2 → Motor 1
OUT3 → Motor 2
OUT4 → Motor 2
Breadboard:
Connect two jumper wires to arduino board 5V and GND pins, then connect both wires to breadboard. now you can use this as +5V supply.
HC-SR04 Ultrasonic Sonar sensor:
VCC → breadboard +5V
Trig → arduino analog pin 1
Echo → arduino analog pin 2
GND → breadboard GND
TowerPro micro servo 9g:
orange wire → arduino digital pin 10
red wire → breadboard +5V
brown wire → breadboard GND

Step 6: Programming Arduino UNO

  1. Download and Install the Arduino Desktop IDE
  2. Download and paste NewPing library (Ultrasonic sensor function library) file to the Arduino libraries folder.
  3. Download and open obstacle_avoiding.ino
  4. Upload the code to the arduino board via a USB cable

Step 7: Power the Robot

Picture of Power the Robot
Connect the Lipo battery to the L298n motor driver as follows:
Lipo battery (+) → +12V
Lipo battery (- ) → GND

Step 8: Great !!!

Picture of Great !!!
Now your robot is ready to avoid any obstacle....

Comments

Popular posts from this blog

Low-Cost LPG Leakage Detector

Low cost LPG leakage detector with buzzer indication using Microcontroller By DEVANANDA REDDY Project Photographs: Video of LPG leakage detector with buzzer indication using Microcontroller There are various  projects based on sensors . And this is a low cost Microcontroller based project. Microcontroller based LPG gas leakage system using MQ6 (LPG Gas) sensor with Buzzer indication has applications in various areas including Industrial application, domestic application. this system is very useful in hotels ,home,car,lpg agencies . This system has advance safety standard and most important this helps prevent accident occurred because of fire. It also useful in protecting human life ,wealth and property . MQ6 (LPG Gas) sensor is used to detect LPG leakage this sensor has quick response time it responding very short period of time. Output of MQ6 sensor is given to Comparator. And output of comparator IC is given to microcontroller 89s51. Liquid crystal display – LCD d

LASER LIGHT SECURITY ALARM.....

LASER LIGHT SECURITY ALARM BY DEVANANDA REDDY A laser alarm system operates by projecting a beam of invisible laser light across a doorway or window opening. When the light is broken, it activates a buzzer or alarm. The principles are very similar to those of lower tech burglar alarms. A laser alarm requires only slightly more sophisticated electronics and can be put together by anyone with a soldering gun and a knack for tinkering with basic circuits and transistors. Objective To make and study the functions of a Laser Security System. Theory This system for security uses the combination of LASER light and LDR. The LDR module has an onboard potentiometer to adjust the sensitivity of LDR, so that it only senses laser light falling onto it. The concept is quite simple and similar to what we see in movies where antique, priceless ornaments are protected under laser lights. As someone crosses these lights, an alarm runs on to indicate unauthorised presence. This p

Smartphone to Digital Microscope Conversion

Smartphone to Digital Microscope Conversion! By DEVANANDA REDDY The world is an interesting place, but it's fascinating up close.  Through the lens of a microscope you can find details that you would otherwise never notice.  But now you can. This instructable will show you how to build a stand for about $10 that will transform your smartphone into a powerful digital microscope. This DIY conversion stand is more than capable of functioning in an actual laboratory setting. With magnification levels as high as  175x  375x  Edit:  with the addition of a second lens  magnification can be as high as 375x , plant cells and their nuclei are easily observed!  In addition to allowing the observation of cells, this setup also produces stunning macro photography. The photos in this instructable were taken with an iPhone 4S. Watch the video below for a quick overview of the project! Step 1: Materials and Tools The cost of this p