Sirens and Finger Wagging

By combining what I’ve learned about switches and speakers, I rigged up a mini siren that sounds and blinks when alternating between two buttons.

(link to code)

Following this thread of somewhat obnoxious devices, I also made a “Nuh-Uh!” finger wagger. It reads the force applied to a force pressure sensor and maps that to the “speed” of rotation via changing the angle increment. Critical to the finger-wag motion was having the servo rotate in both directions (from 0 to 180 degrees and back from 180 to 0). By detecting whether the angle was at 180 or 0, I then either added or subtracted the increment value.

finger-wag

 

One thought on “Sirens and Finger Wagging

Comments are closed.