GPS Sensor Setup - Digital-Waters/WaterMonitorDevice GitHub Wiki

GPS Sensor Setup

GPS MODULE UNUSED After initial testing, we decided early on to not use the GPS sensor at all.

This guide will show how to set up the GPS sensor.

Tools Needed

  • USB-to-TTL Serial Cable (if you're using a USB GPS module)
  • Jumper wires (if you're using a GPS module with RX/TX pins)
  • Wire cutters/strippers (optional)

Parts Needed

  • GPS Sensor (e.g., GT-U7, NEO-6M, or other compatible GPS module)
  • Raspberry Pi Zero 2 W

Instructions

1. Prepare the Sensor

Connect the GPS sensor to your Raspberry Pi. Depending on your GPS module, the connection can vary:

  • USB GPS Module:
    Simply connect the GPS module to one of the USB ports on the Raspberry Pi.

  • GPS Module with RX/TX Pins:
    Use jumper wires to connect the GPS module as follows:

    • VCC (red wire) to 3.3V or 5V (depending on your module) on the Raspberry Pi.
    • GND (black wire) to any ground pin.
    • TX (yellow wire) to RX (GPIO15) on the Raspberry Pi.
    • RX (green wire) to TX (GPIO14) on the Raspberry Pi.

2. Enable Serial Interface

You need to enable the serial interface to communicate with the GPS sensor: