Let's Make Robots!


IMAG0195.jpg632.06 KB
bot3.jpg79.07 KB
bot7.jpg84.96 KB
bot3.jpg79.07 KB

After a long hiatus, I decided to resume working on this project.

I bought a USB power supply, that easily powers the Pi with the camera module and wifi dongle running.
The 6xAA battery pack is now dedicated to the motors.

I also wrote an android app that communicates with the Pi over wifi.
The video shows the current state of my project.
I made the app with a smaller screen in mind, so it looks a bit strange on a tablet.
The laptop shown at the end of the clip shows the server software running on the Pi.

The next step will be to make use of the Pi's camera module. The plan is to either include a live feed in the android app,
or to write a web interface instead.

After a few failed attempts, I decided to ditch the lego.
This is what i ended with.

Camera module mounted on a small servo motor.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Good to see another pi project here! cant wait to see your robot moving around.

I never did anything in python, so i have no idea of its capabilites, but software PWM will work fine. The Pi runs so fast, you can PWM from a shell script if you want and still get pretty good results. 

Hey, thanks for posting.

I'll definitely upload a video of it in action, as soon as I solve the power issue.

Yes, software PWM was surprisingly easy to implement. When I was researching the matter, I read several posts from people saying the only solution involved compiling kernel modules designed for software PWM. I guess It's a recently added feature in the RPi.GPIO library. 

Python is a very powerful - yet easy to learn - language. I've coded in a few languages, but python is the one I always return to. You should try, if you get a chance :) 


So, do you have a web server running on the Pi, and that's how you control it? I'm looking to do something similar, but am having issues with the control interface. 


Sorry for my extremely late reply.

I don't know if it's still relevant, but not, I'm not running a web server.
I wrote a very simple tcp server in python that runs on the Pi, and clients
communicate with it over wifi.