relay and boe
firealarmfreak
Posts: 105
I have made a circuit for a button and programmed it as follow:
DO
IF (IN10 = 1) THEN GOTO "label".
lOOP
In that case, when the button is pressed, it will go to whatever label i specified.
Is it possible to replace the switch with a relay? So when the relays coils are deenergized, the NC closes and causes IN10 to = 1, and causes it to branch off to that specified label?
In other words, instead of pressing a button, just using a relay to switch on and off.
?
I want this so i can use an LCD display--so it will display a message if the relay is denergized.
Chris.
DO
IF (IN10 = 1) THEN GOTO "label".
lOOP
In that case, when the button is pressed, it will go to whatever label i specified.
Is it possible to replace the switch with a relay? So when the relays coils are deenergized, the NC closes and causes IN10 to = 1, and causes it to branch off to that specified label?
In other words, instead of pressing a button, just using a relay to switch on and off.
?
I want this so i can use an LCD display--so it will display a message if the relay is denergized.
Chris.
Comments
chris.
I see that I left out the pushbutton, but I'm sure you can supply it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
There'll be a brief period of no voltage (a "glitch") when the contacts change and the Stamp could reset.
You have a number of Subjects about "switching between 9V and 12V":
http://forums.parallax.com/showthread.php?p=760234
http://forums.parallax.com/showthread.php?p=757367
http://forums.parallax.com/showthread.php?p=758823
http://forums.parallax.com/showthread.php?p=755624
POST EDIT 11/13/08:· I'm sticking·with my "policy" of answering members' questions as stated.··I may decide to answer a question with a question.· Notwithstanding, if somebody's question is about relays then I'll give an answer about relays.
Post Edited (PJ Allen) : 11/14/2008 12:59:54 AM GMT
In general, you can use diodes to connect redundant power supplies and isolate them from each other.· See the figure.· You could have two power supplies, as shown in this figure, or two thousand power supplies, it doesn't matter.· Whichever one puts out the greatest voltage wil be the one feeding the load at any given time.
In the case of a wall wart, it almost certainly has a diode inside (that's how it rectifies the current it supplies), so the leftmost diode can be omitted.
There will be no interruption at all in power to the load when any supply quits.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i
The attached drawing shows a 4 input power monitor. If you only have two, replace the ADC0834 with an ADC0832.