Skip to content

Autonomous-Racing-Labs/lab_timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lab_timer

The timer requires a supply voltage of 10 to 30 V

Set up project

  1. Install platformio in vscode
  2. Open this repo with platfomio
  3. Build the project

Modes

Mentioned defines can be set in /lib/glob_defines/glob_defines.h

  1. “Airplaine” mode
    • How to enter it: Press the button at the top when powering up or set AIRPLAINE_MODE true
    • The ESP will not connect to the WLAN and will not communicate with the cars.
    • Simply switch the car mode to active as well
  2. Mode "Just toggle cars":
    • How to enter it: set JUST_TOGGLE_CARS true
    • If the cars are not able to communicate their progress or position, use this mode.
    • This mode assumes that the cars will not overtake each other.
    • The timers only switch when passing.
  3. Drive with one car
    • Input: set the ID of CAR_B to -1
    • May only work in airfield mode. Not tested
    • Function get_car_on_finish_line() in main will always return CAR_A

Communication

The cars and the lab timer communicate via web hooks.

sequenceDiagram
    ESP Timer->>+CAR n: get ready
    Remote n->>+CAR n: dead man's switch
    CAR n->>+ESP Timer: ready
    ESP Timer->>+ESP Timer: wait for all cars or timeout
    ESP Timer->>+ESP Timer: Play start sequence
    ESP Timer->>+CAR n: start race
    CAR n->>+CAR n: race
    CAR n->>+ESP Timer: abort
    ESP Timer->>+CAR n: abort
Loading

Dot Matrix Display (DMD)

This display is used to display the current lap time. The display type is called HUB12 because it has only white leds.

Useful links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •