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.