I am trying to design a relay-based data latch circuit with the fewest possible relays (not just building separate logic gates and string them together, which results in lots of redundancy), under the following constraints:
- The output must be driven to high voltage or driven to low voltage / ground, not floating.
- I should be able to string together a bunch of modules on the same power and ground rails without them interfering with each other.
- The output should be identical to the data line when enabled, and retain the last state of the last state of the data line when disabled.
- The enable line can function as on-high/off-low or on-low/off-high--either way is fine, as I can just swap the labels on two switch positions.
- The latch should operate on a 12v power supply.
I think this should be fairly easy with SPDT bistable latching relays--the output would be the common terminal of the latching relay, the switched terminals would connect to power and ground, a normal DPDT relay would connect the data line and inverse data line to the coil of the latching relay, disconnecting the data lines would leave it latched, and switching the data line between high and low while connected would change the direction of current flow in the latching relay, changing its state.
However, I would like to use transparent-case components, preferably with built-in indicator lights, for the sake of making it easy to inspect the system state, and I haven't been able to find bistable latching relays that fit that description. So, is there a simple way to do this with just regular non-latching SPDT relays? (And possibly some resistors and/or diodes? Or is there a good source for polarity-sensitive bistable latching relays that would meet my visibility needs?)


