KoyJa
08-21-2005, 02:06 PM
STAMP BS2P
REV 1.4
Relay Coto 2200-2301
ahaaa The Boss at my primary Job finally is going to let "The Network Admin" (Me) Do a STAMP project for work.
It appears we got a bunch of Bad relays recently .... with the 1 ms debounce time out of spec. I have been
looking through the BS Mauual and it looks like the COUNT command may do the trick .... here's my logic for how to implement
this :
1. SET P2 HIGH HIGH 2
the stamp to a 2n2222A which drives the coil
turning on the relay (Relay Closed). Output
of relay goes to PIN 3 Stamp (Pullup Resistor)
2. Set COUNT for 1 second to PIN 3 Stamp COUNT 3,1000,MyVar
Multipl MyVar * 1.20us Visual Basic APP
P2 HIGH 1 sec
|*****************************|
RELAY Bouncing
/\/\/\/\/***********************|
I would reach the 65535 threshold of MyVar if the Debounce
times was ~75ms. Im not sure what the pulse width of the bounce
is however Im thinking it doesnt mattter. Im Basicall just waiting for
it to end and making sure MyVar*1.2us <1ms. Am I in the general
Ballpark?
Thanks
mikey
Koy Ja !
REV 1.4
Relay Coto 2200-2301
ahaaa The Boss at my primary Job finally is going to let "The Network Admin" (Me) Do a STAMP project for work.
It appears we got a bunch of Bad relays recently .... with the 1 ms debounce time out of spec. I have been
looking through the BS Mauual and it looks like the COUNT command may do the trick .... here's my logic for how to implement
this :
1. SET P2 HIGH HIGH 2
the stamp to a 2n2222A which drives the coil
turning on the relay (Relay Closed). Output
of relay goes to PIN 3 Stamp (Pullup Resistor)
2. Set COUNT for 1 second to PIN 3 Stamp COUNT 3,1000,MyVar
Multipl MyVar * 1.20us Visual Basic APP
P2 HIGH 1 sec
|*****************************|
RELAY Bouncing
/\/\/\/\/***********************|
I would reach the 65535 threshold of MyVar if the Debounce
times was ~75ms. Im not sure what the pulse width of the bounce
is however Im thinking it doesnt mattter. Im Basicall just waiting for
it to end and making sure MyVar*1.2us <1ms. Am I in the general
Ballpark?
Thanks
mikey
Koy Ja !