First working prototype of my electronic fireflies. Using “Value Line” MSP430 from a TI Launchpad and a piezo sounder to detect tapping on the “jar”.
Originally, I planned to use capacitive sensing to cause a glow when the jar was held. But, I couldn’t get it working in a way which wouldn’t block visibility.
Are you using BCM here too? Looks neat. Would be an awesome idea for Halloween.
Yes. Same code as http://blog.hodgepig.org/2010/09/12/577/
The piezo buzzer is connected to a digital input pin with a 1M pullup.