racing-manager

Agent brief: ESP32 firmware

This file can be handed unchanged to an AI agent or a developer. It uses the previous chapters as its technical specification.

Objective

Implement one shared firmware for start-01 and finish-01 following PROTOCOL.md, FIRMWARE.md, and WIRING.md. No GPIO may be hard-coded invisibly; roles, pins, sensor polarity, and server address are configurable.

Non-negotiable requirements

Deliverables

  1. Build and flash instructions.
  2. Example configuration for START and FINISH.
  3. Unit tests for state machine, debounce, and event deduplication.
  4. Hardware-in-the-loop test script or documented manual test.
  5. Brief README listing supported boards and pin conflicts.

Acceptance

Demonstrate with logs/tests: two parallel lanes, single-lane race, Wi-Fi reconnect without a lost scored event, sensor failure before race.arm, and reboot during a race. Version any protocol change and update the central integration contract together.


Navigation: ← Testing · Next: Racing Manager integration → · Deutsch

All topics: Project overview · Materials · Architecture · Wiring · Firmware · Protocol · Setup · Testing · ESP agent brief · Racing Manager integration