Sound Activated Lamp
We all strive to save energy where we can, especially when those festive lights keep your home’s power meter seemingly spinning out of control.
A great way to save energy is to be smart about it. The Sound-Activated Lamp project demonstrates this by turning on lights when sounds are detected (e.g., in the presence of people), and then automatically turns off the lights after a period of no sound.
This project includes two C modules: the first module defines a kernel-level driver that sets up an IRQ handler for detecting sound. The second module contains the main() loop that repeatedly reads the sound value from the lamp driver and toggles the lamp accordingly.
Using this project, you can automate the activation of lights in certain areas of your home based on occupancy, all while learning about kernel-level Linux code.
Comments
Post a Comment