Introduction: Wireless Monitor Tank Robot Based on Raspberry Pi

Diy a wireless monitor tank is not difficult based on the raspberry pi, shown in the following picture.

Step 1: ​Materials for the Rc Tank Raspberry Pi Based Monitor

Raspberry pi board:

Full-functional raspberry pi shield

All the features include:

l The full size perfectly compatible with raspberry pie,

l Convert 3.3 V SPI interface to gm's 5 V SPI interface (and can pass P13 jumper switch back to the 3.3 V)

l Convert 3.3 V the I2C interface to gm's 5 V I2C interface (and can pass P13 jumper switch back to the 3.3 V)

l The GPIO abandon optical coupling isolation method, driven by the chip, support 8-way 50 v, 600 ma high voltage large current drivers, means that you can connect directly to the steering gear, drive LED and so on (to do car, robot, intelligent household, remote control, a necessary yo)

l Chip using socket, convenient change after accidentally burn out

l Increase the LED power light

l The power converter using fuse, better protect your expansion board and raspberry pie

Tank/car chassis:

if you use this full-functional rpi shield, you can use GPIO to connect the motors. Thus, you don’t use driven board.

USB camera

preferably driver-free and can be directly plug into raspberry pi board, and does not require an external power supply (some cameras current is too large, raspberry pie USB dragged up). Here, use a Logitech C110 with microphone. The current is small, better appearance compact and fixed easily.

Wireless wifi antenna and board

Here, use EDUP 1538 wireless antenna:

Step 2: Connection Diagram

according to the idea to design the connection diagram.

Step 3: Usb Camera Installation and Usage

Before, some papers on motion-based monitor software are written. Here, mjpg-streamer is used. Compared to the motion-based, the mjpg-streamer is simple, but has high speed, lower cpu usage. The following steps are listed.

1. Insert USB camera to check whether the device can be found by inputing:

root@raspberrypi:/# lsusb

where Logitech is the camera, which shows the device is found, then check whether the device is normal.

1. root@raspberrypi:/# ls /dev/vid*

2. /dev/video0

When display video0, then you find the device. Or, check whether the driver is right, or power supply is enough.

2. Install the necessary softwares.

1. sudo apt-get install subversion

2. sudo apt-get install libv4l-dev

3. sudo apt-get install libjpeg8-dev

3. download mjpg-steamer software, compile and install.

1. svn co mjpg-streamer

2. cd mjpg-streamer/mjpg-streamer

3. make USE_LIBV4L2=true clean all

4. make DESTDIR=/usr install

note: many friends say this svn is failure, then you can try the following:

1. wget

2. unzip

3. cd mjpg-streamer-code-182/mjpg-streamer

4. run the file “” in the copied raspberry pi directory.

1. pi@raspberrypi:/home/camtank# sudo chmod 777

2. pi@raspberrypi:/home/camtank# sudo ./

If there exists any error, when running the program, it may the process is working because it had run in the past, which may result in it cannot work. So you can firstly run ps to check the process and its ID number, and then you can use “kill -9” to kill the process.

Step 4: Run “index.html” at the Source-program Directory at PC

If you can see the video, then it shows that the camera can
work normally.

Step 5: Install the Tank Chassis Based on Raspberry Pi

After successfully debug the camera, then we can install

the tank chassis based on the raspberry pi development board.

1. According to the connection diagram in the above, connect the tank chassis and raspberry pi shield.

2. Run “” at the rpi directory.

pi@raspberrypi:/home/camtank# sudo ./

If fails, then maybe the previous process
is working. Then run “ps” to check the process and its ID number. Then use “kill -9” to kill the process.

3. Run “” in the rpi source program.

pi@raspberrypi:/home/camtank# python

Note: “HTTP Server binded on” is the
monitor IP address rpi-based monitor. In this example, the IP is

Use PC or phone, and login the browser to input the rpi-based monitor IP address. Then we have

The usrname and password are cambot.

5. By using the forward and left/right button, we can control the tank.

Attached code:


MuhammadA433 made it! (author)2016-02-01 isn't a hyper link it's just plain text

FulkitN made it! (author)2015-09-14

can you please help me with the same project without the shield

iphillips1 made it! (author)2015-05-02

I see the is attached, but I can't seem to find the download option? Can anyone help?

khazamondo made it! (author)2015-01-30

what did you use for a power supply?

miniscientist made it! (author)2014-08-18

can you please help me with the same project without the shield

yichone made it! (author)yichone2014-09-27

ok,no problem

yichone made it! (author)yichone2014-08-22

then what is your problem?

miniscientist made it! (author)miniscientist2014-09-20

i dont wanna by a shield

yichone made it! (author)2014-08-04

I have uploaded the code and doc file. where are they? thanks.

Droxz made it! (author)2014-08-04

Nice! :)

yichone made it! (author)yichone2014-08-04


About This Instructable




Bio: Specializing in the OpenSource Hardware. skype: yichone
More by yichone:Make a Wireless Bluetooth/WiFi Robot Tank Car Chassis Based on ESP8266 and HC-06Mobile Robot Arm DoArm S7 by wifi Arduino uno r3Installation for DoArm S6
Add instructable to: