I designed a very simple toy by combining the FSR and the piezo speaker. I folded a tiger mask (designed by Jun Maekawa) and slotted the FSR into the nose. The piezo speaker is hidden in folds in the back of the model. When the user presses the nose, the speaker creates a low sound. The code is a modified version of the theremin example code.
ASSIGNMENT
Connect a Force Sensitive Resistor (FSR) and create and Arduino program to transmit the FSR input value from the Uno to Processing where it can be received and used as a value in a drawing program.
In addition, create a unique hardware piece to apply pressure to the FSR.
MATERIALS USED
1 FSR, 1 10k ohm resistors, 2 buttons, 2 foam ear plus, 1 rubber band
ARDUINO CODE
* by David A. Mellis
* modified 14 Apr 2009
* by Tom Igoe and Scott Fitzgerald
*
* This example code is in the public domain.
*
* http://www.arduino.cc/en/Tutorial/Graph
*/
I've used my Arduino serial output to control the branching angle of a recursive tree in Processing.
Materials: Arduino, resistors, FSR
Used the force sensor to pause or unpause a video that is being played.
Processing code
Processing code
/*
Modified code based on source from
http://cs.unk.edu/~csis495/2011/02/helicopter-game-workshop/
*/
Mechanical part - donation piggy bank that calculate money in the bank according to the weight (FSR)
and displays it as strength of a led
Our tangible interface makes it possible to display, swipe through, turn and zoom into images tangibly. We used Arduino, some physical parts and a bit of VB.NET code. (VB code is attached as a zip file)
Arduino code: