TrailSense

ESP32-S3 · open source · MIT

The pocket instrument that says when it doesn't know.Lo strumento tascabile che dice quando non sa.

TrailSense records your GPS tracks, guides you back along the line you walked, measures how pressure changes with altitude and logs the environment, on a 0.96" screen you can hold in one hand.TrailSense registra i tuoi percorsi GPS, ti riporta indietro sulla linea che hai camminato, misura come cambia la pressione con la quota e registra l'ambiente, su uno schermo da 0,96" che sta in una mano.

13apps on deviceapp sul dispositivo
84/84host teststest su PC
10FreeRTOS taskstask FreeRTOS
131source filesfile sorgente
GPS tracksPercorsi GPSRecorded and recovered after a rebootRegistrati e recuperati dopo un riavvio
Guided returnRitorno guidatoAlong the line you walkedSulla linea che hai camminato
Android remoteTelecomando AndroidBluetooth LE and Wi-Fi hotspotBluetooth LE e hotspot Wi-Fi
Open sourceMIT licence, tested on PCLicenza MIT, testato su PC

What it doesCosa fa

Thirteen apps on an 80-pixel-wide screen.Tredici app su uno schermo largo 80 pixel.

Five buttons, and a phone when you want one.Cinque pulsanti e il telefono quando serve.

Record tracksRegistra percorsi

Live north-up map, waypoints, pause. Points are stored on distance, bends and heartbeat, and an interrupted track is recovered at the next boot.Mappa dal vivo con il Nord in alto, waypoint, pausa. I punti si salvano per distanza, curve e battito, e un percorso interrotto viene recuperato al riavvio.

Walk backTorna indietro

Follows a saved track forwards or reversed with a 25 m look-ahead target and an off-track alarm at 30 m.Segue un percorso in avanti o al contrario con un obiettivo 25 m più avanti e l'allarme fuori traccia a 30 m.

Pressure experimentEsperimento pressione

5-second averaged measurements, GPS or QNH calibration, chart and linear regression in hPa/m.Misure mediate su 5 secondi, calibrazione GPS o QNH, grafico e regressione lineare in hPa/m.

EnvironmentAmbiente

Temperature, humidity and pressure with min/max/mean and logging from 1 s to 5 min.Temperatura, umidità e pressione con minimi, massimi, medie e registrazione da 1 s a 5 min.

Phone hotspotHotspot per il telefono

The device becomes a Wi-Fi access point: type names from the phone or show the speed on its screen, with no signal.Il dispositivo diventa un access point: scrivi i nomi dal telefono o mostra la velocità sul suo schermo, anche senza campo.

Bluetooth remoteTelecomando Bluetooth

The TrailSense Remote Android app acts as a sixth button: remote keys, keyboard, track list, script upload.L'app Android TrailSense Remote fa da sesto pulsante: tasti, tastiera, elenco percorsi, invio script.

ScriptingScript

A tiny sandboxed language draws custom read-outs, uploaded over BLE without recompiling.Un piccolo linguaggio isolato disegna letture personalizzate, caricate via BLE senza ricompilare.

CSV exportEsportazione CSV

USB console with track and experiment export, integrity checks and full diagnostics.Console USB con esportazione di percorsi ed esperimenti, controlli di integrità e diagnostica completa.

Track screen in the simulator
Track screen, one square per pixel.Schermata Percorso, un quadratino per pixel.
Home screen in the simulator
Main menu.Menu principale.
Environment screen in the simulator
Environment: temperature, humidity, pressure.Ambiente: temperatura, umidità, pressione.

Limits, statedLimiti dichiarati

Honest by design.Onesto per progetto.

When a value is not reliable, TrailSense says so instead of showing a plausible number.Quando un valore non è affidabile, TrailSense lo dice invece di mostrare un numero verosimile.

Not a compass.Non è una bussola. No magnetometer: direction comes from GPS only while you walk. Standing still, no arrow is drawn.Niente magnetometro: la direzione arriva dal GPS solo mentre cammini. Da fermo la freccia non viene disegnata.
No maps.Niente mappe. It follows the line you walked, never a shortcut.Segue la linea che hai percorso, mai una scorciatoia.
No invented battery.Batteria mai inventata. Without the optional divider it shows BAT --.Senza il partitore opzionale mostra BAT --.
A prototype.Un prototipo. Not a certified safety instrument: carry a map and a compass.Non è uno strumento di sicurezza certificato: porta mappa e bussola.

Hardware

Common modules, one pin file.Moduli comuni, un solo file dei pin.

Every pin lives in src/board/BoardConfig.h.Tutti i pin stanno in src/board/BoardConfig.h.

PartComponenteBusGPIO
ESP32-S3-DevKitC-1 N16R8——
ST7735S 0.96" 80×160 IPSSPI 40 MHz10 11 12 13 14 21
BME280 / BMP280I²C8 9
MPU6050 (GY-521)I²C + INT8 9 2
NEO-6M GPSUART1 960047 48
5 buttons to GND5 pulsanti verso GNDdigitaldigitale38 39 40 41 42
Battery divider (optional)Partitore batteria (opzionale)ADC11

Build, flash and testCompila, carica e prova

pip install platformio
git clone https://github.com/diegobruvhrpiugvjrigjtibjte/trailsense.git
cd trailsense
pio run -e trailsense -t upload
pio test -e native     # 84 tests

Build: RAM 34.2 %, flash 41.0 % of the 4 MB OTA slot. The display's "SCL/SDA" pins are SPI, not I²C.Compilazione: RAM 34,2 %, flash 41,0 % dello slot OTA da 4 MB. I pin "SCL/SDA" del display sono SPI, non I²C.

Download

Release 1.0.0.Release 1.0.0.

Flash the firmware from the browser with the Espressif web flasher, or with esptool.Carica il firmware dal browser con il web flasher di Espressif, o con esptool.

esptool.py --chip esp32s3 --baud 921600 write_flash --flash_mode dio --flash_size 16MB \
  0x0 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin

DocumentationDocumentazione

Twelve pages, in English and Italian.Dodici pagine, in inglese e italiano.

On GitHub, next to the code.Su GitHub, accanto al codice.