Bearing Marine
Bearing Marine / Build a GPS puck

Build a GPS puck.

A Wi-Fi-only iPad has no GPS of its own. This gives it one: a low-power Bluetooth GPS made from parts you can order online, put together in an afternoon. It's the one we test Bearing Marine with.

  • GPS, Galileo, GLONASS, BeiDou, QZSS
  • Bluetooth LE
  • Wi-Fi
  • NMEA 0183
Exploded drawing of the GPS puck: a clear lid, the active GNSS antenna taped under it, the Waveshare LC76G receiver, four wires to an Adafruit ESP32-S3 Feather, a LiPo battery, and the base of a small waterproof box. LiPo BLE · Wi-Fi 1 2 3 4 5 6
Fig. 2 · The puck, taken apart
  1. Clear lid
  2. Active antenna, taped under the lid
  3. Waveshare LC76G receiver
  4. Adafruit ESP32-S3 Feather
  5. LiPo battery
  6. Waterproof box
Receiver
Quectel AG3352Q
Fixes
One a second
Talks
Bluetooth LE and Wi-Fi
Speaks
NMEA 0183

What it does

The receiver works out where you are. The Feather reads its NMEA sentences and passes them on, unchanged, over Bluetooth Low Energy and over its own small Wi-Fi network. That's all. No app of its own, no account, nothing to configure on the boat.

Low power by design. The receiver can do ten fixes a second, but a chartplotter needs one. Holding it at one keeps the battery going and keeps Bluetooth from clogging up.

Not just for Bearing Marine. Over Bluetooth it speaks the two common dialects (Nordic UART and Location & Navigation), so other apps that take a Bluetooth GPS can use it too. Over Wi-Fi it serves the same sentences on TCP port 1818, which OpenCPN on a laptop can read as a network connection.

Parts

Most of this you may already own. It runs off USB on the bench, so the battery and box can wait.

#PartNotes
1Adafruit ESP32-S3 FeatherHas a battery charger built in, so there's no separate charging board.
2Waveshare LC76G GNSS moduleCheck it's the LC76G. Waveshare's other GPS modules use different chips, speeds and commands.
3Active GNSS antennaUsually in the box with the module, on a small u.FL plug. Check before you start.
4Four jumper wires, female to female
5USB-C cableA data cable, not charge-only. It's the first thing to check when nothing shows up.
6LiPo battery, 1000–2000 mAh, JST-PH 2.0Plugs straight into the Feather. Check the polarity (see below).
7IP65 project box, about 100 × 68 × 50 mmA clear lid lets you see the lights.
8Double-sided foam tapeTo hold the antenna flat under the lid.

Software: PlatformIO or the Arduino IDE to load the firmware, and a free Bluetooth scanner such as nRF Connect for the first test.

Wiring

Four wires. The module's other pins aren't used.

LC76G            Feather ESP32-S3
VCC  ──────────  3V      (not USB, not 5 V)
GND  ──────────  GND
TX   ──────────  RX      crossed
RX   ──────────  TX      crossed

Three things that catch people. TX goes to RX, crossed; wired straight, you get silence and no error. Wire colours vary by seller, so go by the labels. And it's 3.3 volts only: the receiver and the Feather's pins don't tolerate 5 V.

Firmware

The firmware is our own, about 450 lines, written for this pair of boards. It sets the receiver to one fix a second, advertises the puck as BearingPuck on Bluetooth, and starts a Wi-Fi network of the same name.

  1. Get the BearingPuck project. It isn't public yet; email support@bearingmarine.app and we'll send it.
  2. Open it in PlatformIO and upload. Its settings are already right for the Feather ESP32-S3.
  3. In the Arduino IDE instead: choose the Adafruit Feather ESP32-S3 board, set USB CDC On Boot to Enabled, install the NimBLE-Arduino library (2.5.1), then upload.

The Feather's USB port is its own console, so the receiver is on a separate serial port at 115200 baud. If the serial monitor stays blank, USB CDC On Boot is the usual reason.

First test

  1. Power it from USB outdoors or on a windowsill. Indoors it may never get a fix.
  2. Wait. The first fix takes 30 to 60 seconds, and the very first one can take a few minutes while the receiver learns where the satellites are.
  3. In the serial monitor you'll see lines starting $GNRMC and $GNGGA. An A after the time in $GNRMC means it has a fix.
  4. In nRF Connect, look for BearingPuck and connect. You'll see the same sentences arriving.

Into the box

Get it working on the bench first. Sealing a puck that doesn't work into a box is a bad afternoon.

The antenna needs sky. Tape it flat under the lid. A plastic box on a coaming or under canvas is fine; inside a metal box or under an aluminium arch it isn't. The antenna is on a lead, so you can mount it away from the box if you need to.

Check the battery plug. Adafruit's batteries are wired to match the Feather. Some others have the plug the other way round, which will destroy the board. If yours isn't from Adafruit, check it with a meter before plugging it in.

Connect it

Bearing Marine: open Connections and the setup wizard finds BearingPuck on Bluetooth. Every position then shows that it came from the puck and how old it is. If your boat has more than one GPS, you can choose Prefer this source for position.

OpenCPN on a laptop: join the puck's Wi-Fi network, then add a network connection: TCP, address 192.168.4.1, port 1818. Joining it drops the laptop off any other Wi-Fi.

Stuck? Email support@bearingmarine.app with what the serial monitor shows.