Back to Parent

Practice Exercise: Combining Sensors and Inputs

The final challenge for week 2 is the exercise to combine sensors and inputs. I came up with a system as follows:

The system will start when the ambient light drops to a certain level. The LED will be lit. 

The starting point of the brightness of the LED will compensate for the ambient light drop.

Then we can use the potentiometer to adjust the brightness to achieve a personal ideal level for lighting comfort.

Other than that, I set up the FSR sensor for temporarily raising the brightness and system shutdown - if the force reading is less than 2000, i.e., we press the FSR sensor slightly, the LED will light up to its maximum brightness for 2 seconds. If the force reading is larger than 2000, then pressing the FSR sensor will shut down the system, namely turn off the LED>

The system can work as a personal lighting system in office space. When sunset is approaching and the ambient light is not sufficient, the personal lighting fixture will turn on. The occupant will be able to adjust its brightness by using the rotating button. However, if there is a task that requires high illuminance, the occupant can touch the button to temporarily raise the brightness of the lighting fixture for work. If the occupant would like to turn off the personal lighting system, they can press the button to do so. This system is handy and already being applied in the industry.

The setup is below. I also attach the code and demonstration video.


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0