Blueforcer / awtrix3

Custom firmware for the Ulanzi Smart Pixel clock or self made awtrix. Getting started is easy as 1-2-3
https://blueforcer.github.io/awtrix3/
Other
1.41k stars 112 forks source link

[BUG] Broken auto brightness #499

Closed infestonn closed 8 months ago

infestonn commented 8 months ago

Bug report

Not sure what exactly it is.

Describe the bug

My Illuminance sensor always reports 0lx, therefore (I presume) auto-brightness does not work. It is a new device so I only tested it with the latest version. Auto-brightness on stock Ulanzi firmware did work.

Additional information

To Reproduce

By a new clock. Falshit with https://blueforcer.github.io/awtrix-light/#/flasher v0.94

Expected behavior

Do you know what may have caused the problem, or did my sensor just die?

Blueforcer commented 8 months ago

Did you test it with a flashlight? The lux value isn't accurate, but you can read the raw value from the stats API.

No issues so far from other users. So if the raw value still doesn't change I assume it's a faulty hardware.

infestonn commented 8 months ago

Did you test it with a flashlight? The lux value isn't accurate, but you can read the raw value from the stats API.

No issues so far from other users. So if the raw value still doesn't change I assume it's a faulty hardware.

Checked stats via the API. A direct flashlight beam doesn't change lux at all. Only ldr_raw value is moving. I have not found information on this parameter and Im also a newb. Is that something related to light?

chrkan commented 8 months ago

hi i can conform this, after flashing the ldr did not work

Blueforcer commented 8 months ago

LDR_raw is the raw analog value measured by the ESP.

Lux isn't accurate because nobody knows which sensor is used in the Ulanzi and there are different batches out there.

So if you want to use the light sensor for any reason use the raw value. Also Awtrix light uses the raw value for Auto brightness, not lux.

infestonn commented 8 months ago

LDR_raw is the raw analog value measured by the ESP.

Lux isn't accurate because nobody knows which sensor is used in the Ulanzi and there are different batches out there.

So if you want to use the light sensor for any reason use the raw value. Also Awtrix light uses the raw value for Auto brightness, not lux.

Got it. And what are the common values for ldr_raw? Using a flashlight, my values are between 0 and 60.

Blueforcer commented 8 months ago

should be 0-1023 Seems like a broken sensor