Raspberry Remote Car

by AnnaMai in Circuits > Raspberry Pi

2485 Views, 34 Favorites, 0 Comments

Raspberry Remote Car

car 1.JPG

This instruction will show how to make a remote car: using Local web to control car through Wifi

What will you need:

1. Raspberry

2. Wifi dongle

3. Battery bank (for Rasbperry)

4. Battery bank (for Motor)

5. Gear motor DC 5V

6. H-brigde

7. Toy car

8. A time for programming

Install Motor

new car 1.JPG
new car 2.JPG
new car 3.JPG
new car 4.JPG

Buy a new toy car, just a simple one (no electronics insides) which is large enough to install DC motor

Open it, then install motor.

This step will need your creative brain, clever hand to install motor into toy car, as well as making wheel attached stable in motor shaft.

Connect Motor to Raspberry

H-bridge with Rasp.PNG
H-bridge connect.JPG

H-brige L298N is used to control 2 motor DC. You can purchase any L298N modules (also search for to know how it works with motor DC)

Raspberry Pi GPIO is used to send control signal to L298N module, then it will rotate wheel.

Install Battery

power bank.jpg
car 0.JPG

Prepare 2 type of batter for car.

(1) Power bank (black one in picture): choose type 5VDC 10A for Raspberry. As test, it can feed Raspberry more than 8 hours!

(2) Power bank (blue one in picture): this power is used for H-Bridge circuit L298N

It should be used 2 kind of power for safety operation of Rasbperry and motor

After that, install battery in car. Power bank for Rasp is put inside of car, whereas batter for motor is put on car

Connect All Together

car 2.JPG

Now, put Raspberry in car.

Programming

Local web.PNG

an PHP page is used to control GPIO of Rasbperry.

For easy, you just download below code and save all file at /var/www/html

All source code can be download here (Google share)

That's it. Now you can open Local web at address [your.Raspberry.IP.address]/camera.php to control car.