Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of ad hoc network color lamps based on the control of power supply line edge signal
Device and color lamp system.
A kind of ad hoc network color lamp device based on the control of power supply line edge signal, comprising:
Edge signal generator, for generating edge signal and exporting the edge signal load on the power line;
Several LED modules, each LED module include a LED lights group and are used to be driven according to power supply line edge signal
The LED driver of the LED lights group;
The edge signal generator is equipped with networking control terminal, for receiving networking control signal to control ad hoc network color lamp
The operating mode of device;
Ad hoc network color lamp device has two operating modes of host mode and slave mode, under slave mode, edge
Signal generator generates edge signal according to the reference signal of input;Under host mode, edge signal generator is according to pre-
If basis signal formed edge signal.
As a kind of way of realization, the edge signal generator is equipped with defeated for receiving the reference signal of reference signal
Enter end.
The reference signal input terminal is also connected with a reference signal generation module, for according to corresponding outer signal
(outer signal for referring to the input of reference signal generation module) generates reference signal.
In practical application, can be by carrying out circuit design to reference signal generation module to generate need according to outer signal
The reference signal wanted.
When the voltage magnitude of the outer signal for generating reference signal and the reference signal of edge signal generator input
When the voltage magnitude that end allows mismatches, the reference signal generation module includes voltage transformation module, corresponding for making
The voltage magnitude of outer signal is transformed to the first preset value.The size of first preset value allows according to reference signal input terminal
Voltage magnitude setting, may be generally equal to the voltage magnitude of the permission.
Alternatively implementation, the edge signal generator also serve as reference signal with networking control terminal and input
End, and the networking control signal received with networking control terminal also serves as reference signal.
The networking control terminal is also connected with networking control signal generation module, for according to corresponding outer signal
(outer signal for referring to networking control signal generation module input) generates networking control signal.
In practical application, circuit design can be carried out with raw according to outer signal by controlling signal generation module to networking
Signal is controlled at the networking of needs.
The networking control signal generation module includes voltage transformation module, for making the voltage of corresponding outer signal
Amplitude transformation is the second preset value.
When the networking of the voltage magnitude and edge signal generator of the outer signal for generating networking control signal controls
When the voltage magnitude that end allows mismatches, the networking control signal generation module includes voltage transformation module, for making phase
The voltage magnitude for the outer signal answered is transformed to the second preset value.The size of second preset value allows according to networking control terminal
Voltage magnitude setting, may be generally equal to the voltage magnitude of the permission.
The voltage transformation module is realized based on current limliting bleeder circuit.Voltage transformation module at this time is suitable for reference to letter
Voltage transformation module in number generation module and networking control signal generation module.
Preferably, the current limliting division module includes the 3rd resistor being connected in series, the 4th resistance, and with 3rd resistor
With at the concatenation of the 4th resistance be used as output end, (i.e. current limliting when the current limliting division module is connect with reference signal input terminal
Division module is the voltage transformation module in reference signal generation module), output end output is reference signal;When the current limliting
(i.e. the current limliting division module is the voltage transformation in networking control signal generation module when division module is connect with networking control terminal
Unit), output end output is networking control signal.
The resistance value of 3rd resistor and the 4th resistance in current limliting bleeder circuit is adjusted according to application demand.In practical application
When, third electricity in the current limliting division module being connect with reference signal input terminal and the current limliting division module being connect with networking control terminal
The resistance value situation of resistance and the 4th resistance can be different.
Under slave mode, edge signal and the outer signal for generating reference signal that edge signal generator generates
It is identical.It is designed in this way, it is only necessary to guarantee that reference signal is identical, so that it may realize LED lights in multiple ad hoc network color lamp devices
Working method is identical.
The present invention also provides a kind of color lamp systems, including several ad hoc network color lamp devices as described above, wherein extremely
The networking control signal that the networking control terminal of the edge signal generator of rare ad hoc network color lamp device receives makes always
In host mode, remaining ad hoc network color lamp device is sequentially connected in series after the described ad hoc network color lamp device for its work, and adjacent two
The networking control signal of the latter generates to obtain according to the edge signal of previous output in a ad hoc network color lamp device.
Preferably, the edge signal generator include the first controllable switch and pressure control circuit, described first
The input terminal of controllable switch connects a DC power supply, output termination power supply line, the control signal output of the pressure control circuit
End connect the on-off for controlling the first controllable switch with the control terminal of the first controllable switch to generate edge signal and load
On power supply line.
By controlling the on-off of the first controllable switch, edge signal can be formed, and be loaded on power supply line.In the present invention
When the conducting of the first controllable switch, the edge signal loaded on power supply line is high level, when the first controllable switch disconnects, power supply
The edge signal loaded on line is low level.
Pressure control circuit in edge signal generator is controlled in the present invention by reference to signal or basis signal to export
Control signal to control the on-off of controllable switch to realize the output of edge signal.
Preferably, the first controllable switch is P-channel field-effect transistor (PEFT) pipe, source electrode connects the DC power supply, drain electrode connection institute
Power supply line is stated, grid connects the control signal output of the pressure control circuit.
When P-channel field-effect transistor (PEFT) pipe source voltage and grid voltage difference are greater than P-channel field-effect transistor (PEFT) pipe conduction threshold, P-channel field
The conducting of effect pipe;When P-channel field-effect transistor (PEFT) pipe source voltage and grid voltage difference are greater than P-channel field-effect transistor (PEFT) pipe breakdown voltage, P ditch
Road field-effect tube is breakdown.
Pressure control circuit of the present invention provides control signal, by controlling P-channel field-effect transistor (PEFT) tube grid voltage, realizes
The on-off of P-channel field-effect transistor (PEFT) pipe as the first controllable switch controls, and makes the P-channel field-effect transistor (PEFT) as the first controllable switch
It manages not breakdown.
Preferably, the pressure control circuit includes that microprocessor, first resistor, second resistance and second are controllably opened
It closes, in which:
The microprocessor for exporting intermediate control signal, microprocessor potential minimum end connection ground (i.e. with ground
Line connection);
The input terminal connection of second controllable switch passes through the first resistor and the second resistance being sequentially connected in series
It is connect with the DC power supply, output end connection ground, control terminal is connect with the microprocessor;
At the series connection of the first resistor and the second resistance as the control signal output of pressure control circuit with
Output control signal.
Further, to reduce cost, the microprocessor can be single-chip microcontroller.
Corresponding reference signal is by the pin of single-chip microcontroller from external input;Preset basis signal passes through built in single-chip microcontroller
Program realize.
When the intermediate control signal of microprocessor output is high level, the conducting of the second controllable switch, the second controllable switch
Equivalent resistance be approximately equal to 0, the control signal output voltage of pressure control circuit is by first resistor and second resistance ratio
It determines, the difference of the control signal output voltage of pressure control circuit and the P-channel field-effect transistor (PEFT) tube grid voltage is greater than the P
Channel field-effect pipe on state threshold voltage, the P-channel field-effect transistor (PEFT) pipe conducting;Conversely, when the intermediate control of microprocessor output
When signal is low level, the second controllable switch cut-off, the equivalent resistance of the second controllable switch is approximately equal to infinity, as
The difference of the P-channel field-effect transistor (PEFT) pipe source voltage of first controllable switch and the P-channel field-effect transistor (PEFT) tube grid voltage is less than the P ditch
Road field-effect tube on state threshold voltage, the P-channel field-effect transistor (PEFT) pipe cut-off.
To improve power supply line upper edge signal high level to low level switch speed, also gone here and there between the power supply line and ground
It is connected to pull-down circuit, the on-off of pull-down circuit is changeable, and in the control signal by making the edge signal loaded on power supply line
Conducting when being switched to low level from high level, conversely, then disconnecting.
Preferably, the pull-down circuit is third controllable switch, in which:
The input terminal of third controllable switch connects the power supply line, and output end connects describedly, and control terminal is connected with second
Control circuit, the second control circuit are opposite with the logic level of the output signal of first control circuit.As a kind of realization
The control terminal of scheme, the first controllable switch and third controllable switch is connected to the microprocessor difference output pin, and this two
The logic level of the output of a output pin is opposite.
Preferably, being also connected with current-limiting resistance between the third controllable switch input terminal and the power supply line.To protect
Controllable switch response speed with higher is demonstrate,proved, second controllable switch, third controllable switch can use field-effect tube
It realizes.Preferably, second controllable switch, third controllable switch realize that source electrode is made based on the field-effect tube of N-channel
For input terminal, drain electrode is used as output end, and grid is as control terminal.
Preferably, the LED driver includes:
Edging trigger arithmetic element is triggered by power supply line edge signal and carries out operation, and exports operation result;
Charhing unit, the edge signal for being inputted according to power supply line provide power supply electrical level for edging trigger arithmetic element,
It charges when edge signal is high level, discharges when edge signal is low level;
Initialization unit, for being initialized according to the power supply electrical level to edging trigger arithmetic element.
Preferably, the edging trigger arithmetic element is edge counting unit, the edge for inputting to power supply line
The edge of signal is counted, and exports count results.
The edge counting unit includes several triggers, exports count results with the output end of trigger.
Preferably, the trigger is d type flip flop.
Preferably, the edge counting unit includes several concatenated d type flip flops, with the output end of d type flip flop
Export count results, in which:
The clock signal input terminal of first d type flip flop is connect with power supply line, in two neighboring d type flip flop, the latter D touching
The clock signal input terminal of hair device is connect with the inverse output terminal of previous d type flip flop;
The reset terminal of each d type flip flop is connect with initialization unit, and each d type flip flop inverse output terminal and triggering end connect
It connects.
Without specific instruction in the present invention, first d type flip flop refer to according to the corresponding D of lowest order in edge counting unit
Trigger.Using the d type flip flop of opposite low level as previous in two neighboring d type flip flop, after high-order d type flip flop is used as relatively
One.
The charhing unit includes asymmetrical circuit element, and the anode voltage of the asymmetrical circuit element is higher than cathode voltage
When it is conductive, cathode voltage ends when being higher than anode voltage.The anode of the asymmetrical circuit element is connect with power supply line, and cathode passes through
One energy-storage travelling wave tube ground connection, the cathode that the charhing unit passes through asymmetrical circuit element are edging trigger arithmetic element and initialization
Unit provides power supply electrical level.Asymmetrical circuit element can be individual devices, is also possible to multiple having for devices composition and unidirectionally leads
The circuit of electrical characteristics.
Further preferably, the LED driver further includes LED drive circuit, the input terminal of the LED drive circuit
It is connect with the output end of edging trigger arithmetic element, output end is with corresponding LED connection to drive corresponding LED.
Compared with prior art, ad hoc network color lamp device of the invention can control signal according to the networking of input and determine work
Operation mode: slave mode or host mode, and then the networking that multiple ad hoc network control signals may be implemented forms color lamp system,
Multiple ad hoc network color lamp devices can be by the color lamp device synchronously control in host mode in the color lamp system that networking is formed
In the color lamp device of slave mode, to form the color lamp system controlled by power supply line edge signal, realizes and be greater than 2000 electricity
The synchronous variation of the LED module of source line edge signal control.In addition, by the ad hoc network of multiple ad hoc network color lamp devices, so that
Color lamp system can flexibly cope with different application demands and determine the quantity for needing the color lamp device of networking, and can solve by list
The problems such as caused supply current is excessive when the LED module of the more power supply line edge signal control of a color lamp device driving quantity.
Embodiment 1
As shown in Figure 1, a kind of ad hoc network color lamp device based on the control of power supply line edge signal, comprising:
Edge signal generator, for generating edge signal and exporting the edge signal load on the power line;
Several LED modules, each LED module include a LED lights group and are used to be driven according to power supply line edge signal
The LED driver of the LED lights group;
Wherein, edge signal generator is equipped with networking control terminal, for receiving networking control signal to control ad hoc network coloured silk
The operating mode of lamp device;
Ad hoc network color lamp device has two operating modes of host mode and slave mode, under slave mode, edge
Signal generator generates edge signal according to the reference signal of input;Under host mode, edge signal generator is according to pre-
If basis signal formed edge signal.
In the present embodiment when received networking control signal is low level, ad hoc network color lamp device works in host mode
Under, conversely, ad hoc network color lamp device works under slave mode when the networking control signal received is high level.
Further, to avoid the occurrence of erroneous judgement, the reliability of color lamp device is improved, when the electricity of the networking control signal received
It is flat when jumping, corresponding operating mode is just switched to after after the jump level duration reaches 2s.For example, ad hoc network
Color lamp device works in slave mode, and the networking control signal received at this time is jumped by high level to low level, after jump
The low level duration carry out timing, after duration reaches 2s, ad hoc network color lamp device automatically switches to host mould
Formula.
4 LED modules, respectively M are shared in the ad hoc network color lamp device of the present embodiment1、M2、M3、M4, all LED modules
Power supply line is connected to by series system.
As shown in Figure 1, edge signal generator includes the first controllable switch and pressure control circuit, the first controllable switch
Input terminal connects a DC power supply, output termination power supply line, and the control signal output of pressure control circuit is controllably opened with first
The control terminal connection of pass is for controlling the on-off (i.e. conducting and disconnection) of the first controllable switch to generate edge signal and load
It is exported on power supply line.For edge signal generator when not generating edge signal, output voltage maintains high level (namely direct current
The supply voltage of power supply).
First controllable switch of the present embodiment is P-channel field-effect transistor (PEFT) pipe CJ2301 (P1), and source electrode is straight as input termination
Galvanic electricity source (+18V power supply), drain electrode are connect as output end with power supply line, and grid is defeated with pressure control circuit as control terminal
Outlet (i.e. control signal output) connection.
Pressure control circuit includes: microprocessor, first resistor, second resistance and the second controllable switch, in which:
Microprocessor is for exporting intermediate control signal, microprocessor potential minimum end connection ground (connecting with ground wire);
Microprocessor is EM78P153S type single-chip microcontroller in the present embodiment, and pin 9 exports intermediate control signal.Pin 11
For grounding pin, pin 4 is supply input pin.
Supply voltage needed for EM78P153S type single-chip microcontroller is 5V, for the DC power supply for avoiding adding 5V, directly uses pressure stabilizing
The DC voltage of 18V is reduced to 5V for single-chip microcontroller power supply by circuit.
The present embodiment voltage regulator circuit includes divider resistance R8 and zener diode D1, and one end of divider resistance R8 connects direct current
Power supply (+18V power supply), the cathode of other end connection zener diode D1 are single-chip microcontroller power supply, pressure stabilizing two as voltage output end
The anode of pole pipe (D1) connects ground, and the cathode of zener diode D1 also passes through capacitor C1 and is grounded.
The input terminal of second controllable switch passes through the first resistor R1 being sequentially connected in series and second resistance R2 and DC power supply connects
It connects (one end of second resistance R1 is connect with power supply line), output end connection ground, control terminal is connect to receive micro- place with microprocessor
Manage the intermediate control signal of the output of device;
As the control signal output of pressure control circuit to export at the series connection of first resistor R1 and second resistance R2
Control signal.
Second controllable switch is CJ2302 type N-channel field-effect tube N1, and source electrode is as input terminal, and drain electrode is as output
End, grid is as control terminal.
The input terminal connection of second controllable switch passes through the first resistor R1 being sequentially connected in series and second resistance R2 and direct current
Source connection, output end connection ground, control terminal and microprocessor are connected to receive the intermediate control that the pin 9 of microprocessor exports and believe
Number;
As the control signal output of pressure control circuit to export at the series connection of first resistor R1 and second resistance R2
Control signal.
When the pin 9 of microprocessor exports high level, the second controllable switch is connected, field-effect tube P1 source voltage and grid
The difference of pole tension is greater than P-channel field-effect transistor (PEFT) pipe on state threshold voltage, and field-effect tube P1 is connected, the edge signal loaded on power supply line
For high level;
When one output pin of microprocessor is low level, the second controllable switch cut-off, field-effect tube P1 source electrode
The difference of voltage and grid voltage is less than P-channel field-effect transistor (PEFT) pipe on state threshold voltage, and field-effect tube P1 ends, and loads on power supply line
Edge signal is low level.
Low level speed is switched to by high level to improve the edge signal loaded on power supply line, between power supply line and ground
It is also serially connected with pull-down circuit, pull-down circuit is third controllable switch.
The input terminal of third controllable switch connects the power supply line, and output end connects describedly, and control terminal is connected with second
Control circuit, second control circuit are opposite with the logic level of intermediate control signal.
Current-limiting resistance R6 is also connected between third controllable switch input terminal and the power supply line.
Third controllable switch is CJ2302 type N-channel field-effect tube N2 in the present embodiment, and source electrode is as input terminal, drain electrode
As output end, grid is as control terminal.
Conveniently, second control circuit and third control circuit are all made of chip microcontroller, by field-effect tube N2 grid
The pin 8 of pole connection EM78P153S single-chip microcontroller.
When the output of pin 9 of EM78P153S single-chip microcontroller is high level, led as the first controllable switch field-effect tube P1
Logical, at this point, the pin 8 of EM78P153S single-chip microcontroller exports low level, the field-effect tube N2 as third controllable switch ends, electricity
The edge signal loaded on the line of source is down for high level.
At this point, if make EM78P153S single-chip microcontroller pin 9 export be low level when, as the first controllable switch field-effect
Pipe P1 cut-off, at this point, the pin 8 of EM78P153S single-chip microcontroller exports high level, the field-effect tube N2 as third controllable switch is led
Logical, power supply line is discharged by third controllable switch to ground, rapidly by the edge signal loaded on power supply line down for low level.
As it can be seen that the on-off of pull-down circuit is changeable, and in control signal by the edge signal that exports the first controllable switch
Conducting when being switched to low level for high level, conversely, then disconnecting.
The present embodiment as between the grid and ground of the field-effect tube N1 of the second controllable switch connect pull down resistor R5, as
Pull down resistor R7 is connected between the grid and ground of the field-effect tube N2 of third controllable switch.
Edge signal generator also serves as reference signal input terminal with networking control terminal in the present embodiment, and with networking control terminal
The networking control signal received also serves as reference signal.Using 7 feet of single-chip microcontroller as edge signal generator in the present embodiment
Networking control terminal.
Networking control terminal is also connected with networking control signal generation module, for generating networking according to corresponding outer signal
Control signal.
It, should to realize that networking controls the matching of the outer signal of signal generation module and the voltage magnitude of networking control signal
It includes voltage transformation module that networking, which controls signal generation module, for making the voltage magnitude of corresponding outer signal be transformed to second
Preset value.Second preset value is 5V.
Conveniently, the networking control signal generation module of the present embodiment is an electricity realized based on current limliting bleeder circuit
Pressure converter unit (i.e. networking control signal generation module is limited flow point volt circuit).
As shown in Figure 1, current limliting bleeder circuit includes 3rd resistor R3 (R3=13k Ω), the 4th resistance R4 being connected in series
(R4=5k Ω), one end ground connection of the 4th resistance R4, using 3rd resistor R3 and the one end of the 4th resistance R4 concatenated as networking
The output end for controlling signal generation module, connect, with 3rd resistor R3's with the networking control signal end of edge signal generator
The other end controls the input terminal of signal generation module as networking to input corresponding outer signal.
When the outer signal input terminal of networking control signal generation module is hanging or ground connection, the input of 7 foot of single-chip microcontroller is low
Level, ad-hoc network devices work in host mode;When the outer signal input termination high level of networking control signal generation module
When, the input of 7 foot of single-chip microcontroller is high level, and ad-hoc network devices work in host mode.
When ad hoc network color lamp device is under slave mode, the edge signal that edge signal generator generates is joined with for generating
The outer signal for examining signal is identical, according to whether reference signal input terminal, which is separately provided, is divided into the following two kinds situation:
(a) when reference signal input terminal is separately provided, edge signal and reference signal that edge signal generator generates
The outer signal of generation module connection is identical;
(b) when reference signal input terminal is not separately provided, edge signal and group network control that edge signal generator generates
The outer signal of signal generation module connection processed is identical.
Reference signal input terminal is not separately provided for ad hoc network color lamp device in the present embodiment, belong to situation (b) i.e. from
Under machine mode, the edge signal that edge signal generator generates controls the outer signal phase that signal generation module is connect with networking
Together.
As shown in Fig. 2, the LED driver of the present embodiment includes:
Edging trigger arithmetic element is triggered by power supply line edge signal and carries out operation, and exports operation result;
Charhing unit, the edge signal for being inputted according to power supply line provide power supply electrical level for edging trigger arithmetic element,
It charges when edge signal is high level, discharges when edge signal is low level;
Initialization unit, for being initialized according to the power supply electrical level to edging trigger arithmetic element;
And LED drive circuit, the corresponding driving of operation result output for being exported according to edging trigger arithmetic element
Signal is to drive corresponding LED lights group.The present embodiment LED drive circuit is 3 NMOS tubes, and each NMOS tube grid is corresponding to be connected
The output end in edging trigger arithmetic element is connect, the source electrode of each NMOS tube connects the ground of LED driver, the drain electrode of each NMOS tube
It is connected to the output end of LED driver.
Fig. 3 is the edging trigger arithmetic element of the present embodiment, including 3 d type flip flops in parallel and 3 arithmetical logics
Unit exports operation result with the output end of each d type flip flop.
D type flip flop in the present embodiment is that the rising edge clock resetted with low level triggers d type flip flop, respectively the first D
Trigger F1, the second d type flip flop F2 and third d type flip flop F3, corresponding forward direction output end are respectively Q1, Q2 and Q3, corresponding
Operation result is followed successively by Q1, Q2, Q3 from low to high.The triggering end of each d type flip flop respectively with arithmetic logic unit corresponding positions
Output end connection, i.e. D1, which connects C1, D2 and connects C2, D3, connects C3.
The reset terminal (including RD1, RD2 and RD3) of each d type flip flop is connect with the output end of initialization unit, by first
Beginningization unit carries out d type flip flop initially to set number.
Clock signal input terminal (including CK1, CK2 and CK3) is connect with power supply line, is touched by the edge signal of power supply line input
Hair carries out arithmetical operation.
Edging trigger arithmetic element is three adders, the A group input terminal of the edging trigger arithmetic element in the present embodiment
It is followed successively by A1, A2 and A3 from low to high, B group input terminal is followed successively by B1, B2 and B3 from low to high, and output end is followed successively by from low to high
C1, C2 and C3.The A group input terminal of arithmetic logic unit connect respectively with the output end of the d type flip flop of corresponding positions (i.e. Q1 connect A1,
Q2 meets A2, Q3 and meets A3).The external scheme control constant of B group input terminal.Scheme control constant can be set according to user demand
Number.
Fig. 4 is the physical circuit of the charhing unit of the present embodiment, including the anode and power supply line of diode D, diode D connect
It connects, by energy-storage travelling wave tube C ground connection, (charging capacitor is the metal-oxide-semiconductor equivalent capacity that source and drain is shorted, equivalent electricity to cathode in the present embodiment
The size of appearance is 0.2 μ F).The cathode that entire charhing unit passes through diode D is edging trigger arithmetic element and initialization unit
Power supply electrical level is provided.
Fig. 5 is the circuit diagram of initialization unit, including four metal-oxide-semiconductors, respectively p-channel metal-oxide-semiconductor T1, p-channel MOS
Pipe T2, n-channel metal-oxide-semiconductor T3 and n-channel metal-oxide-semiconductor T4, the first phase inverter V1, the second phase inverter V2.Specific connection relationship is as follows:
The source electrode and drain electrode of metal-oxide-semiconductor T1 is connected to the cathode of diode D1 in charhing unit, the leakage of grid and metal-oxide-semiconductor T3
Pole connection, the grid of metal-oxide-semiconductor T3 are connect with the source electrode of metal-oxide-semiconductor T1, metal-oxide-semiconductor T3 source electrode ground connection.The grid and source electrode of metal-oxide-semiconductor T2 point
It is not connect with the grid of metal-oxide-semiconductor T1 and source electrode, (size of current-limiting resistance is in the present embodiment after one current-limiting resistance R of drain series
500 Ω), connect with the grid of metal-oxide-semiconductor T4, and metal-oxide-semiconductor T4 drain electrode and source electrode respectively with the source electrode of metal-oxide-semiconductor T3 and connect.
The grid of metal-oxide-semiconductor T4 connects the first phase inverter V1 input terminal, and the output end of the first phase inverter V1 connects the second reverse phase
Device V2 input terminal, output end of the output of the second phase inverter V2 as initialization unit are multiple to the output of edging trigger arithmetic element
Position signal.
The working principle of the arithmetic operating apparatus of the power supply line edge signal triggering of the present embodiment is as follows:
When the arithmetic unit does not power on, charhing unit provide power supply electrical level be low level, at this time initialization unit and
Edging trigger arithmetic element electricity shortage, entire arithmetic unit are unable to operation.
When arithmetic unit powers on, and when edge signal is high level, the energy-storage travelling wave tube C in charhing unit is electrically charged.
In the sufficiently long situation of high level lasting time, power supply electrical level is high level, initialization unit and edge by low level overturning
Arithmetic element is triggered by normal power supply.
At this point, the metal-oxide-semiconductor T3 in initialization unit is connected, metal-oxide-semiconductor T2 is connected, therefore, charhing unit can pass through limit
Leakage resistance R charges to the metal-oxide-semiconductor T4 for being used as capacitor.In to metal-oxide-semiconductor T4 charging process, the voltage of metal-oxide-semiconductor T4 grid gradually increases
Greatly, it completes to initialize after charging reaches so that the reset signal of the second phase inverter V2 output is overturn by low level to high level.
The output end of second phase inverter V2 is connect with the reset terminal of each d type flip flop in edging trigger arithmetic element, when
When second phase inverter V2 exports low level, each d type flip flop resets, i.e., edging trigger arithmetic element is reset.
Fig. 6 is edge signal, initialization unit and the three adder B group input terminals of power supply line input in the present embodiment
Scheme control constant operation result when being Binary Zero 01 time diagram, wherein operation result is using three d type flip flops
The output signal of positive output end indicates.After power supply electrifying, logical zero, i.e. operation knot are reset in three d type flip flops of T time
Fruit resets.At the rising edge E1 of edge signal, operation result is Binary Zero 01;It is risen on the power line along E2, operation result is
Binary Zero 10;It is risen on the power line along E3, operation result is Binary Zero 11;It is risen on the power line along E4, operation result two
System 100;It is risen on the power line along E5, operation result is binary one 01;Risen on the power line along E6, operation result be two into
System 110;It is risen on the power line along E7, operation result is binary one 11;It is risen on the power line along E8, arithmetic unit overflows, operation
It as a result is Binary Zero 00, the operation result of edging trigger arithmetic element takes in the LED driver of power supply line edge signal triggering
Being worth range is 0~(23-1)。
In the present embodiment, the edging trigger arithmetic element operation in the same manner of the LED driver of all LED modules.
It include 4 LED modules, respectively M in the present embodiment1、M2、M3、M4, connect in a series arrangement between each other.
A kind of color lamp system, including the above-mentioned ad hoc network color lamp device of at least two, wherein at least one ad hoc network is color
Networking that the networking control terminal of the edge signal generator of lamp device receives control signal makes its work in host mode always,
Remaining ad hoc network color lamp device is sequentially connected in series after the described ad hoc network color lamp device, in two neighboring ad hoc network color lamp device
The networking control signal of the latter generates to obtain according to the edge signal of previous output.
Fig. 7 is the color lamp system that 3 ad hoc network color lamp apparatus modules are constituted, latter in two neighboring ad hoc network color lamp device
A networking control signal generates to obtain according to the edge signal of previous output, and specific connection relationship is as follows:
The input terminal of the networking control signal generation module for the ad hoc network color lamp device that number is 1 does not connect (i.e. outstanding
It is empty), the networking control signal of corresponding networking control signal generation module output is low level, the color lamp dress that number is 1 at this time
The operating mode set is in host mode;Output end (the ad hoc network control letter of the edge signal generator for the color lamp device that number is 1
Number generation module) connection number be 2 the networking of ad hoc network color lamp device control signal generation module, the color lamp dress that number is 2
The operating mode set is slave mode;(ad hoc network controls signal and generates mould the edge signal generator for the color lamp device that number is 2
Block) connect the ad hoc network control signal generation module for numbering the color lamp device for being 3, the operating mode for the color lamp device that number is 3
For slave mode.The color lamp device that color lamp device that color lamp device that number is 1, number are 2, number are 3 is connected in 18v in parallel
Power supply.Color lamp device in color lamp system can also be connected by common ground between different electrical power by different power supply power supplies.
The color lamp system of the present embodiment, by using the edge signal that previous ad hoc network color lamp device exports as next
The outer signal of the networking control signal generation module of ad hoc network color lamp device, the edge signal for generating edge signal generator
It is identical as the edge signal that upper ad hoc network color lamp device generates, and then realize the ad hoc network of multiple color lamp devices.From group
Net function makes to form large-scale color lamp system in large-scale decoration occasions with can be convenient;Networking is not needed in each color lamp device
When, it is only necessary to the ad hoc network of the networking control terminal and previous stage color lamp device that disconnect the color lamp device controls signal generation module
Connection.