3D Printed RC Car V1.0
Arduino Self-Driving Car
This project involved designing and programming a small car. The car is autonomous (self-driving). The car analyses it's surroundings, making the necessary position adjustments in software to avoid any obstacles in it's path.
The video below shows the car in action. A small obstacle course was constructed to test it.
The microcontroller is connected to multiple ultrasonic sensors and a H-bridge, which controls the speed and direction of the 4 motors. The car consists of very few components, the most expensive one being the battery.
A simple sensor-interface circuit was designed in order to minimise loose wires, making testing a lot easier.
H-bridge motor controller.
Arduino Uno board.
4800mAh Lithium Ion Battery
The microcontroller is the ATmega328p associated with the Arduino Uno board.
5V operating voltage.
14 Digital I/O pins (6 for PWM output).
6 Analogue input pins.
32Kb flash memory.
16MHz Clock Speed.
These small boards are extremely popular for small projects such as this one. The arduino function library is one of the best out there. Flashing the code to the board is also very straight forward.
Buy this board here: https://amzn.to/2Do6fdQ
The sensor used is the Aukru HC-SR04. A total of 3 sensors were used for this project. The sensors emit ultrasonic sound waves at a 15 degree arc. When the waves hit an object nearby, they bounce back and hit the sensor. The sensor uses the echo pin on the PCB to transfer this information back to the microcontroller.
Buy this sensors here: https://amzn.to/2zonxDQ
The car chassis was purchased a kit on Amazon The kit includes 4 wheels, a chassis and 4 motors.
You can buy similar kits here: https://amzn.to/2DpUpjw
I used a rechargeable Lithium Ion battery. The capacity is 4800mAh. A battery of this capacity can power the car for hours. Although, such large capacity is not needed. You can use standard AA batteries, but you would just need to replace them when they run out.