Page 1 of 1

How d I build a rc raspberry pi robot?

Posted: Mon Jun 13, 2016 11:54 pm
I have the hardware i need to make a raspberry pi wifi controllable robot with a chassis with 2 motors raspberry pi B2 ,L298N motor driver ,wifi dongle, 12-5v step down, 4000mah USB power bank and a Logitech USB video cam and my smart phone to controI it. And I know how to wire it up but I don't know how to programme it can I have some help please?

Re: How d I build a rc raspberry pi robot?

Posted: Tue Jun 14, 2016 12:19 am
by MarkHaysHarris777
Sure. If you do a search for the raspirobot board by Monk, you will find code that will allow you to drive the robot forward, reverse, left, right, spin, stop./

Get that working first. Its the easiest to get going. Control it first with your laptop... use wifi... get your power battery stuff working reliably; &c.

I'm working on my robot too. I started at the other end of course, robotics (eyes, ears, feet) my controllers are almost done, and my eyes are about ready too... I'll be making my own chasis (I want it to look like R2D2 [totally plagiarizing the case design] and I want it to carry around an 80amphr gel cel.

Work on it in tiny steps. At each tiny step ask questions here. Don't ask how to program a robot. That is too generic and too complicated. If you ask, "how do I move a stepper motor forward" or "how to I make us of a range sensor" those are better questions.

If you don't know how to program, well that's going to be a problem. And you can solve it. Take a class, read a book, look at tutorials on-line, experiment... but don't ask, "how do I program" that is too generic and too complicated. But if you were to ask, "how do I use a for loop to control the left turn of my robot motor for incremental speed control" that would be a better question.

... looking forward to seeing your posts (and pics) of your robot as you make progress.

Re: How d I build a rc raspberry pi robot?

Posted: Tue Jun 14, 2016 1:55 am
by skspurling
There are a few tutorials about making a web server based control system. I found a really good one a bit ago, but I forgot where it is. There's also the node Red and the IoT tie in stuff. I really want to figure out a good way to build a learning machine intelligence in Python, and I want to be able to keep multiple states in some sort of memory to use as triggers for current responses. That's going to get difficult.
Marcus is right on the money. Figure out the bits you need, and get each step working. I used the Learning Resources robot buttler as my initial guide. I am not sure if the WIImote drivers have been updated in Jessie, but that's a great place to start for remote control. I'm having to revamp my power system, as the one I have is starting to show issues due to all the sensors and things I've added.
So, you take the robot. Add in the web based remote control part. You could make it its own WiFi hot spot to get rid of the dependence on a known open WiFi network.

Re: How d I build a rc raspberry pi robot?

Posted: Tue Jun 14, 2016 1:50 pm
by penguintutor
I have written a guide at:

It was written before GPIO Zero which could be used to make the code a bit easier to learn, but it should give you a good idea of how to get started.