How Can a 4-Input Controlled Relay Be Implemented?

  • Thread starter Bipolarity
  • Start date
  • Tags
    Relay
In summary: So, yes, the Selector is a better solution.In summary, the conversation discusses the implementation of a device that takes a 4-bit input string and a control input. If the control input is 1, the output is a 4-bit string, but if the control input is 0, the output is 0000. The conversation mentions using brute force logic with AND gates, but suggests using a Quadruple 2-Line to 1-Line Data Selector as a better solution. Another suggestion is to use resistor AND gates, although it may not be feasible for every logic family. The conversation concludes by discussing the option of using two inputs on the Selector for a better solution.
  • #1
Bipolarity
776
2
I am trying to implement the following device:
It takes a 4-bit input string, and a control input. If the control input is 1, the output is a 4-bit string. If the control input is 0, the output is 0000. What sort of device might make this possible? Obviously, brute force logic with AND gates works, but is there an easier method perhaps?

Thanks!

BiP
 
Engineering news on Phys.org
  • #2
Go with a Quadruple 2-Line to 1-Line Data Selector.

Connect your input string to the B inputs, and your "default" (0000) to the A inputs. This gives you the option of setting what you want your default to be if it might change.

If you want it as a fixed circuit and the 0000 has no chance of changing, you can just use 1 AND gate per bit. You can get quad AND gates in one chip pretty easily, so "brute force" logic isn't really that difficult.

Just wire your control signal to one input on each gate, and your input string to the other inputs. When the control signal is high:

A & 1 = A

So the bit is passed through. When the control signal is low:

A & 0 = 0

and the output is forced to be 0, no matter what the input string.
 
  • #3
If you're looking for an implementation of an actual 4-input relay (i.e. a relay that switches when anyone of four inputs goes high), you can just use blocking diodes: connect each input to the anode of a diode and connect all four of the diodes together and to the relay. This'll prevent shorting out of the other inputs. Pro-tip: put a flyback-diode across the relay to reduce back EMF (Google for flyback-diode to see the interpretation).

If you're handy with microprocessors / microcontrollers, a single low pin-count micro can now replace what used to be a small network of glue logic (albeit, at a little higher cost / complexity).
 
  • #4
Bipolarity said:
I am trying to implement the following device:
It takes a 4-bit input string, and a control input. If the control input is 1, the output is a 4-bit string.
The output being the same 4-bit string as the input, I presume?

If the input changes while control = 1, you want the output to immediately reflect that change?
 
  • #5
NascentOxygen said:
The output being the same 4-bit string as the input, I presume?

If the input changes while control = 1, you want the output to immediately reflect that change?

Yes I apologize for leaving that out. And yes, if control = 1, output must respond to changes in input.

BiP
 
  • #6
If the logic inputs are clean and of settable levels, and the input of the following stage is consistent and understood, you may be able to use resistor AND gates. Don't use this for a mission-critical stage, or something you are being paid to design for an employer. You'd need to have a good reason for using this dodge.

attachment.php?attachmentid=58025.png


Tailor input logic HIGH voltage to be towards the minimum usable. Make input 1 a data bit and input 2 the control. Choose R1 and R2 so that when either input is LOW, the junction voltage is below that recognized by the following gate as HIGH. The noise margin won't be as wide as otherwise.

This idea may not be feasible for every logic family.
 

Attachments

  • andgate.png
    andgate.png
    1 KB · Views: 607
  • #7
Jiggy-Ninja said:
Go with a Quadruple 2-Line to 1-Line Data Selector.

Connect your input string to the B inputs, and your "default" (0000) to the A inputs. This gives you the option of setting what you want your default to be if it might change.

If you want it as a fixed circuit and the 0000 has no chance of changing, you can just use 1 AND gate per bit. You can get quad AND gates in one chip pretty easily, so "brute force" logic isn't really that difficult.

Just wire your control signal to one input on each gate, and your input string to the other inputs. When the control signal is high:

A & 1 = A

So the bit is passed through. When the control signal is low:

A & 0 = 0

and the output is forced to be 0, no matter what the input string.

Good idea using two inputs (A & B). I was going to suggest the http://www.mouser.com/Search/Refine.aspx?Keyword=cd4016
 

1. What is a 4-input controlled relay?

A 4-input controlled relay is a type of electrical switch that can be controlled by four different input signals. It allows for multiple devices or circuits to be controlled by a single relay, providing a more efficient and versatile control system.

2. How does a 4-input controlled relay work?

A 4-input controlled relay works by receiving input signals from four different sources and using those signals to activate the relay, which then switches the connected circuit on or off. The inputs can come from various sources, such as sensors, buttons, or other electronic devices.

3. What are the benefits of using a 4-input controlled relay?

There are several benefits to using a 4-input controlled relay, including reduced wiring and control complexity, increased flexibility in controlling multiple devices, and improved reliability and safety. It also allows for more precise and customizable control of connected circuits.

4. Where are 4-input controlled relays commonly used?

4-input controlled relays are commonly used in industrial automation, home automation, and other control systems where multiple devices or circuits need to be controlled simultaneously. They are also used in automotive and aerospace applications for controlling various systems and functions.

5. How do you select the right 4-input controlled relay for a specific application?

To select the right 4-input controlled relay for a specific application, you need to consider factors such as the required voltage and current ratings, the types of input signals, the switching speed, and the environmental conditions. It is essential to choose a relay that can handle the specific requirements of the application to ensure proper and safe operation.

Similar threads

Replies
37
Views
3K
Replies
4
Views
2K
  • Electrical Engineering
Replies
6
Views
1K
  • Electrical Engineering
Replies
2
Views
1K
  • Electrical Engineering
Replies
12
Views
2K
  • Electrical Engineering
2
Replies
49
Views
5K
  • Electrical Engineering
Replies
16
Views
4K
  • Electrical Engineering
Replies
2
Views
4K
  • Electrical Engineering
Replies
4
Views
1K
Replies
4
Views
3K
Back
Top