Monday, September 29, 2008
Touch Sensor Prototype 1
Here we tried a basic circuit to turn an LED on and off with a piezo vibration sensor. Pressure turns it on, release returns it to off. We created the code from scripts on the parallax website.
Here we hooked up the flexinol as an output. We also added a transistor to the circuit. Pressure on the sensor contracts the flexinol quite noticeably. We noticed the transistor got very hot while the circuit was powered. Did anyone else notice this during prototype 1? We aren't sure if this is a problem.

Touch Script:
' {$STAMP BS2}
' {$PBASIC 2.5}
TriggerPin PIN 0 ' Pin that gets the touch sensor input
Main:
LOW 15
IF TriggerPin = 0 THEN ledOn ' Check for trigger, if pressed turn on led/flexinol
DEBUG "off", CR ' else show off
PAUSE 1000
GOTO Main ' loop
ledOn:
DEBUG "ledOn Called", CR
HIGH 15 ' turn on led/flex attached to pin 15
PAUSE 2000
GOTO Main ' loop
Labels: flexinol, piezo, touch