The GPS buoy gets a compass
January 11, 2020 · 1 min read
Cheap parts can be bought online. I bought this compass for about a hundred NOK. It also has an accelerometer—maybe useful later.
![]()
To keep a drone buoy fixed at a specific geographic coordinate, I need to steer it to a specific bearing.
Since it will maneuver in tight spaces, two motors are likely better than one motor plus a rudder.
Here are two motors (with propellers) and an ESC. The compass is mounted to a clip. The system can be set to a given heading (e.g., NW 315). Then port/starboard thrust is applied to point the bow to 315 degrees.
Later I’ll add the GPS.
Pseudo-algorithm:
loop:
1) Where is the buoy relative to the desired target point?
2) Compute bearing and distance to the target point.
3) Set motor speeds to move closer to the target.
![]()
Related posts

Trying a new launch
Testing a version with a bigger motor and larger hull.
April 13, 2022

Ready for a new launch
New variant ready with dry electronics box and larger motor and hull.
March 29, 2022

Controlling the buoy via Bluetooth
Added support for controlling the buoy over Bluetooth.
March 26, 2022

New brushless motors for the drone buoy
New brushless motors bring more power!
February 24, 2022

Launching the buoy
Time to see if the buoy is seaworthy…
February 2, 2020

Box for the buoy's electronics
Built a small box to keep the electronics dry.
January 28, 2020

I'm trying IoT
I'm trying some IoT tinkering with Arduino.
October 24, 2019