GPS modules and DIY wiring
Open MENU → GPS & SD → GPS SETUP. In 0.8, Unit GPS v1.1, GPS SMA, and both DIY ATGM336H variants appear first, with their default baud displayed. Choose a module preset, the actual Grove port or receive pin, and a baud rate. SAVE + CONNECT saves them; SAVE + FIND BAUD applies your wiring selection and listens for the module's current speed. Existing installations keep their port and baud on update.
The presets cover the M5Stack standalone UART GPS/GNSS families below, plus ATGM336H DIY boards. Compatibility means receiving their NMEA UART output. Stackable modules, Atom bases, and Cap modules need suitable breakouts/adapters; selecting a preset does not make their connectors fit StackChan. Unit GPS v1.1 and GPS SMA have been checked on Port C for checksum-valid NMEA reception. On 2026-11-04, both receivers also produced valid outdoor fixes during isolation checks: Unit GPS v1.1 on blue C (5 satellites, HDOP 2.7), and GPS SMA on black B (10 satellites, HDOP 1.5). The normal 0.7.2 firmware then accepted the SMA fix while its radios and pet ran. Moving outdoors and switching to battery happened together; this does not isolate USB, radio interference, or any single cause. A driven-route endurance test is still separate. Other entries are based on the linked manufacturer documentation and parser tests.

Pick your receiver
All presets use 8 data bits, no parity, 1 stop bit. These are starting speeds: a receiver previously configured elsewhere may use a different one.
| Settings preset | Starting baud | Connection to K151 / primary reference |
|---|---|---|
| Unit GPS (AT6558), U032 | 9600 | Grove cable to Port C. M5Stack |
| Unit GPS v1.1, U032-V11 | 115200 | Grove cable to Port C; ATGM336H-6N / AT6668. M5Stack |
| GPS SMA (AT6668), U190 | 115200 | Grove cable to Port C; attach the external SMA antenna. M5Stack |
| Module GPS (M8N), M003 | 9600 | Break out GPS TX, power and ground from M-Bus. M5Stack |
| Module COMX GPS | 9600 | UART breakout; check its TX DIP-switch routing. M5Stack |
| Module GPS v2.0, M003-V2 | 115200 | UART breakout; check TX DIP switches. M5Stack |
| Module GPS v2.1, M003-V21 | 115200 | UART breakout; revised M-Bus pin options. M5Stack |
| Module GNSS (M9N), M135 | 38400 | UART breakout; only GNSS NMEA is used, not the IMU. M5Stack |
| Atomic GPS Base, A134 | 9600 | Adapt the base header's GPS TX, power and ground. M5Stack |
| Atomic GPS v2.0, A134-V2 | 115200 | Adapt the base header; ATGM336H-6N. M5Stack |
| Cap LoRa GPS UART | 115200 | Adapt Cap-Bus GPS_TX, not its Grove I2C extension. GPS only; no LoRa support. M5Stack |
| ATGM336H-5N DIY | 9600 | Wire a documented breakout or a correctly powered bare module. Manufacturer |
| ATGM336H-6N DIY | 115200 | Wire a documented breakout or a correctly powered bare module. Manufacturer, 6N74 |
| Other NMEA UART | 9600 | Compatible 3.3 V logic receiver with GGA and RMC output; find or select its baud. |
Manual / current keeps the current draft baud. Every other preset chooses the starting baud above while preserving your selected wiring. Tap Baud for the seven-rate picker if the receiver has been reconfigured. The original Unit GPS v1.1 used with this StackChan is 115200; the older AT6558 Unit GPS is 9600. ATGM336H-5N and -6N are separate presets because their defaults differ. Presets never transmit configuration commands, change constellations, change receiver update rates, or alter DIP switches. USB-only, I2C-only, binary-only receivers and cellular modules requiring AT-command initialization need separate integration. RTK corrections and PPS timing are not implemented.
Ports and custom receive pins
These assignments are for the official K151 StackChan, from its pin map. Wire the GPS's TX output to the robot's RX input, with a common ground. Power off before wiring. Use one receiver and one port at a time; unplug any conflicting Grove peripheral.
| Robot port | White wire: default host RX | Yellow wire: optional custom RX | Black | Red |
|---|---|---|---|---|
| Blue C | G18 | G17 | GND | 5 V |
| A | G1 | G2 | GND | 5 V |
| B | G8 | G9 | GND | 5 V |
Tap the port button to choose Blue C, A, B, or Custom from a labeled list. Tap Host RX to cycle the six exposed Grove pins; this selects Custom mode. Internal servo, SD, USB, and memory pins are deliberately unavailable. The GPS UART is receive-only: the unused signal wire is not a host TX output. A standard Unit GPS cable uses Port C white/G18; its other serial wire may remain in the cable, but Dash-Chan does not drive it.
Wire your ATGM336H
Check the exact suffix and breakout schematic before applying power. A bare ATGM336H-5N or -6N requires a regulated supply within 2.7–3.6 V (normally 3.3 V). Grove red is 5 V: do not wire it directly to bare-module VCC. A breakout may accept 5 V only if its own documentation confirms an onboard regulator and that input rating. UART signals reaching StackChan must use 3.3 V logic, never RS-232 or 5 V logic.
StackChan blue Port C ATGM336H receiver
white / G18 <------------------------ TX / TXD (NMEA output)
black / GND -------------------------- GND
yellow / G17 unused
Power, choose the correct arrangement for your hardware:
red / 5 V --> regulated 3.3 V supply --> bare module VCC
OR --> documented 5 V VIN -----> breakout with onboard regulator
Module RX, PPS: unconnected for Dash-Chan receive-only operation
For a bare module, follow the manufacturer reference circuit for decoupling, antenna power/matching, backup power, and control pins; the diagram above is the host connection, not a complete bare-module PCB design. Do not join two separate power supplies' positive outputs. With a separately powered receiver, connect common ground and TX only, leaving Grove red unconnected.
Select the 5N or 6N DIY preset, select Blue Port C, then SAVE + FIND BAUD if the module's actual speed is unknown. A sky view is needed for a location, but not for detecting checksum-valid no-fix NMEA sentences.
Find the baud, then wait for a fix
The finder starts at your selected baud, then wraps through 9600, 115200, 38400, 57600, 19200, 4800, 230400, trying each rate once for 3.5 seconds. Two checksum-valid GGA/RMC sentences at one rate save that baud. It is a one-shot search of roughly 25 seconds maximum, not an endless reconnect loop. CANCEL SEARCH, or an unsuccessful search, restores the baud saved before searching. With SAVE + FIND BAUD, that means the settings you just applied. Very slow sentence output can miss the search window; select its baud manually instead.
Radios keep watching during search. A wardrive cannot start until search ends; GPS settings and searches cannot interrupt an active recording. Finding NMEA confirms a serial link, not a usable position or the receiver's identity.
The parser checks each original checksum before normalizing GP, GN, GL, GA, GB, BD, GQ, and GI talkers for GGA/RMC decoding. Malformed, overlong, and unsupported sentences cannot create a fix. NMEA counters include checksum-valid non-position sentences; a rising byte counter alone can mean the wrong baud or electrical noise.
WiGLE rows still require fresh GGA/RMC data, valid UTC, at least four satellites, HDOP ≤ 5, and the existing quality checks. Both GGA and RMC should be enabled at 1 Hz or faster. GPS READY can take longer indoors; go outside with the antenna facing sky. Losing GPS pauses valid rows while passive detections continue.
If bytes stay at zero, check power, TX-to-RX wiring, ground and selected port. If bytes rise but valid sentences do not, check baud and logic levels. If valid sentences rise but GPS stays WAIT, check the antenna, sky view, enabled sentence types, satellite count and HDOP. Maintenance tools offer GPS FIND and GPS CANCEL; STATUS reports the saved and active baud, selected profile, RX pin, search state, and checksum counts.
Read the connection status
- NO DATA: no bytes have arrived on the selected RX pin; check power, cable, port and GPS TX wiring.
- UNREADABLE: bytes arrive but no valid NMEA checksums; select the correct baud or use Find Baud.
- DATA STOPPED: bytes or valid sentences have stopped for more than four seconds. A previously connected receiver is not shown as live indefinitely.
- NMEA LINK OK: need GGA + RMC: valid NMEA is arriving but position-bearing sentences are missing or stale.
- LINK OK: waiting for satellites: the UART link works; check the antenna and sky view. A zero-satellite report is not a baud mismatch.
- LINK OK: waiting for quality fix: the receiver sees satellites but the location, UTC, freshness or quality gates are not all satisfied.
- GPS READY: the current fix passes the logging checks.
The setup screen shows the live RX pin, active baud, and satellites used in the fix / recent satellite signals seen. The GPS & SD diagnostics screen includes antenna status. Tap the small GPS indicator on the home screen to reach diagnostics directly. GPS & SD also shows checksum-valid NMEA and HDOP. The selections above it are a draft until applied. SAVE + CONNECT never changes the GPS module's own baud; it changes the robot's listening rate.
From 0.7.2, 0 used does not mean no signals are visible. The “seen” count comes from checksum-valid GSV entries with a positive reported C/N0. Repeated pages, multiple frequencies, and BD/GB aliases are deduplicated by constellation and satellite ID. Signals expire after six seconds; the bounded tracker holds 96 satellites. Mixed GN-GSV and unsupported talkers are omitted rather than guessed, so this is a diagnostic count, not a guarantee that every visible satellite is represented. No GSV output means no signal count even if a receiver can obtain a fix.
ANT OK / OPEN / SHORT comes from the receiver's explicit TXT antenna report. ANT ? means unavailable or more than ten seconds old; it is not a fault. ANT OK is an electrical-status indication, not proof of good reception or an undamaged antenna. The GPS SMA preset shows troubleshooting prompts for OPEN/SHORT because that unit uses an active external antenna. Other profiles show the raw status without assuming a fault: passive or internally coupled antennas can legitimately report OPEN. These reports follow the manufacturer's receiver protocol. They never bypass GGA/RMC fix requirements or permit an invalid WiGLE row.
For a receiver sending valid NMEA but not obtaining a fix, keep the correct baud, use the appropriate GNSS antenna with a clear sky view, check its connector, and try a power cycle of the GPS unit. If reception stays poor, compare with a known-good compatible GPS antenna or receiver. Avoid treating an antenna-status report alone as a hardware diagnosis. STATUS exposes gps_signals, gps_cn0_peak (highest latest reported C/N0 among recent tracked satellites), and gps_antenna without exporting coordinates.
For maintenance, GPS SET <profile> <port> <rx> <baud> validates and saves the same settings. The new SMA profile is ID 14; existing IDs are unchanged. For the SMA on blue Port C: GPS SET 14 0 18 115200. Port IDs are C=0, A=1, custom=2, B=3; fixed ports use their mapped RX regardless of the custom RX field. Invalid settings or an active recording are rejected without changing settings. STATUS adds gps_link and gps_positions.
Port selection is independent of model
For the current two-receiver setup, select Unit GPS v1.1 + Blue Port C + 115200, or GPS SMA + Black Port B + 115200. For a single GPS SMA on blue C, select GPS SMA + Blue Port C + 115200. Both are supported: choosing a module never secretly changes the physical port. Only one receiver is read at a time. For DIY ATGM336H, use the 5N/6N preset appropriate to the board, Blue Port C, and the wiring/power instructions above. A preset identifies its expected serial settings; it cannot identify the model from generic NMEA sentences.
Firmware 0.8 also tracks the latest receiver fix flags independently of TinyGPSPlus’s retained coordinates. RMC V, GGA quality 0 (or estimated/manual/simulated quality), or stale status immediately prevents logging. Both a fresh valid GGA and an active RMC must be present before GPS READY returns. Settings and calibration survive normal app-only firmware updates.