Home / Smart Hardware

The photoresistor controls the LED light

time:2025-05-29 09:01:15 Smart Hardware

 The photoresistor controls the LED brightness

The principle of photoresistor to control the brightness of LEDs is to sample the light changes through the photoresistor, and then control the brightness of the LED lamp according to the sampling results. The resistance of a photoresistor decreases as the light intensity increases. In a photoresistor, a change in light affects a change in resistance, resulting in a change in the voltage collected by the ADC interface. The single-chip microcomputer judges whether it is day or night by the collected voltage digital quantity, and when it is dark, the control IO port outputs a high level to light up the LED light; During the day, the output of the IO port is low, and the LED light is not on. In this way, when the light is bright during the day, the LED light is not lit; The effect of LED lights lighting up at night when the light is low.

《The photoresistor controls the LED light》 This does not represent the views of this website. If there is any infringement, please contact us to delete it.

Ranking

Digital Insights