Question: Your task is to simulate a small Light system touch. The idea is to have a light system that turns on and off with each

Your task is to simulate a small "Light system touch". The idea is to have a light system that turns on and off with each touch. For example, when the sensor (piezoelectric) is touched the first time, one or more of the lights turn on (and perhaps others turn off). Then, the second time, maybe all the lights go out. The third time, some (or all) are lit, and so on, turning on and off alternately, according to some animation that you want to achieve. For this part it uses ONE RGB LED. You have all the freedom to generate the animation you want for this part (you can even use PWM to achieve fading effects in some of the lights!), But using the piezoelectric sensor and the RGB led. Hint: You need to UNDERSTAND how the sensor is behaving to model, according to the response of your sensor, a behavior that will guarantee what you want (alternate lighting, fading or any other animation). Given the analog nature of the response of the sensor, if you have problems with the "rebounds" of the sensor (for example, that in a single "touch" several "touches" are detected), look for a way to only take a single touch generate your sketch in arduino.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!