This tutorial provides a detailed, step-by-step guide to connect the EByte E108-GN03D GPS module to the EByte EoRa-S3 development board with Meshtastic firmware. By the end of this guide, your GPS module will deliver location data (latitude, longitude, and altitude) to be displayed on the OLED screen of your Meshtastic device.
Step 1: Reference Documents
Before you begin, it’s essential to have access to the datasheets and schematics of the GPS module and development board to understand their pin configurations and connections. Below are the relevant links:
- EByte E108-GN03D GPS Module Datasheet: Download Here
- EByte EoRa-S3 Development Board Datasheet: Download Here
- EByte EoRa-S3 Development Board Schematics: Download Here
These documents are crucial for verifying pinouts, wiring connections, and voltage requirements.
Step 2: Verify Wire Colors and GPS Pinout
Before connecting the GPS module to your EoRa-S3 board, double-check the wire colors and pin mapping of your GPS module. Merchants may use different color sequences for wires, so never assume wire colors match the provided examples without verification. Cross-reference the datasheet or consult your supplier for accurate information.
Here is the E108-GN03D GPS pinout for reference:
Pin Number | Pin Name | Function |
---|---|---|
1 | ON_OFF | Power control (keep high for normal operation) |
2 | 1PPS | 1 Pulse Per Second (not required for Meshtastic) |
3 | GND | Ground connection |
4 | TXD | Data output (GPS → MCU) |
5 | RXD | Data input (MCU → GPS) |
6 | VCC | Power supply (2.7–5.5V) |
Step 3: Connect the GPS Module to the EoRa-S3 Board
The wiring involves connecting the GPS module pins to GPIO pins on the EoRa-S3 board. The GPIO pins used in this tutorial are just examples that work for this setup. Feel free to use other GPIO pins if they are more convenient for your application. Be sure to enter the correct GPIO assignments in the Meshtastic settings later.
Here is an example:
GPS Pin | Wire Color | EoRa-S3 GPIO Pin | Description |
---|---|---|---|
ON_OFF | White | IO37 | GPIO pin for power control |
1PPS | Blue | Not connected | Not required for Meshtastic |
GND | Green | GND | Common ground |
TXD | Yellow | IO16 | Data sent to the EoRa-S3 board (connect to RX pin) |
RXD | Black | IO15 | Data received from the EoRa-S3 board (connect to TX pin) |
VCC | Red | 5V | Power supply (use a stable 5V pin on the EoRa-S3 board) |
The following Mermaid diagram shows the wiring connections between the GPS module and the EoRa-S3 board:
flowchart TD %% GPS Module Pins GPS_ON_OFF["ON_OFF (White)"] GPS_1PPS["1PPS (Blue)"] GPS_GND["GND (Green)"] GPS_TXD["TXD (Yellow)"] GPS_RXD["RXD (Black)"] GPS_VCC["VCC (Red)"] %% EoRa-S3 Pins EORA_IO37["IO37 (GPIO for power control)"] EORA_GND["GND"] EORA_IO16["IO16 (RX)"] EORA_IO15["IO15 (TX)"] EORA_5V["5V / 3.3V"] %% Not Applicable Node NotApplicable["Not applicable for Meshtastic"] %% Connections with wire colors GPS_ON_OFF ---|White| EORA_IO37 GPS_GND ---|Green| EORA_GND GPS_TXD ---|Yellow| EORA_IO16 GPS_RXD ---|Black| EORA_IO15 GPS_VCC ---|Red| EORA_5V GPS_1PPS ---|Blue| NotApplicable %% Style for NotApplicable node classDef notconnected fill:none,stroke-dasharray:3 3,stroke:#000; class NotApplicable notconnected;
Notes:
- Double-check the wire colors and GPS pinouts.
- Ensure VCC and GND connections are correct to avoid damaging the GPS module.
Step 4: Configuring Meshtastic Firmware
After connecting the hardware, you need to configure the Meshtastic firmware to use the correct GPIO pins for the GPS module.
- Open the Meshtastic Web UI or connect using the Meshtastic app.
- Go to the GPS module configuration section.
- Assign the GPIO pins for RX, TX, and Enable:
- Receive Pin (RX): Set to
16
(connected to the GPS module’s TXD pin). - Transmit Pin (TX): Set to
15
(connected to the GPS module’s RXD pin). - Enable Pin: Set to
37
(connected to the GPS module’s ON_OFF pin).
- Receive Pin (RX): Set to
- Save the configuration and restart the device.
Notes:
- You can use different GPIO pins as long as they are specified correctly in the Meshtastic settings.
- The 1PPS pin does not need to be connected for Meshtastic to work.
Step 5: Testing the GPS Connection
After wiring and configuring the firmware, test the GPS module to ensure it is working correctly.
Steps:
- Power on the EoRa-S3 board.
- Wait for the GPS module to acquire satellites. This may take up to a few minutes, depending on the location and sky visibility.
- Check the OLED screen on the Meshtastic device:
- Latitude and Longitude: Verify that the device displays coordinates like
37.7749
and-122.4194
. - Altitude: Verify the altitude reading (e.g.,
50.3 m
).
- Latitude and Longitude: Verify that the device displays coordinates like
Debugging:
If the GPS data is not displayed:
- Recheck the wiring connections, especially the TX and RX lines.
- Verify that the GPIO pins in the Meshtastic settings match your wiring.
Practical Applications
With the GPS module connected, the Meshtastic device can now:
- Share your real-time location with other Meshtastic users.
- Display altitude, latitude, and longitude on the OLED screen.
- Use the location data for navigation, tracking, and outdoor activities.
- Update device time RTC.
Conclusion
This tutorial demonstrated how to connect and configure the EByte E108-GN03D GPS module with the EByte EoRa-S3 board running Meshtastic firmware. By carefully checking the wiring and configuring the firmware, your Meshtastic device can now effectively use GPS data for enhanced functionality. Always double-check wire colors and pin mappings, and feel free to use different GPIO pins as per your setup requirements.
If you encounter any issues or want to expand the functionality, feel free to reach out for further assistance!
本文作者: Hays Chan | 陈希