Introduction: Raspberry Pi Spy Tank

Picture of Raspberry Pi Spy Tank

I got a first prize from PI/E day contest. (yaayyy. Thanks for all the awesome voters!!!)

I would like to reward the first 10 people to contact me. I have 10 pieces of 3 month PRO membership codes to giveaway. Write a comment to this project or send me a message and tell me why you should get a free code. The best answer will get a free 1 year PRO membership! So in total 11 PRO memberships are given away!

Like, follow and vote ;) Thank you!

The prize pack included a GoPiGo kit witch is a good robot for beginners to experts.

However the basic model case is pretty clumsy and too tall to move around the house efficiently.

So i made my own case for the whole thing and basically build the whole bot from scratch.

This project requires some modifications to the original GoPiGo board.

Step 1: Parts

Picture of Parts

The parts used are straight from the GoPiGo kit.

This includes:

-Raspberry pi B+

-Raspberry camera

-Two motors

-GoPiGo board

-Wifi Dongle

-SD card with GoPiGo image. You can download yours from here!

(Optional)

-LED's for light

-Cable

Step 2: Printing the Parts.

Picture of Printing the Parts.

The case is a remix of this project here.

Parts are printed with Printrbot makers kit.

Print material is PLA plastic.

Print speed varies from 20mm/s to 50mm/s.

Layer height is 0.2mm.

Total cost for all the prints were about 25 dollars. This was however made with a expensive PLA plastic that costs about 50 dollars/1kg. With cheaper alternative (look at ebay) You can get a half of the price down.

Parts check list. "aka" how many of what?

Bottom lid x1

Head x1

Sides x4

Tail x1

Track x52 (26/side)

trackFrame x2

Wheel x4

WheelGuard x4

Step 3: Clean Up the Parts.

Picture of Clean Up the Parts.

Clean up the exes plastic and check that everything looks like it should look.

Do a test assembly for the parts to see that everything fits.

Step 4: Connect Camera

Picture of Connect Camera

Connect camera to its own place. Use screws or hot glue to hold it up.

At this point you could attach the LED's to the holes if needed. I added the LED's lastly and it was pretty hard to get them there.

Note that the camera goes upside down to the head.

Step 5: Assemble the Wheels

Picture of Assemble the Wheels

Assemble the wheels as show in the picture. Use hot glue or anything you like to ensure that the parts stay on its place.

Remember to test that the wheels turn without force. If you have to apply force to the wheel's to move them try sandpapering the parts until they fit perfectly.

Step 6: Tracks

Picture of Tracks

Connect the tracks to each other with toothpicks.

Toothpicks are cheap and work really well on the tracks. Note that the track's outer holes are smaller than the middle one. This is to keep the middle "hinge" loose when the toothpick is bushed through the smaller outer holes.

Use some force to push the toothpick to the track. Use small drill if needed to enlarge the outer holes.

Step 7: Motor

Picture of Motor

Put some clue to the wheel hole to ensure that the motor stays in place. Push the motor shaft in to the hole and put some hot glue around the motor just to make sure it stays there.

Step 8: Assemble Body.

Picture of Assemble Body.

Use hot glue to attach the side part and wheels to the main frame.

Glue only one side to the head and tail part.

If you glue both at the same time you will have a hard time to fit all the electronic parts inside.

Step 9: Slim Up.

Picture of Slim Up.

To slim up the GoPiGo board we will remove the unneeded parts. (the parts can be soldered back if you need them later)

Motor pins change the side from down to up.

Remove everything from the downside of the board.

This includes

-Two led's

-Servo pins

-motor pins.

-ISP pins

-IR slot sensors

Step 10: Fit the Board to the Case.

Picture of Fit the Board to the Case.

The fit is tight. Watch out for the camera module!

Remove the side pillar for easy access if needed.

Connect the motors to positive and negative cables. If your wheels act all strange, change the positive and negative cables on the motors.

This would also be a good time to update the GoPiGo software and make the WiFi Dongle setup if you haven't done it yet.

Also try out the camera.

You can read from here about the update process of the GoPiGo image used

Step 11: Rest of the Case.

Picture of Rest of the Case.

Use a small amount of glue to the other side part. That just in case if you will have to fix something inside. The small glue will come off a lot easier than whole tube of glue put in there.

Step 12: Tracks

Picture of Tracks

Put the previously build tracks now on the wheels.

Put the tracks under the wheels and move the heads to the up side of the wheels.

Insert last toothpick to the connecting points and you are all done.

Make sure that the tracks and wheels spin easily. If not, make sure that everything is in line and smooth.

Step 13: Case Is Done

Picture of Case Is Done

The case is finally done. 2 days used to print all of these parts.

Inside the case is enough room for two 9V battery for stealth but quick run.

Step 14: Run Program

Picture of Run Program

To run the program you will need a SSH connection to your raspberry.

Make sure that the raspberry is on WiFi and find the IP address of the raspberry.

This is found from raspberry itself with ifconfig command at terminal OR via your own router setup site witch is your routers address. This address can be found from your routers manual or their website. Just Google

""insert your router name and type here" ip address".

After you are all set up. Download PuTTy and click SSH and type to Host Name your Raspberrys IP address

and click Open.

Now it will ask login name and password

Login name is: pi

Password is : raspberry

After that it should say pi@raspberrypi~#

To start the web server type:

This opens the folder the program is in

cd Desktop/GoPiGo/Software/Python/Examples/Browser\ Streaming\ Robot/

Then make the web server a executable file with

sudo chmod +x robot_web_server.py

And lastly start the web server.

sudo ./robot_web_server.py

Lastly type raspberrypi.local/ to your URL arddres bar on you browser

If that does not work use your raspberry's IP address to acces the site.

Now you can acces to the robot controls and live video with anything that has a internet connection and is in the same network.

Step 15: Optional.

Picture of Optional.

Attach the led's to the holes. Hook up them in series with 560 Ohm resistor. Connect the positive and negative wires to your battery lead wires. In the video the Led's were pretty dim because the battery was running out. When the battery was full they were really bright.

Step 16: Bottom Lid

Picture of Bottom Lid

Push the bottom lid on to its place. This should just snap on. Easy to remove with flat head screwdriver.

Make a small hole to the corner if you are going to use bigger battery pack than the case can fit inside.

Step 17: You Are Now Done.

Picture of You Are Now Done.

The bot is now complete.

Play with it and see where it can go. Use the live video and bright led's to see under your bed and discover horrible mess from there.

For stealth approach use two 9V battery's inside the case in stead of that hudge 8 AA battery pack. I used that because i was running low on battery's and these had just enough power left to do the debugging and test driving.

Thanks for reading!

And Remember to vote and follow :)

I would like to reward the first 10 people to contact me. I have 10 pieces of 3 month PRO membership codes to giveaway. Write a comment to this project or send me a message and tell me why you should get a free code. The best answer will get a free 1 year PRO membership! So in total 11 PRO memberships are given away!

Comments

CardT (author)2016-10-05

what app do you download on your phone or tablet

mkarvonen (author)CardT2016-10-08

hi. no app is needed. The whole thing works in web browser.

CardT (author)mkarvonen2016-10-11

hi thanks, im doing it for an engineering arkwight projet, and it needs to be portable and i saw you controlled iton a tablet. is this possible and if so how

mkarvonen (author)CardT2016-10-19

As you can see in the video. The tank can be controlled with any computer/phone/tablet that has got a internet and a web browser. The how it is possible thing is simple. The Raspberry in the tank makes a web server that you simply access.

YashP35 (author)2016-06-10

can u explain me how your tank move left and right

Bruce JohnS (author)YashP352016-07-29

It's simple : when it turs left, only the right "track" ( side ) moves, and when it turns right, the same with the left side.

kylerelay (author)2016-02-18

hello and great build!

i would like to build something similar but want to be able to securely control/stream over the net ....say from work to check on the dog.. :)

would i need other software or is this possible with the robot web server?

mkarvonen (author)kylerelay2016-02-18

It is possible with a VPN connection but it can be hacked if you are not careful. More info in here https://www.raspberrypi.org/documentation/remote-a...

:) if that is not what you are looking for then search google how to share your rpi with the internet.

AdjustedMold (author)2016-01-25

Instead of the GoPiGo board, could we use a different RTK controller board?

Like this one here:

https://www.adafruit.com/products/1687

mkarvonen (author)AdjustedMold2016-01-25

I don't see any reason why it would not work. However it may require a few alternations to the code.

Ajann (author)2015-10-19

I will make one.

reidyst (author)2015-10-01

Hi I was my son want to build this for a school project but we cant download the bottomlid.stl. the other files download but not that one any thoughts ?

thanks

sean

mkarvonen (author)reidyst2015-10-02

Hmmm. Strange. If i push the button it downloads instantly and works like a charm.

Try to download it again.

If it doesn't work hit me up and i can send it straight to your email.

reidyst (author)mkarvonen2015-10-02

I tried a different browser and it worked

Thank you

adamwatters (author)2015-09-21

This is damn cool. Just put together my own prize-pack GoPiGo yesterday and was thinking about ways to modify it. Great job!

SharweenK (author)2015-06-16

Maybe the camera could be external and have a 360 view. :D However, its an already a brilliant project itself! I would love to have the Pro membership code tho. I'd appreacite it. :)

mkarvonen (author)SharweenK2015-06-16

You will have to do a project about that! :D

Sure i will send you one :)

SharweenK (author)mkarvonen2015-06-17

I'm trying to build on like this too but with an infrared (thermal) camera to build a serach and rescue robot maybe. :) Do you think I could use the same code and the same instruments? and what if I dont have a GoPiGo board to use with my raspberry..is there any other alternatives? :) thanks!

mkarvonen (author)SharweenK2015-06-18

Hi,

The total cost of the print was around 25$. Raspberry costs about 40$ and the GoPiGo base model kit costs about 100$. You can search Ebay for cheaper alternatives.

For really cheap build use scrap parts that you can find. For example my other project is made mostly out of scrap partshttps://www.instructables.com/id/Obstacle-avoiding-... . Use anything you can find and the build can be as cheap as 20$. The cost mostly comes from motor driver IC's and other components. For example you can find most of the needed parts from old printer.

Here is few links that could help you.

Here is a cheap alternative base board that includes all the parts you will need except the motor driver board.

http://www.ebay.com/itm/New-Smart-Motor-Robot-Car-...

Driver board could be something like this

http://www.ebay.com/itm/Adafruit-DC-Stepper-Motor-...

http://www.ebay.com/itm/Stepper-Motor-Drive-Contro...

The whole base kit can be found here.

http://www.dexterindustries.com/site/?product=gopi...

julian3012003 (author)2015-06-04

How much did all of the parts cost together? I am on a low budget, and I need to make something with my raspberry pi, but all are expensive.

mkarvonen (author)julian30120032015-06-05

Hi,

The total cost of the print was around 25$. Raspberry costs about 40$ and the GoPiGo base model kit costs about 100$. You can search Ebay for cheaper alternatives.

For really cheap build use scrap parts that you can find. For example my other project is made mostly out of scrap parts https://www.instructables.com/id/Obstacle-avoiding-... . Use anything you can find and the build can be as cheap as 20$. The cost mostly comes from motor driver IC's and other components. For example you can find most of the needed parts from old printer.

Here is few links that could help you.

Here is a cheap alternative base board that includes all the parts you will need except the motor driver board.

http://www.ebay.com/itm/New-Smart-Motor-Robot-Car-...

Driver board could be something like this

http://www.ebay.com/itm/Adafruit-DC-Stepper-Motor-...

http://www.ebay.com/itm/Stepper-Motor-Drive-Contro...

The whole base kit can be found here.

http://www.dexterindustries.com/site/?product=gopi...

julian3012003 (author)mkarvonen2015-06-17

Thanks!Sorry I didn't reply before, I was busy. Sorry

Vitor Reppen (author)2015-06-09

It would be awesome instead of a normal camera, a fisheye one.
You could see more and take great pictures from places you can't go.
Anyway, it just an idea... probably I'm make it, if you could seen me a Pro membership code I would be appreciative.
Nice job keep posting this awesome content :D!

mkarvonen (author)Vitor Reppen2015-06-09

Hi, Thanks! Or you could just slap one of these on the raspicamera lens http://www.ebay.com/itm/Clip-3in1-Fish-eye-Macro-W... use the raspi camera or a HD web cam since it is easy to hook up to the raspberry.

I will send you a pro membership! Remember to make a project about it ;)

Vitor Reppen (author)mkarvonen2015-06-10

Thanks a lot for the pro membership, and yes that's awesome didnt know they sell that or even existed.
Voted on you, and hope your project wins!

AndyRR (author)2015-06-07

Hello mkarvonen great instruct !

Will attempt to build myself, my first 1 .....

mkarvonen (author)AndyRR2015-06-07

Thanks! Post a picture when you are done :)

Hercules22 (author)2015-05-25

hi there,

I recently got a raspberry pi b+ and I really liked what I could do with it. Unfortunately, my kit did not come with any motors or moving parts. I am on a low budget. Is there any way I could get the GoPiGo used or something on a reliable website? Or is there another low-cost kit that is similar?

Thank you for your time,

Hercules22

mkarvonen (author)Hercules222015-05-25

Hi,

Here is a cheap alternative base board that includes all the parts you will need except the motor driver board.

http://www.ebay.com/itm/New-Smart-Motor-Robot-Car-...

Driver board could be something like this

http://www.ebay.com/itm/Adafruit-DC-Stepper-Motor-...

http://www.ebay.com/itm/Stepper-Motor-Drive-Contro...

The whole base kit can be found here.

http://www.dexterindustries.com/site/?product=gopi...

Hercules22 (author)mkarvonen2015-05-26

Thank you very much!
This is so helpful!

TanMan7783 (author)2015-05-22

I think I should get get the GoPigo because im a begginer and my dad is planning on getting me a rasbery pi for my birthday and I think this would be a great way for me to learn about simple robotics and wiring and the simple functions of RC and code. I hope you will consider me when you are giving out the free GoPiGo (please and thank you)

mkarvonen (author)TanMan7783 2015-05-23

Hi,

I'm giving out free PRO memberships to Instructables. Are you planning to write your own projects here? If that is the case i can get you started with Pro membership :)

madashell13 (author)2015-05-21

Very clean project. Love the toothpicks. This makes me want to finish open projects so I can move onto repurposing a wire controlled trac hoe into a remote stealth bot. Keep up the good work!!!

mkarvonen (author)madashell132015-05-22

Thank you! Recycling is the best way to make new inventions :)

HKPNSS (author)2015-05-22

It seems that I didn't notice the video and thanks for your quick reply

HKPNSS (author)2015-05-21

Cool project and Congrats for your victory.but I have a doubt what kind of motor you used and what was the rpm? And torque? Was it enough to move your whole bot?

mkarvonen (author)HKPNSS2015-05-21

Did you watch the video? There it is moving around nicely. These motors are capable of moving much more heavier things than this is. It is the same kind of motor used to move GoPiGo witch is much heavier than this bot.

Here is a same kind of motor that in the project used for more specs

http://www.ebay.com/itm/2pcs-smart-Car-Robot-Plast...

Funky Diver (author)2015-05-21

Now this I like. I'm on making a 3D printer now, so a project is now in the making with this. Adding spikes to the tracks will give me a bit more traction for subterranean inspection (under the floor boards of my house =D

Nice Instructable

Biscuitus (author)Funky Diver2015-05-21

Toy might want to look at inserting metal blades instead of spikes, they won't cliff as easily and spread the weight out.

Funky Diver (author)Biscuitus2015-05-21

Ooooh, good plan, cheers =)

Biscuitus (author)2015-05-21

That's a very slick design! The one I had in mind was similar to the SpyGear tracked r/c car but I may use your design as an inspiration to make a wider flatter design that would allow it to go in tighter spaces with the addition of a hinge in the middle for help with obstacles. I'll send photos when it's done

mkarvonen (author)Biscuitus2015-05-21

Wow! I would like to see that! Be sure to post it on instructables with building instructions! I will send you a PRO membership in private message! :)

Biscuitus (author)mkarvonen2015-05-21

I was working on an outline on my instructable when I got the email notification of your reply. Thank you for the Pro, although that was not my intent, I shall put it too good use. Roughly speaking, my instructable will link yours (you did the heavy lifting)and I will go over my design ideas (more importantly the why) and then the build. I think I'm looking at three months from now at the outside

About This Instructable

20,468views

433favorites

License:

Bio: I am 27 years old engineering student from Oulu in Finland. I make these projects as a hobby, and it would be fun to also ... More »
Add instructable to: