BaptisteHudyma / Lamp-Da

An embedded program to control an indexable color strip wrapped around a cylinder. Based on Seed nRF52840 Sense module
GNU General Public License v3.0
2 stars 1 forks source link

refactor the charging protocols #35

Open BaptisteHudyma opened 6 days ago

BaptisteHudyma commented 6 days ago

Big refactor of the charging protocols.

Make code clearer to read and debug. Basic handling of components alerts. Use ICO process to detect maximum VBUS current. Resolve the "unplug the lamp makes it start" bug Add deglitch times on charging states Handle charging in it's own thread And much more !

Some more testing needs to be done before merging

BaptisteHudyma commented 4 hours ago

It was due to the ICO algorithm that made vbus go below the validity threshold, and the lamp turned of. Resolved with a deglitch plugged off function