Tuesday, October 28, 2008

Touch Sensor Prototype 5: LED + Flexinol

Lisa Ekle, Pierre Gerlier, Keith Greenwald, Michael Walch




We set up a loop with 2 sensors for input and a LED and Flexinol for output. If one sensor is triggered alone, the LED turns on. If both sensors are triggered simultaneously, then the flexinol contracts.

Script:

' {$STAMP BS2}
' {$PBASIC 2.5}
' WIRING NOTES: PIN 15 controls flexinol,
' PIN 11 controls LED

TriggerPin0 PIN 5 ' Pin that gets the touch sensor input
TriggerPin1 PIN 6
TriggerCount VAR Byte
Main:
DO
LOW 11
LOW 15
TriggerCount = 0 IF TriggerPin0 = 1 THEN
TriggerCount = TriggerCount + 1 ' Check pin0, add to counter
DEBUG "sensor 0 on", CR
ENDIF
IF TriggerPin1 = 1 THEN
TriggerCount = TriggerCount + 1 ' Check pin0, add to counter
DEBUG "sensor 1 on", CR
ENDIF
IF TriggerCount >= 2 THEN ' Both on, turn on flexinol
HIGH 15
DEBUG "both sensors on", CR
PAUSE 1000
ELSEIF TriggerCount = 1 THEN ' Otherwise, turn on LED
HIGH 11
DEBUG "one sensor on", CR
ENDIF
PAUSE 1000
LOOP

Labels: , ,


Tuesday, October 21, 2008

Touch Sensor Prototype 4

Lisa Ekle, Pierre Gerlier, Keith Greenwald, Michael Walch



In this prototype we tested a thicker Flexinol wire (.015 HT) and an AC adapter.


Labels: , ,


Tuesday, October 14, 2008

Touch Sensor Prototype 3: Relay

Lisa Ekle, Pierre Gerlier, Keith Greenwald, Michael Walch

We experimented with a relay to get more power directly to the Flexinol. The Flexinol was unable to take the extra voltage. It produced smoke and quick abrupt movements. We will experiment with a thicker or longer Flexinol wire for our next prototype which will be able to withstand more voltage and will produce greater movement.

Labels: , , ,


Tuesday, October 7, 2008

Touch Sensor Prototype 2: 2 Touch

Lisa Ekle, Pierre Gerlier, Keith Greenwald, Michael Walch


In this prototype we used 2 piezo sensors as input to turn on/off a single LED. Both sensors must be touched to turn on the LED.


Script:

' {$STAMP BS2}
' {$PBASIC 2.5}
TriggerPin0 PIN 0 ' Pin that gets the touch sensor input
TriggerPin1 PIN 2
TriggerCount VAR Byte

Main:
LOW 15
TriggerCount = 0
IF TriggerPin0 = 1 THEN TriggerCount = TriggerCount + 1 ' Check pin0, add to counter
IF TriggerPin1 = 1 THEN TriggerCount = TriggerCount + 1 ' Check pin0, add to counter
DEBUG "sensor 0:", DEC TriggerPin0, CR
DEBUG "sensor 1:", DEC TriggerPin1, CR
DEBUG "count: ", DEC TriggerCount, CR
IF TriggerCount >= 2 THEN ledOn ' Check number of sensors on
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

Labels: ,


Tuesday, September 30, 2008

piezo buzzer input / output

we set up a system using piezo buzzers as both input and output. the input uses the piezo crystal's vibration sensor to trigger the output to make a noise. we had some difficulties finding the right code, and in the end, we were able to use another group's "touch sensor" program as a generic place to start. 

Here's the code:
' {$STAMP BS2}
' {$PBASIC 2.5}
TriggerPin PIN 0 ' Input Pin
Main:

LOW 15
IF TriggerPin = 0 THEN buzzit ' Check for trigger, if pressed turn on buzzer
DEBUG "off", CR ' show off
PAUSE 1000
GOTO Main ' loop
buzzit:
DEBUG "buzzIT", CR
HIGH 15 ' turn on piezo buzzer at pin 15
PAUSE 4000
GOTO Main ' loop


we were expecting the output buzzer to only trigger when the input was activated, however, this code seems to treat the input as more of an on/off switch.


the output buzzer also displayed some behavior that we're not quite able to explain. moving/touching the output was somehow disrupting the circuit and producing a strange/interesting noise effect. 



Leigha Dennis, Adam Brillhart, Eunsuk Bae, KoKo

Labels: , , , , ,


piezo buzzer test

in order to make sure that our radio shack piezo buzzer was compatible with the basic stamp homeboard, we downloaded a simple program that uses the buzzer to play midi ringtones. my guess is that the first song in the video is the star wars theme song... 

here's the link if you want to rock out midi-style. 

Labels: , , , , , , ,


Monday, September 29, 2008

Touch Sensor Prototype 1

Lisa Ekle, Pierre Gerlier, Keith Greenwald, Michael Walch






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: , ,


This page is powered by Blogger. Isn't yours?