jomjol / AI-on-the-edge-device

Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world
https://jomjol.github.io/AI-on-the-edge-device-docs/
5.97k stars 648 forks source link

Not used LEDs are on after some time #3243

Open Apfelstruhdl opened 1 month ago

Apfelstruhdl commented 1 month ago

The Problem

I have a LED Ring of 16 to ilkuminate a watermeter and prevent shadows. That works good excrpt for some reflections that i optimized by using only the first 12 LEDs. I cused the config and set the number to 12. At first, this works and the remaining four stay off. After some time all LEDs are on and cause wrongly detected values due to reflections. I have to power off and power on the watermeter to reset them as a reboot does not help.

I guess it is caused by some glitch that forwards configuration data to the remaining LEDs and normally they are not configured which means they will also not be turned off again. This is the bug part. It might be in the used library to generate the configuration bitstream of the LEDs.

Now thr feature request part: It wouls be great if there would be an option to disable certain LEDs of a strip. Maybe a simple bitmask of the length of the strip would be enough.

Currently I would need to modify the strip on hardware level by cutting off LEDs or by putting light-absorbing tapebon them.

Version

irmware version: Development-Branch: rolling (Commit: 822753b) Firmware build time: 29.08.2024 22:19 Web interface version: Development-Branch: rolling (Commit: 822753b)

Logfile

None

Expected Behavior

No response

Screenshots

No response

Additional Context

No response

SybexX commented 1 month ago

If you increase CamGainceiling, you can reduce the LED intensity and thereby mostly eliminate the reflections.

SybexX commented 1 month ago

Which LED type do you use, WS2812, WS2812B or WS2813? try this version: AI-on-the-edge-deviceupdate3261merge(fb37467).zip