How valentintintin/arduino-tracker-aprs-dra818 works
Project Type & Purpose
• This is an embedded firmware project for an Arduino Nano.
• Its sole purpose is to read GPS coordinates and send them as APRS frames over VHF using a DRA818V (or alternative TX path).
Top-Level Components
a. Hardware Blocks
• Arduino Nano (ATmega328P)
• GPS Module (NEO-6M)
• VHF TX Module (DRA818V)
• Optional external TX (Baofeng header or 3.5 mm jack)
• User button (EasyButton)
• Power supply & LPF (external low-pass filter)
b. Software Blocks (in src/)
• main.cpp – system initialization & loop, mode selection
• GPS.cpp/h – reads NMEA sentences via serial, provides fix & speed
• DRA.cpp/h – driver for DRA818V configuration & audio I/O
• APRS.cpp/h – QAPRS-based AFSK encoding of position packets
• Utils.cpp/h – timing, affine functions for TX interval by speed
• Third-party libs (TinyGPS+, QAPRS fork, DRA818 lib, EasyButton)
c. External Services
• APRS network (over RF)
• APRS.fi (internet visualization)
• M5Stack logger (UART debug)
Relationships & Data Flows
1. Hardware power → Arduino + modules
2. GPS → Arduino serial → GPS driver → location & time data
3. main.cpp logic → checks DRA module presence via DRA driver
4. On each TX event:
– APRS module encodes lat/long into AFSK audio signal
– audio out → resistor network or PWM (per build flag)
– audio → DRA818V audio input (or Baofeng/jack)
– DRA818V → VHF RF → APRS network
5. Button press → EasyButton ISR → main triggers manual transmit
6. (Optional) UART → M5Stack logger for debug output
Architectural Patterns & Design Principles
• Layered firmware structure (drivers → protocol → application)
• Build-time configuration via PlatformIO environments (nanoprod, nanotest)
• Hardware abstraction for TX path (R2R vs PWM resistor network)
• Finite-state detection of DRA module presence on startup