Content of the invention
Higher for solving said system system power dissipation, easily it is subject to disturbance, line is complicated, and controller I/O port uses in a large number, device
The shortcomings of high cost, the present invention proposes a kind of array control device being applied to scanning switch internal relay, that is, adopt
Relay coil port is linked together by the mode of array, the closure of control relay, disconnected in the way of ranks cross-over control
Open.
The present invention the taken technical scheme that solves the above problems is:
The present invention is included by the relay array of relay arrangement;It is located at high with all coils in a line relay
End link together after as row control end, positioned at all coils low side in same row relay link together after as row
Control end;The parallel-by-bit control signal of controller is connected to each row control end through the first driver input, controller parallel
Row control signal is connected to each row control end through the second driver input.
Described relay is ordinary electromagnetic relay, has a closure control coil:With all in a line relay
As a line control end after the connection of coil high side cascode;All coils low side in same row relay is all connected in series rear conduct
String control end.
Described relay is magnetic freeze mode relay, has a closure control coil and a disconnection control coil:
As a line control end after connecting with the coil high side cascode of closure control coils all in a line relay, with a line relay
In all disconnect control coils coil high side cascode connect after as another row control end;All coils in same row relay
Low side be all connected in series after as string control end.
Each coil of described relay is high-end to be all in series with diode or described relay and row control end between
All it is in series with diode between each coil low side and row control end of device.
Between described controller and the first driver, between controller and the second driver, it is serially connected with isolation optocoupler.
The first described driver or the second driver are set or the integrated form driver of single driver.
Described controller is powered using different electrical power with the first driver, and the first driver and the second driver are adopted
It is powered with same power supplies.
The first described driver is the Darlington transistor of positive-negative-positive, the audion of positive-negative-positive or p-type field effect transistor;Described
Two drivers are the Darlington transistor of NPN type, the audion of NPN type or N-type field effect transistor.
Described relay is open type, closed type or conversion type.
Its advantage of the present invention is:
Using the present invention, the relay of multiple quantity is driven to only need to the driver of negligible amounts, and negligible amounts
I/O port, greatly reduces device cost and wiring difficulty.
The power-off of relay drive circuit, when relay does not work, can be reduced power consumption and interference by the present invention.
The present invention realizes the electrical isolation between MCU and relay drive circuit by optocoupler, decreases system interference, improves
System stability.
Brief description
Fig. 1 is traditional scanning switch repeat circuit control circuit structural representation.
Fig. 2 is the coil high and low end schematic diagram of ordinary electromagnetic relay of the present invention.
Fig. 3 is the coil high and low end schematic diagram of magnetic freeze mode relay of the present invention.
Fig. 4 is the attachment structure schematic diagram of circuit of the present invention.
Fig. 5 is embodiment of the present invention relay unit array structure schematic diagram.
Fig. 6 is embodiment of the present invention driver attachment structure schematic diagram.
In figure:1st, controller, 2, isolation optocoupler, the 3, first driver, 4, row control end, 5, relay array, 6, two poles
Pipe, 7, row control end, the 8, second driver, 9, relay drive circuit power supply, 10, controller power source, 11, coil high-end, 12,
Coil low side, 13, closure control coil, 14, disconnect control coil.
Specific embodiment
The invention will be further described with reference to the accompanying drawings and examples.
As shown in figure 4, the present invention is included by the relay array 5 of relay arrangement;It is located at in a line relay
All coils high-end 11 link together after as row control end 4, all coils low side 12 in same row relay
As row control end 7 after linking together;The parallel-by-bit control signal that controller 1 produces is connected to through the first driver 3 input
Each row control end 4, controller 1 produces and ranks control signal is connected to each row control end through the second driver 8 input
7.
Relay in above-mentioned relay array 5 can also be the relay unit that multiple relays compose in parallel, coil
High-end 11 and coil low side 12 be the plurality of logical action identical relay total port of obtaining of coil port parallel connection, relay
The coil high-end 11 of each relay in device unit or coil low side 12 are in series with diode 6.
As shown in Fig. 2 relay is ordinary electromagnetic relay, there is a coil, array forms the relay of M row × N row
Device array 5:As a line control end 4 after being connected in series with all coils in a line relay high-end 11, the relay of M row × N row
Row control end 4 in device array 5 has M altogether, is connected with controller 1 by M road the first driver 3;In same row relay
All coils low side 12 be all connected in series after as string control end 7, row control end 7 has N number of altogether, is driven by N road second
Dynamic device 8 is connected with controller 1.
As shown in figure 3, relay is magnetic freeze mode relay, there is a closure control coil 13 and a disconnection controls
Coil 14, array forms the relay array 5 of M row × N row:Coil with closure control coils 13 all in a line relay is high
End 11 is gone here and there as a line control end 4, the coils high-end 11 with disconnection control coils 14 all in a line relay after being connected in series
As another row control end 4 after connection connection, row control end 4 has 2M altogether, by 2M road the first driver 3 with controller 1 even
Connect;In same row relay, all coils low side 12 of closure control coil 13 and disconnection control coil 14 is made after being all connected in series
For string control end 7, row control end 7 has N number of altogether, is connected with controller 1 by N road the second driver 8.
All it is in series with diode 6 between each coil high-end 11 of relay and row control end 4.Or as shown in figure 4, continue
All it is in series with diode 6 between each coil low side 12 and row control end 7 of electrical equipment.
Between controller 1 and the first driver 3, between controller 1 and the second driver 8, it is serially connected with isolation optocoupler 2, reduce
Electrical Interference, as shown in Figure 4.
First driver 3 or set or integrated form driver that the second driver 8 is single driver.
Controller 1 is powered using different electrical power with the first driver 3, and the first driver 3 and the second driver 8 adopt
Same power supplies are powered.Controller power source 10 is powered for controller 1, and relay drive circuit power supply 9 is the first driver 3 He
Second driver 8 is powered, and controller power source 10 is separate with relay drive circuit power supply 9, can be single when relay is failure to actuate
Solely close drive circuit power supply 9.
First driver 3 is the Darlington transistor of positive-negative-positive, the audion of positive-negative-positive or p-type field effect transistor;Second driver 8 is
The Darlington transistor of NPN type, the audion of NPN type or N-type field effect transistor.
Relay is open type, closed type or conversion type.
The present invention according to the high and low end in relay coil port, is divided into M group by high-end for relay coil, each group high-end
M row control end of the composition that links together;The low side of relay coil port is divided into N group, each group of low side is connected to one
Rise and constitute N number of row control end.Control end after packet constitutes the array of M row × N row, and the M road parallel-by-bit that controller produces controls
The M row control end that signal passes through M road driver and controlled relay corresponds and is connected, the N road of controller generation ranks
Control signal is passed through N road driver and is connected with N number of row control end one-to-one corresponding of controlled relay.
The operation principle of the present invention is as follows:
By be simultaneously connected with Fig. 4 the 1st row control end, the 2nd row control end, as a example the control of the relay of the 1st row control end:
When the row control signal output port 1 of controller exports logic level " 0 " with row control signal output port 1 simultaneously, and other
When 2M-1 road row control signal delivery outlet and N-1 road row control signal delivery outlet export logic level " 1 ", because light is symplectic simultaneously
In the back action of logical signal, and 2M road driver is different from N road driver input-output characteristic, leads to controlled M row × N row
The first row control end input logic level " 1 " of relay array, other 2M-1 road row control ends are in vacant state, and row control
Hold 1 input logic level " 0 ", other N-1 road row control ends are in vacant state.After of short duration time delay, all controls of controller
Signal output port processed all exports logic level " 1 ", and now all row control ports and row control port are in vacant state,
So produce a direct impulse, final relay closure in closure control coil.In the same manner, when the row control signal of controller is defeated
Exit port 2 and row control signal output port 1 export logic level " 0 " simultaneously, and other 2M-1 road row control signal delivery outlets
Export logic level " 1 " with N-1 road row control signal delivery outlet simultaneously, after of short duration time delay, all control signals of controller
Output port all exports logic level " 1 ", then disconnect and produce a direct impulse in control coil, and final relay disconnects.?
Other relays in array during this actuating of relay are all failure to actuate.
Additionally, with the presence of isolation optocoupler between controller and driver, making signal between the two not interfere with each other.Controller power source
Separate with relay drive circuit power supply, drive circuit power supply can be closed when relay is failure to actuate, with reduce energy consumption with
Interference, improves system stability.
Embodiments of the invention and its be embodied as work process:
, this scanning switch comprises controller, isolation optocoupler, the first driving taking the dual pathways 16 tunnel four line scanning switch as a example
Device, the second driver, relay array and power management module.Wherein controller selects STC Corporation to produce
IAP15F2K61S2 type single-chip microcomputer;The TX2-L2-5V twin coil magnetic freeze mode relay that MAT produces selected by relay
Device;The UDN2982LW-- positive-negative-positive integrated form eight that first driver is produced from Allegro Micro system company reaches woods
Transistor array;Second driver reaches woods from the ULN2803LW--NPN type integrated form eight that ON Semiconductor Corporation produces
Transistor array;Isolation optocoupler selects the TLP521-4 type four tunnel independence optocoupler that Toshiba Corp produces.Controller power source
Managing chip selects the TPS7A4901 linear voltage regulator that TI company produces, and drive circuit power management chip selects Guangzhou gold to rise
The WRB0509S-3WR2 type DC-DC power module that positive company produces;Scanning switch is powered using 6V DC voltage adaptor device.
Scanning switch has two output channels and is respectively passage A and passage B, and 16 input channels are respectively passage 1 ~ logical
Road 16, each passage comprises 4 threads.Taking switch to A1 passage as a example, by control relay break-make so that passage A with
Four thread mutual conduction of passage 1, and other A paths are not turned on.Due to the total A1 ~ A16 of passage switching, B1 ~ B16 amounts to
32 selections, so need 128 magnetic freeze mode relays.Wherein, four relay control logic phases of same passage are belonged to
With so four relays are formed side by side a relay unit.The high-end string of closure control coil of wherein all relays
Form a total closure control coil high-end after connection;Always form one after the disconnection control coil high side cascode of all relays
Disconnection control coil high-end;The coil low side of all relays connect again after concatenating a diode respectively formed one total
Coil low side.In the way of Fig. 5, with a relay unit as least unit, it is arranged in the relay unit of 4 row × 8 row
Array.The relay unit array of this 4 row × 8 row has 8 row control ports, 8 row control ports.
Relay implement body control mode is as follows:Taking switch to A1 passage as a example, the corresponding relay unit of A1 passage is respectively
Connect to the 1st row control end, the 2nd row control end, the 1st row control end.When closing A1 passage, it is parallel that controller exports 8 tunnels
Row control signal 01111111,8 tunnels ranks control signal 01111111.Because optocoupler is for the back action of logic level,
The input signal making the first driver is 10000000, and the input signal of the second driver is 10000000.First driver
As shown in Figure 6 with the mode of connection of the second driver.For the first driver, when input logic level " 1 ", it exports logic
Level " 1 ";When input logic level " 0 ", it no exports;For the second driver, when input logic level " 1 ", it is defeated
Go out logic level " 0 ";When input logic level " 0 ", it no exports.Different from the second driver just because of the first driver
Input-output characteristic so that signal in the 1st row control end is logic level " 1 ", and other row control ends are hanging shape
State;Signal in 1st row control end is logic level " 0 ", and other row control ends are vacant state.Now A1 passage corresponds to
The closure control coil of relay unit on have electric current to flow through, all relays closure of this relay unit.Due to selecting
Magnetic freeze mode relay closure only need to pulse current, so relay close after, all control signals of controller
Delivery outlet all exports logic level " 1 ", and so, all row control ports and row control port are vacant state, and now this continues
Electric current is not had to produce in the closure control coil of electric appliance unit.
When disconnecting A1 passage, controller exports 8 road parallel-by-bit control signals 10111111,8 tunnels ranks and controls letter
Number 01111111.After optocoupler and the second driver, the signal in the 2nd row control end is logic level " 1 ", and other row
Control end is vacant state;Signal in 1st row control end is logic level " 0 ", and other row control ends are hanging shape
State.Now electric current is had to flow through on the disconnection control coil of the corresponding relay unit of A1 passage, all of this relay unit continue
Electrical equipment disconnects.Equally, in order to reduce coil heating amount, after relay disconnects, all control signal delivery outlets of controller
All output logic level " 1 ", so, all row control ports and row control port are vacant state, now this relay list
Electric current is not had to produce in the closure control coil of unit.
In passage A1 corresponding relay unit action, other relay units are all failure to actuate.If desired from passage A1
When switching to other passages such as A2 passage, disconnected the relay unit of A1 passage first, be closed again the corresponding relay of A2 passage
Device unit.When the relay unit of action in need be finished after, close drive circuit power supply, with reduce energy consumption with dry
Disturb.Actual test obtains, and the maximum instantaneous electric current of the dual pathways 16 tunnel four line scanning switch is 0.5A, and maximum instantaneous power is 3.5W,
After passage switching finishes, instrument enters standby mode, and stand-by power consumption is 0.4W.
Thus, present invention achieves the control of internal 128 relays of the dual pathways 16 tunnel four line scanning switch only needs to 2
Integrated form darlington transistor array and 16 I/O ports, greatly reduce device cost and wiring difficulty, and can drive relay
The power-off on galvanic electricity road, reduces power consumption and interference, has prominent significant technique effect.
Above-mentioned specific embodiment is used for illustrating the present invention, rather than limits the invention, in the essence of the present invention
In god and scope of the claims, any modifications and changes that the present invention is made, both fall within protection scope of the present invention.