Downunder ROV build

The build of a New Zealand ROV has begun!

While waiting for the thrusters to arrive I thought I’d make a start on the ‘brains’ and thruster control. So far all working fine in dry tests using the Bluerobotics ROS package with simple_pilot. Quick picture attached - still to fix the esc’s to the frame once thrusters are wired in.

Still not 100% set on the frame design, though keen to go with a vectored thruster set-up similar to TCIII as this appears to be the preferred layout for maximum manoeuvrability.

Next steps are to finalise a frame design and work on the code - though I found Rusty’s helpful kickstart on the thruster coding here: code

Currently researching options for fixing the corner thrusters to the frame e.g. directly bolting to frame strut, using S/S hoseclamps or building some sort of custom mount. Frame will most likely be PVC or aluminium tubing or a combination of the two. Any suggestions welcome.

Getting very excited now!

On a complete tangent - just got back from a business trip to Washington DC and managed to free a couple of hours to visit the Smithsonian Air & Space museum - very impressive! A great encouragement to keep tinkering with stuff. It’s a brave man who’ll come hurtling back from space in the attached.



1 Like

Andrew,

Thanks for sharing. That’s a very artistic/professional photo of your electronics tray!

If you go with the vectored setup, remember two important things:

  1. The center of gravity of the entire vehicle should be inline with the vertical height of the thrusters. If the CG is higher or lower than the thruster, then they will also contribute to pitch and roll motion and the vehicle will be less stable.

  2. The center of buoyancy should be a few inches above the center of gravity for strong static stability. The basically means enclosures and buoyancy foam at the top, battery and heavy parts at the bottom.

The BlueROV with 6 degree of freedom thrusters has a relatively high CG that is inline with the forward thrusters. The center of buoyancy is also relative high and close to the CG, making it just slightly stable. We did that because it is a fully actuated 6DOF ROV and strong static stability would make it hard to perform 6DOF maneuvers.

What type of frame construction method are you planning to use?

-Rusty

Thanks Rusty,

I’ve got reasonably easy access to three types of framing material, so working through the pros and cons of each:

  1. PVC pressure pipe
  2. Various shaped aluminium extrusions
  3. Acrylic sheet 3mm & 4.5mm
I'll post some rough sketches over the next week or so and would welcome advice on any potential design flaws or areas for improvement.

 

Hi Rusty,

Your comments regarding the BlueROV have got me thinking again about the potential trade-off between responsiveness and stability. I’ve looked at the BlueROV videos and the responsiveness of the 6DOF movements looks fantastic. Curious though as to how the BlueROV configuration performs with, for example, holding a reasonably steady position in a cross current?

I’m assuming software developments to take advantage of feedback from the IMU will help make marginally stable or even unstable configurations manageable as is the case with multiopters.

 

 

 

Andrew,

The feedback from the IMU makes a huge difference, but it means that your vehicle has to have a thruster arrangement for six degrees of freedom. As far as holding in a current, I suspect that a vectored configuration would work slightly better since it has more even thrust in each direction. The BlueROV would do well going forward, but not so well in strafe.

-Rusty

Thanks Rusty,

I’d be keen to add an a separate WTC to house separate batteries and sensors etc, so have been brainstorming ideas in sketch-up. These are really rough ideas, still needing the full CoG CoB calculations and the construction details worked though, but testing concepts.

The first would be to run a second WTC laterally as in ROV perp 1 and 2. This has the advantage of keeping the height relatively low.

The second thought is to run the second STC parallel to and below the primary WTC, with the lateral thruster at the bottom, adjusting the height of the thrusters to account for the lowered CoG. Starting to get quite tall. See ROV parallel

Third option is to run the lateral thruster between the two WTCs, something like central.JPG.

I’m sure there are numerous other options too - Anyone running a thruster config similar to BlueROV but with a second WTC?

A final option is of course to reconsider running two WTCs and put the effort into reducing the size of the electronics to fit a single WTC rather than trying to work through getting the ROV to work with two WTCs?

rov-perp-1 (117 KB)

rov-perp-2 (267 KB)

rov-parallel (147 KB)


The thrusters arrived last night after a few extra day’s delay while they were held for import checks.

I potted the cables last night, so today was the first time the ROV had been in the water.

The good news:

  • The two WTC's have no leaks, everything is bone dry.
  • My buoyancy calculations were fine, the ROV is slightly positively buoyant and sits fairly flat in the water.
  • All thrusters/esc's are running great.
On the work to be done side:
  • I'm running the ArduSub code and the outputs to the thrusters are seeming a bit random. Particularly thruster 2 (same layout as the Blue ROV) which has taken to running at full thrust. I've double checked the motors are connected to the right outputs on the Pixhawk and tomorrow will check they're all spinning in the right direction, with particular focus on the two thrusters with reversed props.
  • I tried to compile the latest version of ArduSub but hit the error "*** No rule to make target /home/bluegs/ardupilot/ArduSub/config_channels.h', needed by/home/bluegs/ardupilot/ArduSub/AP_State.cpp.o'. Stop.", so will take a look at that tomorrow too.
All up though not a bad first day in the water


Andrew,

First of all, the easiest way to detect if it is an esc problem or a software problem is to just plug a different motor into output #2 and see if that one spins at full throttle, too. If it does, it is something in software.

Second, make sure that your pixhawk is calibrated and level. Does the motor run back down or switch direction when you tilt the craft forward or sidways?

Third, make sure that you have the most recent changes pulled in. There have been some significant changes in the last week.

Fourth, you should make sure that you are building for the correct frame type. cd into the ArduSub directory and do:

‘make px4-clean’

this should fix the target error you have. Then to build do :

‘make px4-v2-bluerov-upload’

That will build for your frame config.

 

Cool sub!

 

-Jacob

Andrew,

Looks great! I’d follow Jacob’s recommendations and also make sure that the IMU is calibrated to level. The vehicle will try to correct it’s attitude so if it thinks it’s tilted, the #2 thruster could stay at high throttle trying to correct.

-Rusty

Brilliant - Thanks Jacob

I updated the firmware and the problem with thruster two disappeared.

The only remaining issue is that it’s trying to rotate right when no stick input is provided.

A short video clip: ROV1 - Video

Are you using ros for input?

When you actually input full yaw, does it yaw much faster in the right direction than the left?

Next time you fly, if you are using qgroundcontrol, save a log when you disconnect and post it.

Try setting compass_use to disabled.

 

-Jacob

 

Hi,

compass_use disabled makes no difference

no difference in yaw when input full yaw

log attached which appears to show the gap between desired yaw and actual yaw.

I’m using mavproxy as the link, not using ROS at the moment.

Thanks for your help on this one

BTW - depth hold is working great if I hold the stick to prevent the rotation right.

 

Let’s see the log! I don’t see any attachments.

Sorry, just noticed
<h6>Upload Errors:</h6>

  1. log_23_UnknownDate.bin: Sorry, this file type is not permitted for security reasons.
Try the link below

https://dl.dropboxusercontent.com/u/9311624/log_23_UnknownDate.bin

Log

Can you upload a log saved from qgc? A “telemetry log.” I think this is one off the sd card or dataflash of the pixhawk, which I have not figured been able to open and view yet.

 

What software are you using to view this file?

-Jacob

OK

Hopefully this is the right one

 

https://dl.dropboxusercontent.com/u/9311624/ROV%20Log1.mavlink

I used Mission Planner to open the earlier file

Did you use mission planner to save the .mavlink file?

Hi,

No Mavlink file was saved from Qgroundcontrol using the dialog box that comes up when exiting Qgroundcontrol. Where do you normally take the log from? I couldn’t see where to analyse a log in Qgroundcontrol either?

 

Ok, I got an error the first time I tried to open your log in qgc, but I have it open now with no issues the second time I tried. In qgc go to one of the dropdown bars and pick show status bar. For me it is in View, but they recently moved it to File. In the status bar pick replay log file and it will let you browse for one to open.

-Jacob