Monday, October 15, 2007
ELEGON_prototype_03_postings
Team: Anond Adrian Arunsmith, Esther Chu, Gao Tian, Phuttipan Aswakool, Tao Liu
use TWO RELAYS and TWO OUTPUTS with modified CODE
For the third prototpye we connected two relays and two power sources (9-vott batteries) to create two different flexinol outputs. And by modifying the code, we created a sequence of movement for each output. When triggering the sensor, one prototype would move, then the second would move afterwards. This creates a rhythmic organic wavy movement.
prototype three with two outputs
Diagram of circuit with two relays, two battery sources and two outputs
Code for two outputs without infrarred input
'{$STAMP BS2}
'{$PBASIC 2.5}
DO
HIGH 2
PAUSE 1000
HIGH 8
PAUSE 1000
LOW 2
PAUSE 1000
LOW 8
PAUSE 1000
LOOP
Code with infrarred input and two outputs
'{$STAMP BS2}
'{$PBASIC 2.5}
INPUT 0'set pin 0 as input
PIR PIN 0 ' I/O Pin For PIR Sensor
counter VAR Byte ' Trip Counter
DEBUG CLS ' Clear DEBUG Screen
FOR counter=60 TO 0 'Wait 60 Seconds For PIR Warm-Up
DEBUG HOME,"WARMING UP:", DEC2 counter
PAUSE 1000'Display Counter Every Second
NEXT
counter = 0 'Clear Counter Variable
DEBUG HOME, "WAITING..." ' Display Waiting Message
Main:
DO
IF PIR = 1 THEN 'Motion Detected?
counter = counter + 1 ' Update Trip Counter
HIGH 2 ' power to flexinol wire
PAUSE 1000
HIGH 8
DEBUG HOME, "TRIPPED...", DEC3 counter
DO:LOOP UNTIL PIR = 0 'Wait For PIR To Clear
DEBUG HOME, "CLEARED...", DEC3 counter
LOW 2 ' turn off power to flexinol
PAUSE 1000
LOW 8
ENDIF
LOOP
use TWO RELAYS and TWO OUTPUTS with modified CODE
For the third prototpye we connected two relays and two power sources (9-vott batteries) to create two different flexinol outputs. And by modifying the code, we created a sequence of movement for each output. When triggering the sensor, one prototype would move, then the second would move afterwards. This creates a rhythmic organic wavy movement.
prototype three with two outputs
Diagram of circuit with two relays, two battery sources and two outputs
Code for two outputs without infrarred input
'{$STAMP BS2}
'{$PBASIC 2.5}
DO
HIGH 2
PAUSE 1000
HIGH 8
PAUSE 1000
LOW 2
PAUSE 1000
LOW 8
PAUSE 1000
LOOP
Code with infrarred input and two outputs
'{$STAMP BS2}
'{$PBASIC 2.5}
INPUT 0'set pin 0 as input
PIR PIN 0 ' I/O Pin For PIR Sensor
counter VAR Byte ' Trip Counter
DEBUG CLS ' Clear DEBUG Screen
FOR counter=60 TO 0 'Wait 60 Seconds For PIR Warm-Up
DEBUG HOME,"WARMING UP:", DEC2 counter
PAUSE 1000'Display Counter Every Second
NEXT
counter = 0 'Clear Counter Variable
DEBUG HOME, "WAITING..." ' Display Waiting Message
Main:
DO
IF PIR = 1 THEN 'Motion Detected?
counter = counter + 1 ' Update Trip Counter
HIGH 2 ' power to flexinol wire
PAUSE 1000
HIGH 8
DEBUG HOME, "TRIPPED...", DEC3 counter
DO:LOOP UNTIL PIR = 0 'Wait For PIR To Clear
DEBUG HOME, "CLEARED...", DEC3 counter
LOW 2 ' turn off power to flexinol
PAUSE 1000
LOW 8
ENDIF
LOOP
Labels: elegon