Questions And Answers

More Tutorials

Raspberry Intelligent Light

Sound Sensor and Light Sensor

The realization of sound-controlled light and light-controlled light would be impossible to achieve without the help of a sound sensor and light sensor. First of all, let's review their functions.

Sound Sensor

The main component of the sound sensor is a microphone, which can detect sound from the environment and convert it
into a corresponding analog signal output. It is widely used in mobile phones, tape recorders, sound-controlled lighting, medical equipment, noise detection, etc.

The light sensor integrates a high-sensitivity photodiode LS06-S photoresistor to detect the light intensity in the
environment. When the light intensity increases, the resistance across the photoresistor decreases, and the output analog quantity increases. It is widely used in mobile phones, laptops, displays, televisions, and other applications where the backlight brightness of the screen needs to be automatically adjusted.

When the sound sensor and the light sensor are combined with lights, sound-controlled and light-controlled intelligent lights can be achieved.In sound-controlled lighting, the sound wave generated in the environment makes the electret film on the sound sensor vibrate, resulting in the change of capacitance, and generating a small voltage. This voltage is then converted into 0-5V voltage and accepted by the controller after ADC, so as to control the light on and off.

In light-controlled lighting, the photoresistor of the light sensor adjusts the resistance value according to the light intensity in the environment. When the light intensity is larger, the resistance value decreases and the analog value of the light sensor output is larger. We can control the light on or off or brightness according to this value.


In this page (written and validated by ) you learned about Raspberry Intelligent Light . What's Next? If you are interested in completing Raspberry tutorial, your next topic will be learning about: Raspberry RGB LED ws2813 mini.

Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue:

Share On:

Mockstacks was launched to help beginners learn programming languages; the site is optimized with no Ads as, Ads might slow down the performance. We also don't track any personal information; we also don't collect any kind of data unless the user provided us a corrected information. Almost all examples have been tested. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. By using, you agree to have read and accepted our terms of use, cookies and privacy policy.