clockwise icon indicating copy to clipboard operation
clockwise copied to clipboard

Automatic Brightness

Open krzimmer opened this issue 1 year ago • 4 comments

I'm having difficulty with the automatic brightness setting. I believe the feature should operate in this way. When the room is dark, the panel will dim to prevent eye strain. When the room is bright, the panel with increase brightness to be easier seen. With the settings I've experimented with, I'm experiencing the opposite effect. When the room is dark, the panel brightens.

I've tried many settings for min and max values. I've even tried swapping the values. If set too low for the min value, the panel will turn off all together. I'm using version 1.4.1. For hardware I'm using the Trinity board. Below is a screenshot of my current settings. Any help would be greatly appreciated.

image

krzimmer avatar Nov 29 '23 07:11 krzimmer

Hello! Yes, the way of work is what is described, when the room is dark the display bright decreases. First of all, a dumb question, I'm considering you have the LDR soldered on Trinity board. Just to make sure :) I think the problem is the parameters min/max you set. Please, use the link "Read Pin" to read the value of the LDR. Click in "Read Pin" when the room is dark and bright, this will be a guide for you min and max value. In my case, the LDR give me zero in the dark and ~800 when I turn the lights on. So, Min = 0 and Max = 800 was a good fit. Captura de tela de 2023-11-29 11-37-34

jnthas avatar Nov 29 '23 14:11 jnthas

Hi. As described, the panel does react to a light and dark room. Just not in the way I would expect. So the LDR is connected. I didn't see the "Read Pin" link. That should be helpful. I'll try that and report back. Thank you for the suggestion and the fast response.

krzimmer avatar Nov 29 '23 16:11 krzimmer

0 min and 2000 max values worked for me. At 300 min and 2000 max, the panel would just turn off in a dark room. This must be because these are full on/off thresholds. When the LDR value drops below the min value, the panel brightness is full off. On the other end, the max value defines when the panel brightness is full on. Is this correct?

krzimmer avatar Nov 30 '23 02:11 krzimmer

Great to hear it worked. About the display turning off, a user suggested it and I liked the idea, turnoff the display when the LDR is below the min value. So, it's expected. The full brightness is still limited by "Display Bright" parameter.
https://github.com/jnthas/clockwise/wiki/Connecting-the-LDR

jnthas avatar Nov 30 '23 12:11 jnthas