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

Explanation of Light Sensor Values #25

Open
acircleda opened this issue Aug 31, 2024 · 0 comments
Open

Explanation of Light Sensor Values #25

acircleda opened this issue Aug 31, 2024 · 0 comments

Comments

@acircleda
Copy link

After setting up the clock and getting the clock to behave the way I want (dim slightly as it gets dark, brighten as the room is brighter), I realize I do not have a firm understanding of how these values work. For me, the LIGHT_SENSOR_SENSITIVITY made the most sense in terms of how it affected brightness, but still not sure of the range (0-255) and how that translates to control. Similarly, what are the ranges of the min and max and how does that affect the brightness?

	 * \brief AnalogRead value if the light sensor reads complete darkness
	 */
	#define LIGHT_SENSOR_MIN			3000

	/**
	 * \brief AnalogRead value if the light sensor reads the brightest
	 */
	#define LIGHT_SENSOR_MAX			0

	/**
	 * \brief Value between 0 and 255 that determines how much the light sensor values can influence the led brightness
	 */
	#define LIGHT_SENSOR_SENSITIVITY	30
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

1 participant