Getting Started
Raspberry Pi Setup
Section titled “Raspberry Pi Setup”-
Enable UART and I2C
Open Raspberry Pi configuration and enable the serial port and I2C interface:
Terminal window sudo raspi-config# Interface Options → Serial Port → Yes# Interface Options → I2C → Yes -
Connect the HAT
- Mount the LC29H HAT onto the Pi’s 40-pin GPIO header
- Set the yellow jumper to position B (UART mode)
- Connect the L1/L5 antenna to the IPEX socket
- Place the antenna with clear sky visibility
-
Verify the serial port
Terminal window ls -la /dev/ttyS0# Should show the serial deviceTerminal window ls -la /dev/ttyAMA0# Pi 5 uses a different UART device path -
Install the
lc29hCLITerminal window # Install via uv (recommended)uv tool install lc29h# Or use pipxpipx install lc29h -
Get your first fix
Terminal window lc29h --port /dev/ttyS0 monitorYou should see NMEA sentences streaming within seconds. A full 3D position fix typically takes 26 seconds from cold start (under open sky), or as fast as 1 second for a hot start.
First Position Fix
Section titled “First Position Fix”Once the module powers up with antenna connected, it begins searching for satellites automatically. Watch the PPS LED — when it starts blinking once per second, you have a fix.
# Check module info and firmware versionlc29h --port /dev/ttyS0 info
# Stream position datalc29h --port /dev/ttyS0 monitorExample output:
Fix: 3D | Lat: 22.54114 N | Lon: 114.07791 E | Alt: 42.3mSatellites: 18 | HDOP: 0.7 | Speed: 0.00 kn | Course: 125.29°Alternative: gpsd
Section titled “Alternative: gpsd”For applications that use gpsd, install and configure it:
sudo apt-get updatesudo apt-get install gpsd gpsd-clientsEdit /etc/default/gpsd:
USBAUTO="false"DEVICES="/dev/ttyS0"GPSD_OPTIONS="-n"Restart the daemon and test:
sudo systemctl restart gpsdgpsmonWhat’s Next?
Section titled “What’s Next?”Depending on your variant and use case:
- LC29H(AA) → AGNSS Fast Fix to reduce cold start to 5 seconds
- LC29H(DA) → RTK Rover Setup for centimeter positioning
- LC29H(BA/CA) → Dead Reckoning for tunnel/canyon navigation
- LC29H(BS) → RTK Base Station to set up your own reference station
- Any variant → Python CLI Guide for full command reference
No GPS signal indoors?
GNSS signals are too weak to penetrate buildings reliably. Connect the antenna to the IPEX socket and position it with clear sky view. Allow approximately 1 minute for initial acquisition; base station survey-in requires extended observation time.
RTKBase deployment on Raspberry Pi?
The Stefal RTKBase project provides a web-based interface for LC29H(BS) base station operation on Raspberry Pi. See the RTK Base Station guide for setup instructions.