solvejskovlund
- 58
- 2
I'm need to control a relay in three ways:
1: Forced OFF signal. This is a signal triggered from a MC that I have no access to change. It is a 1 wire output that is normally floating, and pulled to ground for exactly 1 minute when the MC has detected that the relay should turn off. Important thing here is that the relay does not come back to ON when the MC stops pulling the signal low (would have been a lot easier if the MC kept the wire pulled to ground as long as the forced OFF situation was valid.)
2: Release forced OFF signal. This is a 1 wire output from the MC that is normally floating, and pulled to ground for 1 minute when the MC decides it is ok to turn the relay on
3: manual ON/OFF signal by push button or an on / off switch. When this switch is pressed / switched OFF, the relay should go OFF. When this button is pressed / switched to ON, the relay should turn ON if the last signal from the MC was 2 (release). The button should be ignored if the last signal from the MC was 1 (force OFF). If manual switch is in ON position when signal 2 (release) is sent from MC, the device should NOT switch ON. Only the manual ON signal should turn the relay ON.
And to make this even more complicated, this device has to remember "force off" through a power outage. (It will no receive new signals during power outage.)
So, this control unit basically has 4 states:
"Force OFF" (triggered by 1. Must be remembered through power outage)
"ok to turn on" (triggered by 2 or OFF by manual switch)
"ON" (triggered by manual switch)
Does such a device exist? If so, what would be the proper search terms to find it?
I'm thinking one way to approach this could be to connect devices in series like this:
power positive -> relay coil -> manual ON/OFF switch -> device that decodes MC signal -> GND
With such a connection scheme, the device could be simplified to have signal 1 to turn ON, signal 2 to turn OFF. The manual switch in this case would have to be like those used on power tools that ensures that the tool does not restart after power outage.
Any better options?
1: Forced OFF signal. This is a signal triggered from a MC that I have no access to change. It is a 1 wire output that is normally floating, and pulled to ground for exactly 1 minute when the MC has detected that the relay should turn off. Important thing here is that the relay does not come back to ON when the MC stops pulling the signal low (would have been a lot easier if the MC kept the wire pulled to ground as long as the forced OFF situation was valid.)
2: Release forced OFF signal. This is a 1 wire output from the MC that is normally floating, and pulled to ground for 1 minute when the MC decides it is ok to turn the relay on
3: manual ON/OFF signal by push button or an on / off switch. When this switch is pressed / switched OFF, the relay should go OFF. When this button is pressed / switched to ON, the relay should turn ON if the last signal from the MC was 2 (release). The button should be ignored if the last signal from the MC was 1 (force OFF). If manual switch is in ON position when signal 2 (release) is sent from MC, the device should NOT switch ON. Only the manual ON signal should turn the relay ON.
And to make this even more complicated, this device has to remember "force off" through a power outage. (It will no receive new signals during power outage.)
So, this control unit basically has 4 states:
"Force OFF" (triggered by 1. Must be remembered through power outage)
"ok to turn on" (triggered by 2 or OFF by manual switch)
"ON" (triggered by manual switch)
Does such a device exist? If so, what would be the proper search terms to find it?
I'm thinking one way to approach this could be to connect devices in series like this:
power positive -> relay coil -> manual ON/OFF switch -> device that decodes MC signal -> GND
With such a connection scheme, the device could be simplified to have signal 1 to turn ON, signal 2 to turn OFF. The manual switch in this case would have to be like those used on power tools that ensures that the tool does not restart after power outage.
Any better options?