Description:
After completeing the piezo lab assignments with the speaker and the theramin, I moved onto the homework assignment to create a coincident interaction. Looking aorund my kitchen I found a small ceramic fish that my wife uses as a change holder. I wanted to insturment the mouth of the fish such that a song or alarm plays when you reach inside for a coin.
With the photo-diode and an opposing LED, I quickly created a motion gate sensor. The red LED was set to 255 but reflection was minimized by the matte ceramic interior. Placing a consistent light source -the red LED- inside the fish made the object robust to external lighting conditions; it also added a nice glow. The photo-diode was read with a 10k Ohm resistor in a voltage divider circuit. For brevity, I simple taped the two pieces to the corners of the mouth. When the user reaches inside the small opening, a serial value on the photo-diode changes from approx. 850 to approx 750, giving me a clear threshold to play the piezo speaker.
For coincidence sake, I placed the speaker behind the carp but in an actual object (3D printed possibly) the wiring could be routed through the tail and the speaker placed under the coins for a muffled, gurgling effect. Another coincident interaction could be a mouth that creepily closes around your fingers when you grab coins.
Materials:
- Arduino Uno & Computer
- Wiring
- Tape
- Red LED
- 220 Ohm Resistor
- Piezo speaker
- Photodiode
- 10k Ohm resistor
- Red Ceramic Carp - preferably Italian-made
Code:
Attached in file
- Login to post comments