Raspberry pi roboat is an internet controlled water robot using an RC boat as it chassis. This will be use to check an unreachable sewer by giving a live picture stream to the web browser.
This thing is also could be another option to learn robotics with the raspberry pi because this robot was built on a basic simple python code using webiopi framework.
There is already an instructables about raspberry pi and boat:
this robot will another version of it and will have manual control
Step 1: Parts & Tools
- Raspberry Pi (any model will do just fine)
- L298n Motor Driver module
- USB Wifi TP Link
- RC boat
- Battery Pack
- USB Power Bank
- USB Webcam Logitech c170/Raspberry Pi camera
- 4 bright white LED
- 330 ohm resistor
- BC547 transistor
- 2 Used Plastic Bottle
- Plastic Box/project box
- bolt and nuts
- Soldering iron
- Wire Striper
Step 2: Disassemble RC Boat
For this project I used A cheap RC boat from the local toy store. Fortunately the RC boat has a big body and dual motor attached to it. The dual motor is great because it will give the boat a more precise driving control.
The boat itself already have a motor driver but after test it for a while there were some disconnected line on the PCB So I decide to cut the wire from the motor DC to motor drive and replace it with a L298n motor Driver module. After cutting the wire, solder the cable from motor DC to the jumper wire so it can make an easier connection to L298n module.
Pick up 4 female to female jumper cable and plug it in to IN1, IN2, IN3, IN4 in the L298n module. now save this part and we will continue the raspberry pi part
Step 3: Raspberry Pi Setup
Make sure the sd card are already installed with raspbian, if dont you know how to make a raspbian sd card you can search it in instructables. or use this one:
Plug the USB wifi and USB Camera to the USB port on the raspberry pi. Then boot it up until you get to the linux terminal.
Set Raspberry Pi network by openig wpa_supplicant.conf data using this command
pi@raspberry$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
change the SSID and wpa-psk with the wifi setup used at your house. then save it. when its done restart the pi and if the LED on the USB wifi that means the wifi connection is a success
- Install MJPG-Streamer
use the link above to install mjpg streamer, after following the instruction make sure the mjpg streamer are already running in background once the pi is booting
- Install webiopi
the link above are the step by step guide to install and use webiopi
after succesfully installing those application, now make new folder called "roboat" and the grab my code from here:
Step 4: Stabilized the Boat
the RC boat have a very sharp Hull but its not capable to hold all the add on componet placed on top of it.
Plastic bottle comes very helpful solving this problem, by adding two plastic bottle on each side the boat now become very sturdy and stable. Any plastic bottle is ok as long as it is not longer than the boat body.
Step 5: Putting It All Together
Take the plastic box and make some hole matched to the raspberry pi hole for bolts and nuts.
connect the jumper wire from the L298n to the GPIO Raspberry Pi. Place the plastic box on top of boat body. Make sure all the component and module are sealed in the box and no water will come in to the box except for USB camera.
Now you can turn it on try it on the nearest pool or lake nearby. And try to drive it using your laptop and mobile device
And This is the video demonstration of the Roboat