I'm trying to build a circuit around an existing switch that allows another component to override the switch state. (Our component is a computer and the feature we're trying to build is remote-activation).
I want the "ON/OFF" state to reflect the last thing to toggle the state. (i.e. If the switch is "on", our component can logically turn it off. If the switch is toggled off, nothing happens, then if the switch is toggled back on it turns on).
I control both sides of the switch and I have two "short to ground" switches (controlled by our component).
I don't want to depend on either of the two switches being held closed for ON mode (i.e. The short to ground switches should work like push button switches). This is so that software failures/resets on our component won't accidentally set the mode to OFF.
I'm pretty sure I can do this with some mosfet latching circuits but I'm quite novice at electronic design. Any suggestions are appreciated!
Edit: here's some more clarifying info:
Here's somea state transitions that better describe my desired behaviordiagram of what I want. Both B.1 and B.2 should only even be pulsed closed, so they can't be counted on to be held closed to achieve a desired state.
State-> A:open Notably, OUT:0V
Actionthe desired behavior is edge-> pulse B.1 closed (remote activation, overridestriggered by the switch)
State-> A:open, OUT:12V
Action-> toggle A
State-> A: closed, OUT:12V (no changes to OUT)
Action-> open A
State-> A: open, OUT:0V (local override, turn off)
Similar for deactiviation state.
State-> A:closed, OUT:12V
Action-> pulse B.2 closed (remote deactivation, overrides switch)
State-> A:closed, OUT:0V
Action-> toggle A
State-> A:open, OUT:0 (no changes to OUT)
Action-> toggle A
State-> A:closed, OUT:12V (local activate, overrides remove deactivate)