I got tired of being under water and not knowing where I am pointed or going. So I added the Parallax compass module HMC5883L. It works on I2C bus so it was easy to hookup. Just 4 wires, 5v,gnd.,data, clock (connector P4). I used most of the code from an Arduino file I found on the web called compass_Simple. I first made sure the code would run by its self on the cape board (this also proves that it is wired correctly). Then I added it to the OpenROV Arduino code. Last night I had it in the pond to see how it works. The problem now is the laptop display has a resolution of 1366 by 768 and I have added temperature, depth (pressure), and heading which is to much data and runs off the bottom of the screen in landscape mode. I turned the display properties on the laptop to portrait mode which allows me to see the data but now the keyboard is vertical and the USB camera image is smaller. Ugh! It is very tough to run the OpenROV this way. When I was testing the code and electronics in my shop I was using a desktop computer with a resolution of 1280 by 1024 and you could see all the information with no problem. We need the OpenROV screen to use less real estate for the led light display or on the right side of the screen give us a little more area for information feedback.
As always it is fun to add new features to the OpenROV.
life is good!1388-compass.jpg (190 KB) 1389-OperRov_241jun2013.jpg (133 KB) 1390-compass_Simple.ino (1.21 KB)