Introduction: DIY Submersible ROV
How hard could it be? It turns out that there were several challenges to making a submersible ROV. But it was a fun project and I think it was quite successful. My goal was to have it not cost a fortune, have it easy to drive, and to have a camera to show what it sees underwater. I didn't like the idea of having a wire dangling from the driver's controls, and I have a variety of radio control transmitters already, so that's the direction I went, with the transmitter and control box separate. On the 6 channel transmitter I used, the right stick is used for forward/back and left/right. The left stick is Up/Down and turn Clockwise/CCW. This is the same setup used on quad-copters, etc.
I looked online and saw some pricey ROVs and saw a few with "vectored thrusters". This means the side thrusters are mounted at 45 degree angles and combine their forces to move the ROV in any direction. I had built a mecanum wheel rover already and I thought the math there would apply. (Ref. Driving Mecanum Wheels Omnidirectional Robots). Separate thrusters are used for diving and surfacing. And "vectored thrusters" sounds cool.
For ease of driving it, I wanted depth hold and heading hold. This way the driver doesn't have to move the left stick at all except for diving/surfacing or turning to a new heading. Turns out this was also a bit of a challenge.
This Instructable is not intended as a set of directions for doing it yourself. The intent is more to provide a resource that someone might draw from if they intend to build their own submersible ROV.
Step 1: The Frame
This was an easy choice. Looking to see what other folks had done pushed me in the direction of 1/2 inch PVC pipe. It's cheap and easy to work with. I came up with an overall design that would accommodate the side thrusters and the up/down thrusters. Soon after assembly I sprayed it yellow. Oh yeah, now it's a submarine! I drilled holes in the tubing top and bottom to allow it to flood. For attaching stuff I tapped threads into the PVC and used 4 40 stainless screws. I used a lot of them.
Shown at a later stage are skids that are held away from the bottom by 3d printed risers. The risers were needed to make it so the battery could be removed and replaced. I 3d printed a tray to hold the battery. The battery is secured in the tray by a velcro strap. The Dry Tube is also held onto the frame with velcro straps.
Step 2: The Dry Tube
First pic is the buoyancy test. Second pic attempts to show how thruster wires are led into potted bullet connectors. Third pic is more of the same plus the additional bump for potting depth meter and its wires. Fourth pic shows pulling apart the dry tube.
The Dry Tube contains the electronics and provides most of the positive buoyancy. The ideal is a small amount of positive buoyancy, so if things go wrong the ROV will eventually float to the surface. This took a bit of trial and error. The assembly shown here during a float test took several pounds of force to get it to submerge. This led to any easy decision to mount the battery on-board (as opposed to power coming over the tether). It also led to cutting the tube down in length. It turns out a 4 inch tube provides about 1/4 pound of buoyancy per inch of length (I did the math once but this is a guess). I also ended up putting PVC "skids" on the bottom. They have screw on ends where I put in lead shot for fine tuning the buoyancy.
Water Tight Seal
Once I settled on using epoxy to seal seams and holes, and settled on using neoprene hub-less connectors, the ROV was reliably watertight. I struggled for awhile with "waterproof" ethernet connectors, but in the end I gave up on these and just drilled a small hole, led the wire in, and "potted" the hole with epoxy. After the hub-less connectors were tightened in place, trying to remove them was difficult. I discovered that a little smear of white grease made the Dry Tube pull apart and push together a lot easier.
To mount the acrylic dome I carved a hole in a 4" ABS cap leaving a ledge to receive the edge of the dome. Initially I tried hot glue, but that leaked immediately and I went to epoxy.
All the inside electronics are mounted on a 1/16 inch aluminum sheet (with standoffs). It's just under 4 inches wide and extends the length of the tube. Yeah, I know it conducts electricity, but it also conducts heat.
Wires Coming Through
The rear 4" ABS cap got a 2 inch hole drilled into it and a 2" ABS female adapter glued in. A 2" plug got a hole drilled in for the Ethernet wire to come through and be potted. A little piece of 3" ABS glued on also made a little circle area for "potting".
I drilled what seemed like plenty of holes (2 for each thruster), but I wish I had done more. Each hole got a female bullet connector shoved into it (while hot from the soldering iron). The thruster wires and battery leads got the male bullet connectors soldered on.
I ended up adding a little ABS bump to give me a place for the depth gauge wire to come through and be potted. It got messier than I would have liked and I tried to organize the wires with a little holder with slots in it.
Step 3: DIY Thrusters
I got a lot of ideas from the web and decided to go with bilge pump cartridges. They're relatively cheap (about $20+) each and have about the right amount of torque and speed. I used two 500 Gallons/hour cartridges for the up/down thrusters and four 1000 GPH cartridges for the side thrusters. These were Johnson Pump Cartridges and I got them via Amazon.
I 3d printed the thruster housings using a design from Thingaverse, ROV Bilge Pump Thruster Mount. I also 3d printed the propellers, again with a design from Thingaverse, ROV Bilge Pump Thruster Propeller. They took a little adapting but worked pretty well.
Step 4: Tether
I used a 50 foot length of Cat 6 Ethernet cable. I pushed it into 50 feet of polypropylene rope. I used the end of a ball point pen taped onto the cable and took about an hour pushing it through the rope. Tedious, but it worked. The rope provides protection, strength for pulling and some positive buoyancy. The combination still sinks but not as badly as the Ethernet cable by itself.
Three of the four cable pairs are used.
- Camera Video signal and ground ----> Arduino OSD shield in the control box
- ArduinoMega PPM signal and ground <---- RC receiver in the control box
- ArduinoMega Telemetry signal --> RS485 ----> matching RS485 --> Arduino Uno in the control box
Based on comments from another Instructables contributor, I realized that having the tether dragging on a lake bottom would not be good. In the swimming pool test it was not a problem. So I 3d printed a bunch of clip-on floats, using PLA and thicker walls than usual. Picture above shows the floats deployed on the tether, grouped more closely close to the ROV but averaging about 18 inches apart. Again per the other contributor's comments, I put floats into a mesh bag tied to the tether bundle to see if I had enough.
Step 5: On Board Electronics
First pic shows camera and compass. Second pic shows what happens when you keep adding stuff. Third pic shows underside-mounted motor controllers with aluminum slabs as alternative heat sinks.
- Camera – Micro 120 Degree 600TVL FPV cam
- Mounted on 3d printed holder that extends it out into the dome
- Tilt Compensated Compass – CMPS12
- Built-in Gyro and Accelerometer readings automatically integrated with Magnetometer readings to compass reading stays correct as ROV bops around
- Compass also provides temperature reading
- Large Heat sinks had to be removed to save space
- Mounted w heat transfer grease onto ¼” aluminum slabs
- Aluminum slabs mounted directly on both sides of aluminum electronics shelf
- Experience shows drivers operate well under capacity so heat is not a problem
- Provides up to 3A of 5v power for electronics
- Measures Amperage up to 90A going to 12v motor drivers
- Measures battery voltage
- Pressure (depth) Sensor Module – Amazon – MS5540-CM
- Also provides water temperature reading
- 10 Amp/Hr 12 volt AGM battery
I had concerns that a lot of electrical contacts were exposed to water. I learned that in fresh water, there is not enough conductivity to cause a problem (short circuits etc.), that the current takes the "path of least resistance" (literally). I'm not sure how all this would fare in seawater.
Wiring Outline (see SubDoc.txt)
Step 6: SubRun Software
The first video shows Depth Hold working pretty well.
The second video is a test of the Heading Hold feature.
The Arduino Mega runs a sketch that performs the following logic:
- Gets PPM RC signal over tether
- Pin Change Interrupt on data calculates individual channel PWM values and keeps them updated
- Uses Median filter to avoid noise values
- PWM Values assigned to Left/Right, Fwd/Back, Up/Down, CW/CCW and other ctls.
- Uses Fwd/Back and Left/Right to calc strength and angle (vector) for driving side thrusters.
- Checks for Arm/Disarm
- Uses CW/CCW to calc twist component or
- Reads compass to see if heading error and calculates corrective twist component
- Uses strength, angle and twist factors to calc power and direction for each of four thrusters
- Uses Up/Down to run Up/Down thrusters (two thrusters on one controller) or
- Reads depth meter to see if depth error and runs Up/Down thrusters to correct
- Depth, Heading, Water Temp, Dry Tube Temp, Battery Voltage, Amps, Arm Status, Lights status, Heartbeat
The magic for controlling the side thrusters is in steps 4.1, 4.3 and 4.5 above. To pursue this, look in the code at the Arduino tab titled runThrusters functions getTransVectors() and runVectThrusters(). Clever math was copied from various sources, primarily those dealing with mecanum wheel rovers.
Step 7: Floating Control Station (updated)
6 Channel RC transmitter
The original control box (old cigar box) that held electronics not on the sub has been replaced by a floating control station.
Floating Control Station
I began to be concerned that my fifty foot tether was not long enough to get anywhere. If I'm standing on a dock, then much of the tether will be taken just getting out into the lake and there won't be any left for diving. Since I had a radio link to the control box already, I got the notion of a floating waterproof control box.
So I did away with the old cigar box and put the control box electronics onto a narrow piece of plywood. The plywood slips into the 3 inch mouth of a plastic three gallon jug. The TV screen from the control box had to be replaced with a video transmitter. And the RC transmitter (the only part still on shore) now has a tablet with video receiver mounted on top. The tablet can optionally record the video it displays.
The lid of the jug has the power switch and voltmeter, tether attachment, RC whisker antennas, and rubber ducky video transmitter antenna on it. When the ROV pulls out into the lake I didn't want it to tip the control jug too far so I installed a ring near the bottom where the tether is led and where a retrieval line will be attached. I also put about 2 inches of concrete at the bottom of the jug as ballast so it floats upright.
The floating control station contains to following electronics:
- RC Receiver – with PPM Output
- Arduino Uno
- OSD Shield - Amazon
- RS485 Module to beef up serial telemetry signal
- Video Transmitter
- Volt meter to monitor 3s Lipo Battery health
- 2200 mah 3s Lipo Battery
On Screen Display (OSD)
In the quad-copter world, telemetry data is added to the FPV (First Person Video) display at the drone end. I didn't want to put any more stuff into the already crowded and messy Dry Tube. So I opted to send the telemetry up to the base station separately from the video and put the info on the screen there. An OSD Shield from Amazon was perfect for this. It has a video in, video out, and an Arduino library (MAX7456.h) that hides any mess.
The following logic is run in a sketch on an Arduino Uno in the control station:
- Reads pre-formatted serial telemetry message
- Writes message to On Screen Display shield
Step 8: Future Stuff
I did add a mini DVR module to the control box to sit between the OSD (On Screen Display) and the little TV to record the video. But with the change to the Floating Control Station I now rely on the tablet app to record video.
I may, if I get real ambitious, try to add a grabber arm. There are unused radio control channels and an unused cable pair in the tether just looking for work.
Second Prize in the
Make it Move Contest
4 weeks ago
What else can i use to hold the dry tube instead of velcro straps ?
3 months ago
All electronics are done I still need to do the the “hard part” I still have to cram everything in a waterproof tube and 5 gallon jug and build the frame.
I am having trouble with the OSD shield (please see photo). The data is garbled.
I had a very difficult time finding the Max7456 library and may not have the correct one (a link to the one you used would be appreciated) so that may be the problem.
Looking at the photos I am sure you or someone would have an idea what is wrong and some advice would be appreciated
5 months ago
Thanks for all the great information. Just what I was looking for.
I really like the position hold. I'm going to try that.
1 year ago
which type of motor you used ??
Question 1 year ago
how did you solve the video transmission?
Answer 1 year ago
Okay, do you have an exact parts list for the entire video route and a circuit diagram?
Reply 1 year ago
No. Sorry. This info is not longer available.
Answer 1 year ago
Video signal comes from the camera
directly to one of the wires in the tether. At the floating control
box, video goes into the OSD shield. OSD telemetry is added by the
Arduino and the OSD shield's output goes to the video transmitter. A
receiver plugged into a tablet receives and the tablet displays.
1 year ago
wie hast du die Videoübertragung gelöst?
Reply 1 year ago
How did I solve video transmission? Video signal comes from the camera directly to one of the wires in the tether. At the floating control box, video goes into the OSD shield. OSD telemetry is added by the Arduino and the OSD shield's output goes to the video transmitter. A receiver plugged into a tablet receives and the tablet displays.
Question 1 year ago
Very interesting project!
2 years ago
Very interesting work. Congrats. What kind of motor do you use? Must be a watrproof, sealed against water in the axis. Where can I buy such motor? Thx!
Reply 2 years ago
These “thrusters” are all “off the shelf” bilge pumps.
Stay tuned and I will have pictures of the electrical and electronics with details!
I have some interesting insights on waterproofing the electronics that I would like to air with everyone following this build
Reply 2 years ago
On Amazon look up "bilge pump cartridge".
Tip 2 years ago
I managed to get through the code and electronics to a point where I can start building the mechanicals.
You do have to have the compass and depth gauge connected (unless you change the code) to operate the motors with the joystick.
Attached is a picture of the electrical and electronics
2 years ago
Still trying to make progress with the code. code compiles, loads but does not run.
I am trying to get the motors running before adding the other pieces which may be the problem. Would appreciate some general help-Thanks
Seems to stop at runByRC call on the main sketch.
Reply 2 years ago
I would be difficult for me to provide "general help". runByRC does many things so you'll have to find out more specifically where you're hanging up.
Reply 2 years ago
Hi thank you for responding. I have been going through the code (I am just learning C++ code and Arduino ) and I think I am having problems with interrupts. I have a oscilloscope and see the PPM signal from the receiver that is at pin A8
But A8 only reads 62 when I write it to the serial port.
If you would indulge me with a couple of questions to jump start the project, I would appreciate your help.
1. I only have the motors hooked up to the Arduino can I run the sketch (found the test motor call) without the compass and depth gauge hooked up.
2. How does the arming work ( think this is my problem). Does the stick need to be moved to arm. I could see any switch assigned in the code.
Reply 2 years ago
1. testMotor should be useful for you. You need to put a return after the call to testMotor so it doesn't try to do other stuff. Of course the RC logic needs to be working. You need a receiver that outputs PPM. Most RC receivers don't have this option and only give you the PWM output for each channel.
2. Arming works as described in the comments in checkArming(). Left stick down to the right to arm, down to the left to disarm. Again, the RC needs to be working.
Reply 2 years ago
Thank you, I will give it a try. I am using a flysky FS-i6x controller set up for PPM and a ia6b receiver that has PPM capabilities. I will see double check the signal