Skip to content

bultodepapas/Dog-RGB

Repository files navigation

Smart LED Dog Collar

English | Espanol | User Manual | Build Manual

Smart, high-visibility LED collar for medium-to-large dogs. Built for safety, comfort, and GPS-first telemetry with a local Wi-Fi portal and runtime LED configuration.


Quick Links


What This Is

A wearable LED collar with GPS-first telemetry, configurable LED behavior, and a local Wi-Fi portal (AP/STA) for data and runtime settings.


System Summary

  • MCU: Seeed Studio XIAO ESP32-S3
  • GNSS: EBYTE E108-GN02 (10 Hz)
  • LEDs: SK6812 RGBW (5V, single-wire), dual strips
  • Power: 21700 Li-ion + BMS + 5V boost (>=3A)
  • Portal: AP + STA with local dashboard and config UI
  • BLE: read-only daily summary characteristic

More details:


Firmware (Current Status)

The active firmware project is in Platformio/Dog-RGB with:

  • NMEA RMC + GGA parsing (fix, speed, satellites)
  • Distance calculation (Haversine) with spike filtering
  • Active time tracking and speed thresholds
  • Daily reset using GPS date
  • Max/avg speed metrics
  • NVS persistence for metrics + runtime config
  • Wi-Fi portal (AP/STA) with /, /api/summary, /wifi
  • Runtime config UI at /config with /api/config + /api/config/reset
  • BLE read-only daily summary payload
  • LED UI with 12 effects, configurable per speed range, plus Show/Simple modes

Short summary: the firmware is now modularized by domain (GPS, Wi-Fi, web portal, BLE, LED UI, config, storage), and main.cpp only orchestrates setup/loop. See docs/architecture.md and docs/main_refactor.md.

Key files:


Portal Configuration (Runtime)

The portal exposes runtime config via /config and /api/config (plus /api/config/reset).

Wi-Fi portal docs:


LED Behavior


Specs and Product Docs


Hardware Setup (Phase 1 MVP)

Pins (XIAO ESP32-S3):

  • GPS RX: D7 / GPIO44
  • GPS TX: D6 / GPIO43
  • Status LED: D2 / GPIO3 (external LED)
  • LED A data: D0 / GPIO1
  • LED B data: D1 / GPIO2

Wiring reference:


Repo Structure

  • Datasheets/ component datasheets
  • docs/ specs, architecture, decisions, roadmap
  • firmware/ firmware notes and references
  • hardware/ hardware notes
  • Platformio/ active PlatformIO firmware project
  • software/ app/BLE tooling (future)

Next Steps

  • Validate the power budget with real component efficiencies
  • Finalize BOM and sourcing list
  • Draft enclosure and cable routing
  • Add IMU motion classification (Phase 2)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors