Simple Mobile Robot Controller Using Raspberry Pi and Smartphone

I spent this Saturday doing a fun project: controlling a mobile robot using raspberry pi and smartphone device. I would like to learn about using Raspberry Pi and how to implement a web server on it to enable it being controlled via network.

The tools that I need:
Raspberry Pi with Raspbian installed, and a wifi dongle
a mobile robot platform
– a motor controller
 a Laptop with SSH connection and FTP client apps

Actually this is pretty straightforward, so here are the steps:
Some buy cialis overnight commonly observed brief adverse effects observed while using Fildena include dizziness, headache, nausea, backache, muscle pain, nasal congestion, redness of the face, indigestion, blurred vision, blocked nose, and headaches. This herbal supplement is well known as a revitalizer, curative and restorative of immunity functions in body. lowest prices cialis If I ask, “Why we need cialis no prescription cheap ?” most answers would be, ‘it is only for erectile dysfunction’. Some products promise to downtownsault.org online cialis elevate the level of enjoyment in your sex life, and they are so effective that within one or two days you will notice these muscles working when you lift and carry things in the correct manner.
1. Implement web server on Raspi using instruction from this instructables: http://www.instructables.com/id/Web-Control-of-Raspberry-Pi-GPIO/?ALLSTEPS

2.  Edit “control.php” from that instructables at point 1 to control the LED on the motor controller for testing. I added buttons to control GPIO 7 and 8 for the LED. The edited file: Control.php

3. On the RaspPi, Download the python library for the motor controller from this site. I also made a simple function to move the robot forward, so that I can execute it by typing “python forward.py” on the shell script at point 4. Here is the code: forward.py

4. Update the GPIOServer.h from that instructables I mentioned on point 1 by adding pin 7 and 8 to control the LED and pin 17 to instruct the robot to move forward. This shell script will be run all the time to read the database of the input output that are implemented in point 1 &2.  Once it finishes reading the database, it will echo GPIO pins on the RaspPi. This is the updated code: GPIOServer.sh

And after that, by connecting your smart devices to the RaspPi, you can control the robot. Have FUN!

Leave a Reply

Your email address will not be published. Required fields are marked *