Skip to content

norlab-ulaval/warthog_lights_arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warthog Lights Arduino

Arduino code for LED-Personalisation and E-Stop state publishing

image

The base Clearpath configuration for the LED has been kept, to customize the lights color's the user must publish on the warthog/platform/cmd_lights topic all three RGB componnents must be published at a minimal rate of 1 Hz which is the maximum time interval set for ros in the arduino code see an example here . A white balance is also integrated in the arduino code here are the rations R:0.5 G:1 B:0.75 to change see user constants on the top of the arduino sketch.

LED Behavior

From the LED control wiki page here is the table of behaviors for the led and the order of priority in which they interact with each other. To change the behaviors of different state, the order of priority or add new behaviors modify the placement of the different else if blocks in the main loop of the arduino code here.

Priority ranked LED behavior

State Logic trigger Behavior
Charging BMS state 3 pulsing following soc color gradient
Charged BMS state 8 steady soc full color
Low battery BMS soc below 30 blinking rapidly soc empty color
E-stop Estop state low blinking current soc color
ROS ros message received solid color determined by user
Stand-by no higher priority behavior current soc color

BMS state of charge(soc) color gradient

Empty ---------------------------> Full

🟥 🟥 🟧 🟧 🟨 🟨 🟩 🟩 🟩 🟩

About

Arduino code for LED-Personalisation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •