Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Brightness #56

Open
krzimmer opened this issue Nov 29, 2023 · 4 comments
Open

Automatic Brightness #56

krzimmer opened this issue Nov 29, 2023 · 4 comments

Comments

@krzimmer
Copy link

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

@jnthas
Copy link
Owner

jnthas commented Nov 29, 2023

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

@krzimmer
Copy link
Author

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
Copy link
Author

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?

@jnthas
Copy link
Owner

jnthas commented Nov 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants