Gary Hoffmann
10-26-2009, 06:26 AM
Hello folks,
·
Looking at all these posts on here I am almost embarrassed to ask for help with my little (I guess ever so basic) project I am attempting to make to operate.· I have played with the BC1 about 8 years ago but since than have not had the chance to work/play with it again until now..
·
This is the project…· I am picking up a signal of a decoder board (remote door lock) .· There is only one pin of interest on this board and it either goes high or low and stays in that state, until the next lock/unlock command occurs.· This either high or low signal I would like to use to drive a transistor and related paraphernalia, it in itself also not a hard thing to do…
·
I have written the basic instructions as such that I have two inputs via dirs and 6 outputs…
Allow me to give a brief listing of where I am floundering…..
·
dirs = 0011111
·
if pin 0 = 0 than relay1
if pin 0 = 1 than relay1
·
relay1: high 5
Pause 1000
High 6
Pause 1500
Low 5
Low 6
·
Relay2:
·
High 4
Pause 1000
High 3
Pause 1500
Low 4
Low 3
·
·
Here is the problem…How can I stop the program from running continuesly once it “sees” a state of pin 0 ?· That is, the instruction should only be executed one time until another chance on pin 0 occurs.· The way it is now of course it runs and runs regardless of high or low on pin 0..··
·
Sorry guys/girls..basic stuff you say· ….
·
Thanks for the help
·
Gary
·
·
·
·
·
·
·
Looking at all these posts on here I am almost embarrassed to ask for help with my little (I guess ever so basic) project I am attempting to make to operate.· I have played with the BC1 about 8 years ago but since than have not had the chance to work/play with it again until now..
·
This is the project…· I am picking up a signal of a decoder board (remote door lock) .· There is only one pin of interest on this board and it either goes high or low and stays in that state, until the next lock/unlock command occurs.· This either high or low signal I would like to use to drive a transistor and related paraphernalia, it in itself also not a hard thing to do…
·
I have written the basic instructions as such that I have two inputs via dirs and 6 outputs…
Allow me to give a brief listing of where I am floundering…..
·
dirs = 0011111
·
if pin 0 = 0 than relay1
if pin 0 = 1 than relay1
·
relay1: high 5
Pause 1000
High 6
Pause 1500
Low 5
Low 6
·
Relay2:
·
High 4
Pause 1000
High 3
Pause 1500
Low 4
Low 3
·
·
Here is the problem…How can I stop the program from running continuesly once it “sees” a state of pin 0 ?· That is, the instruction should only be executed one time until another chance on pin 0 occurs.· The way it is now of course it runs and runs regardless of high or low on pin 0..··
·
Sorry guys/girls..basic stuff you say· ….
·
Thanks for the help
·
Gary
·
·
·
·
·
·