bestd25
Posts: 10
Joined: Tue Nov 10, 2015 9:22 pm

Build your own Pi Car!! (4WD/Semi-autonomous)

Wed Dec 30, 2015 8:51 am

Build your own 4WD, Semi autonomous Raspberry Pi Car - with a camera stream!

Image

Full tutorial on how to build your own Raspberry Pi Car available at:
https://www.hackster.io/bestd25/pi-car- ... 9&offset=0

Image
Last edited by bestd25 on Wed Dec 30, 2015 1:14 pm, edited 2 times in total.

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Build your own Pi Car!! (4WD/Semi-autonomous)

Wed Dec 30, 2015 9:20 am

Nice write-up.

Look what I got for Christmas.
Image

I've got the camera too from way back, but I've got lot to do to catch up to where you are. I need power for the Pi, software, and then some sensors.
I'm using the Adafruit motor driver, which gives me four independent drives. But I had to take the Dremel to the Pi's composite socket (it's a rev2 B) when the SIL pin strip I had unnecessarily added fouled it. I may still remove the whole thing since the board doesn't sit down all the way, but I think it's good enough. That huge WiFi adapter (top of picture) might need changing too -- it's poking out further than the limit switches will reach.

You might mention that putting the red wire on top makes half the motors wired one way and half the other. I had tied my head in knots working out how it should work and then was totally surprised when the red wires all came out on top. I'm still not convinced, but thanks for the confirmation.

I don't intend to run any screen or keyboard to the Pi. I'll do all the programming over SSH from my desktop.

bestd25
Posts: 10
Joined: Tue Nov 10, 2015 9:22 pm

Re: Build your own Pi Car!! (4WD/Semi-autonomous)

Wed Dec 30, 2015 12:41 pm

Firstly, thank you! :)

The car looks good! I might have to try out your motor driver looks really good, i looked online before building mine but i must have missed that one.

For cheap upgrades I would recommend adding the HC-S04 Ultrasonic Sensor and if you wanted to upgrade the wifi adapter, the one I used (Cant remember name sorry) is a good upgrade and is much smaller. Plus, of course adding your camera would result in a pretty decent car altogether.

You mentioned you needed a power source, you can find cheap portable chargers online that double as useful portable phone charger. Good advice with the wires too, I will add it to the tutorial now. I had the exact same experience it took me many hours and numerous headaches wiring up those cables to get it all working so glad it helped.

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Build your own Pi Car!! (4WD/Semi-autonomous)

Wed Dec 30, 2015 5:18 pm

I've just had it working on "axle-stands". Apart from going backwards, which is an easy fix, it all works perfectly and nothing seems to be getting hot.

I've got a USB power-bank coming in the post tomorrow. I was five minutes too late ordering last night to get next-day delivery.

For what it's worth, all I used a keyboard and screen for was the initial set-up of a new Raspbian install. All the programming was over an SSH connection; simple SSH to run the program and then my editor (jEdit) has a plugin for SFTP.

bestd25
Posts: 10
Joined: Tue Nov 10, 2015 9:22 pm

Re: Build your own Pi Car!! (4WD/Semi-autonomous)

Thu Dec 31, 2015 12:18 pm

supra wrote:@bestd25
I'm going attempt today. :)
Thanks!
Good luck! If you need any help/have questions just ask. :)

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Build your own Pi Car!! (4WD/Semi-autonomous)

Thu Dec 31, 2015 1:52 pm

Hey I do have the same chassis!

Image

I build mine more than 2 years ago and it is still operational!

It is always ON since I do have a USB powerpack. Very nice to check the house on the net!

Image

I only change the PI B original to a PI A.

But I think I will do a fully rebuild on it. I'll check what you did!
Last edited by danjperron on Wed Oct 04, 2017 6:57 pm, edited 1 time in total.

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Build your own Pi Car!! (4WD/Semi-autonomous)

Thu Dec 31, 2015 3:11 pm

Oooh! You've got a stealth one in black!

It looks good.

Mine's running free and working well.

bestd25
Posts: 10
Joined: Tue Nov 10, 2015 9:22 pm

Re: Build your own Pi Car!! (4WD/Semi-autonomous)

Thu Dec 31, 2015 4:33 pm

danjperron wrote:Hey I do have the same chassis!

Image

I build mine more than 2 years ago and it is still operational!

It is always ON since I do have a USB powerpack. Very nice to check the house on the net!

Image

I only change the PI B original to a PI A.

But I think I will do a fully rebuild on it. I'll check what you did!
Ah very nice! :) I love the black chassis.

Thats a good idea, using it to check on the house!

Return to “Automation, sensing and robotics”