Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Arduino code for LED-Personalisation

NotificationsYou must be signed in to change notification settings

norlab-ulaval/warthog_lights_arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 thewarthog/platform/cmd_lights topic all three RGB componnents must be published at a minimal rate of 1Hz which is the maximum time interval set for ros in the arduino code see an examplehere . A white balance is also integrated in the arduino code here are the rationsR:0.5G:1B: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 differentelse if blocks in the main loop of the arduino codehere.

Priority ranked LED behavior

StateLogic triggerBehavior
ChargingBMS state 3pulsing following soc color gradient
ChargedBMS state 8steady soc full color
Low batteryBMS soc below 30blinking rapidly soc empty color
E-stopEstop state lowblinking current soc color
ROSros message receivedsolid color determined by user
Stand-byno higher priority behaviorcurrent 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

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp