This is a device that, periodically, get a GPS fix and send it to a home station over LoRa.
To extend the LoRa transmission range, we are going to utilize the MeshCore public network to repeat the signal until it reaches the home station.
The device will be battery powered.
The device will operate in two modes:
- Field mode
- Charging Mode
This is when the device is being plugged into a charger.
In this mode, the device will stop being a tracker and activates administration functions.
In the administration functions, it will:
- Recieve Wifi configurations to be able to connect to the internet. Stores this config for later uses.
- Pairing with the home station. This process is mainly to negotiate a shared encryption key to be used in the communication in field mode.
- Downloads the assisted GNSS data (ephemeris/almanac). This data will be used in the field mode to accelerates the gps fix acquisition.
This is when the device is not connected to a charger. The assumption is that it is being actively used in the field.
In this mode, the device will be actively, and periodically, acquiring gps fixs, encrypting them and sending them over MeshCore network to home station.
- Seeed XIAO-ESP32-S3
- Seeed WIO-SX1262 for XIAO
- Adafruit MiniBoost 5V @ 1A (TPS61023)
- Matek SAM-M10Q 5V
- 500mAh LiPo Battery
The MiniBoost 5V regulator is needed to maintain a stable 5V supply to the Matek SAM-M10Q. Since the XIAO board does not have any voltage on the 5V when on battery, we need to supply the power from the battery directly to the GPS module.
Ideally, if we are to design a PCB, we would replace the Mateck breakout board with the u-blox SAM-M10Q directly (anlog with the necessary decoupling, etc...).
| Feature | XIAO Pin | ESP32-S3 GPIO |
|---|---|---|
| Charge Sense | D0 | GPIO1 |
| LoRa DIO1 | D1 | GPIO2 |
| LoRa RESET | D2 | GPIO3 |
| LoRa BUSY | D3 | GPIO4 |
| LoRa CS | D4 | GPIO5 |
| GNSS RX/TX | D6 / D7 | GPIO43 / GPIO44 |
| LoRa SPI | D8 / D9 / D10 | GPIO7 / GPIO8 / GPIO9 |
| SOURCE | DESTINATION | PURPOSE |
|---|---|---|
| LiPo Battery + | BAT+ (XIAO VBAT) | Main battery power |
| LiPo Battery + | C2 (47–100 µF) | Main battery power |
| LiPo Battery + | C3 (100 nF) | Main battery power |
| LiPo Battery – | BAT- (XIAO BAT- pad) | Battery negative input |
| C2 (47–100 µF) | GND plane | Bulk decoupling for VBAT |
| C3 (100 nF) | GND plane | High-frequency decoupling for VBAT |
| XIAO 5V | R1 (330kΩ) | Pull-down for voltage divider |
| GPIO1 | R1 | Charge detection sense input |
| GPIO1 | C1 (1–10 nF) | smoothing for sense input |
| GPIO1 | R2 (330kΩ) | voltage divider |
| R2 | XIAO GND | Complete voltage divider |
| XIAO GND | GND plane | Complete voltage divider |
| XIAO GND | C1 | |
| XIAO 3V3 | C4 (100 nF) | hight frequencey decoupling for 3V3 |
| XIAO 3V3 | C5 (10–47 µF) | Bulk decoupling for 3V3 |
| C4 | GND plane | |
| C5 | GND plane | |
| LiPo Battery + | MiniBoost IN | Power input to voltage booster |
| MiniBoost OUT | Matek SAM-M10Q VCC | 5V power for GNSS module |
| MiniBoost GND | GND plane | Common ground for all modules |
| SOURCE | DESTINATION | PURPOSE |
|---|---|---|
| MiniBoost OUT | Matek SAM-M10Q VCC | 5V power for GNSS analog/RF core |
| SAM-M10Q TXD | XIAO RX | UART data from GNSS |
| SAM-M10Q RXD | XIAO TX | UART command to GNSS |
| XIAO GND | GND plane | Common reference |
| SAM-M10Q GND | GND plane | Common reference |
| Source (XIAO) | Destination (Wio-SX1262) | Purpose |
|---|---|---|
| 3V3 | 3V3 (VDD) | Power for SX1262 module |
| GND | GND | Common ground reference |
| D8 (GPIO7) | SCK | SPI clock |
| D10 (GPIO9) | MOSI | SPI data MCU → radio |
| D9 (GPIO8) | MISO | SPI data radio → MCU |
| D4 (GPIO5) | NSS / CS | SPI chip select |
| D2 (GPIO3) | RESET | Hardware reset of SX1262 |
| D3 (GPIO4) | BUSY | Radio busy status (MCU waits while HIGH) |
| D1 (GPIO2) | DIO1 (IRQ) | Radio interrupt (TX done/RX done/etc.) |