First I tried to simply turn the led on and off when the piezo detects vibration to a certain degree, but found the light keep flashing quickly. I thought this might be because I couldn't get an accurate handle on the voltage range of the piezo element, so I fixed its range using map() and brightened the initial brightness of the bulb to make it easier for me to see if it's on or not, rather than only relying on looking at the switch.
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .