WO2004086825A1 - A wireless linked and numerically controlled color ilights system and control method - Google Patents

A wireless linked and numerically controlled color ilights system and control method Download PDF

Info

Publication number
WO2004086825A1
WO2004086825A1 PCT/CN2004/000256 CN2004000256W WO2004086825A1 WO 2004086825 A1 WO2004086825 A1 WO 2004086825A1 CN 2004000256 W CN2004000256 W CN 2004000256W WO 2004086825 A1 WO2004086825 A1 WO 2004086825A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
circuit
lantern
controller
address
Prior art date
Application number
PCT/CN2004/000256
Other languages
French (fr)
Chinese (zh)
Inventor
Dongliang Yang
Original Assignee
Dongliang Yang
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CNA031140742A external-priority patent/CN1535097A/en
Priority claimed from CN 03224830 external-priority patent/CN2610601Y/en
Priority claimed from CN 03225030 external-priority patent/CN2610599Y/en
Application filed by Dongliang Yang filed Critical Dongliang Yang
Publication of WO2004086825A1 publication Critical patent/WO2004086825A1/en

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission

Definitions

  • the present invention relates to a light control technology, and more particularly to a digital control lantern system for implementing coordinated operation of a plurality of lanterns by wireless association and a control method thereof.
  • the digital control lamp is a controllable color lamp using a digital control circuit.
  • the typical circuit shown in Fig. 1 includes a power source portion 104 and a controller 101, an electronic transformer 102, and an RGB three-color color light tube 103 (hereinafter referred to as a lantern). It is easy to control the color, brightness and contrast of the lantern at any time.
  • the programmable digital control controller uses rewritable memory, which is convenient for different requirements of different customers or the same customer at different times. The manufacturer's personnel provide special programs or can be programmed by the customer. These digitally controlled lights are generally operated independently or in groups.
  • the general method is to add an internal synchronization device and an external clock synchronization source and a clock synchronization connection control line based on the independent or grouped numerical control lanterns. In this case, additional wiring (very useful) is required.
  • the prior art controls multiple sets of lanterns through programming and setting methods, and only uses a special universal programmer for erasing and firing, so the rewritable memory needs to be taken out from the controller and inserted into the universal programmer. New programs and data are written to the memory by a computer connected to the universal programmer, which typically uses an external power supply.
  • the pin causes a certain degree of damage, which also affects the performance and stability of the controller.
  • the technical problem to be solved by the present invention is how to provide a method and system for wirelessly controlling a digitally controlled lantern without external synchronization connection on the basis of the external structure of the existing digital control lantern, so that multiple or multiple color sets are provided.
  • the lamp can work independently and conveniently, and can work together conveniently.
  • it also provides a controller and programmer for the CNC lantern system without compromising the circuit structure and ensuring the security of its built-in memory data. .
  • the above technical problem of the present invention is solved as follows: 'Constructing a wireless-related digital control lantern control system, the system uses the same-network power frequency power supply, and includes a main switch and a plurality of digital control lights using a power line network, wherein
  • the digital control lantern includes a wireless associated controller with a built-in software address and one or more colored lights; the wireless associated controller includes a synchronous pulse extraction circuit sequentially connected, a control circuit and a driver for an external power frequency power supply. Circuit.
  • the wireless association controller further includes a counter connected to the output of the synchronization pulse extraction circuit, the control circuit pressing the counter of the counter and the software The comparison result of the address controls and drives the lantern.
  • the control circuit includes a power supply circuit, a CPU connected to the power circuit, and a built-in lantern operation command connected to the CPU; the synchronization pulse extraction circuit input The terminal is connected to the AC voltage terminal of the power circuit, and the output end thereof is connected to a designated I/O terminal of the CPU, and the counter and the software address are built in the CPU.
  • the control circuit includes a single chip microcomputer having a built-in software address and a memory for storing a motion command or an action command and an address list, and the microcontroller and the memory are connected by a connection line.
  • the control circuit includes a control circuit a control port and a programming port;
  • the control port comprises two holes, one of the holes is connected to the ground of the internal circuit, the other hole is connected to the chip select terminal and is connected to the power source VCC through the resistor R;
  • the MCU internally has a programming module that reads the programming port data and reprograms the rewritable memory.
  • an external passive programmer for resetting an action instruction and an address list in the memory is further included;
  • the passive programmer includes a housing and a built-in programmable a logic array, the programmable logic array being coupled to a control head and a programming head disposed on the housing; the control head including two internally shorted pins, the programming head being coupled to the programmable logic array
  • the address selector and the data output are connectable to the control port and the programming port of the control circuit.
  • the software address remains constant during operation of the controller.
  • an address list is also built in the memory, and the software address is dynamically read by the CPU from the address list during the working process.
  • the sync pulse extraction circuit includes two optical coupling elements, each of which includes an output terminal and two positive and negative input terminals, the two optical coupling components
  • the output terminals are all connected to the designated I/O terminal of the CPU; the positive input terminal of one of the two optical coupling components is connected together with the negative input terminal of the other optical coupling component, and is the input ground terminal of the two optical coupling components And the negative input terminal of the one and the positive input terminal of the other are connected together to connect the AC voltage output end of the power circuit, which is the periodic signal input end of the two optical coupling components.
  • the synchronizing pulse extraction circuit further includes an AC coupling circuit between the AC voltage output terminal of the power supply circuit and the periodic signal input terminal.
  • Another technical problem of the present invention is solved by constructing a control of a wirelessly associated digital control lantern system
  • the method is characterized in that a plurality of digital control lights using the same power source and a built-in software address of the power line network are used, and the periodic signal of the power source is used as a reference for the control signal, and the control method comprises the following steps:
  • Each digital control lantern extracts the synchronization pulse from the periodic signal of the power supply and starts counting.
  • the numerical control lantern starts to execute the specified motion instruction and returns This step starts and recounts, and during the recounting process, the digital control lantern continues to execute the command.
  • the numerical control lantern includes one or more lanterns and a controller, and the software address is set in the controller.
  • the power source is a power-frequency power source of the same network, including a single-phase or three-phase 220V/50HZ or 110V/60 HZ power source; and the periodic signal is any one of single phase or three phase.
  • the sine wave power cycle signal in the middle is a power-frequency power source of the same network, including a single-phase or three-phase 220V/50HZ or 110V/60 HZ power source; and the periodic signal is any one of single phase or three phase.
  • the software address can be reset, but is fixed in steps 1.1) and 1.2).
  • the software address is variable in steps 1.1) and 1.2); the digitally controlled lantern further includes a built-in address list; and in the step 1.2), The process of sequentially reading the software address of the digital control lantern from the address list.
  • the address list can be reset.
  • the action instruction is one or more and can be reset; the action is the color of the digital control lamp having a length of time A process of changing brightness.
  • the chip select terminal of the memory device is used to increase the security of the program and data that are normally written during the storage period.
  • the numerical control lantern system and the control method thereof of the invention can be widely applied to the lighting landscape project of a large-scale place, and meet the requirements of people pursuing the beauty and change of the light.
  • FIG. 1 is a circuit diagram of a typical digital control lantern using a type A controller in the prior art.
  • FIG. 2 is a circuit diagram of a single digital control LED with an A-type wireless correlation controller for networking according to the present invention.
  • FIG. 3 is a schematic diagram of a power supply circuit in the wireless associated controller of FIG. 2.
  • 4 is a schematic diagram of a synchronization pulse extraction circuit in the wireless associated controller of FIG. 2.
  • Figure 5 is a signal timing diagram for extracting a sync pulse using the circuit of Figure 4.
  • 6 is a circuit diagram of an embodiment of an A-type wireless correlation controller provided by the present invention.
  • FIG. 7 is a schematic diagram showing the principle of the driving circuit (power board) of the controller shown in Fig. 6.
  • FIG. 8 is a circuit diagram of an embodiment of a Type B wireless association controller provided by the present invention.
  • Figure 9 is a schematic diagram of circuit connections when an external passive programmer provided by the present invention is used.
  • Figure 10 is a schematic diagram of the principle of the external passive programmer and controller.
  • Fig. 11 is a schematic view showing the networking by using the numerical control lantern of the present invention.
  • the invention uses the same power supply to work as N control in the same network power frequency power line (single phase or three phase)
  • Each controller has a unique and fixed position in accordance with the order in which the colored lamps are arranged or the motion requirements.
  • the digital control lantern of the present invention includes three primary color tubes and a numerical control that controls the illumination and works in association with each other.
  • the lantern controller, the digital controller of the invention is a wireless associated controller, and the key is that the controllers can work synchronously.
  • the invention provides A-type and B-type wireless related controllers for the A-type and B-type numerical control lantern controllers respectively.
  • the A-type wireless associated controller is taken as an example to illustrate the composition thereof, and the wireless associated controller using the wireless associated controller is used.
  • the circuit structure of the lantern is shown in FIG. 2. Compared with the existing controller of FIG. 1, the controller is based on the power circuit 202 of the original A-type controller, the intelligent control circuit 203 of the single-chip microcomputer, and the driving circuit 204.
  • a synchronization pulse extraction circuit 202 is added for directly extracting a synchronization pulse from the power supply circuit 201 and outputting it to the intelligent control circuit 203 of the single chip microcomputer;
  • the wireless correlation controller includes a power supply circuit 201, a synchronization pulse extraction circuit 202, a single chip intelligent control circuit 203, and Drive circuit 204.
  • counters and software address registers (not shown) have been added to the software modules therein.
  • the power supply circuit 201 in the wireless correlation controller 200 has a circuit structure as shown in FIG. 3.
  • the transformer T1 converts the commercial power into two 10-volt alternating currents, and one of the bypass signals I is led out to the synchronous pulse extraction circuit 202.
  • the two-way 10 volt AC is then rectified and regulated to output power supply VCC.
  • the above two-way 10 volt AC power is then subjected to rectification and filtering output power supply VCC.
  • the circuit structure of the sync pulse extraction circuit 202 in FIG. 2 is as shown in FIG. 4.
  • the 10 volt AC signal is reversely arranged through the paired input terminals, and the optocouplers connected to the output terminals are at the intermediate value of the AC signal at the zero level. A narrow pulse is output.
  • the present invention includes an AC coupling circuit R1, R2, C7, D4, D5 for connecting the above-mentioned 10 volt AC signal and two optical coupling elements U7 and U8 for extracting a sync pulse including a photodiode and a phototransistor.
  • the working principle is shown in Figure 5: When the input signal voltage of the 50HZ/60HZ power supply is greater than the conduction voltage of the photodiode, the photodiode emits light, and the phototransistor is turned on.
  • the component outputs a high level; when the input signal voltage is less than the on-voltage of the photodiode, the photodiode does not emit light, the phototransistor is turned off, and the optical coupling element outputs a low level.
  • I is the signal processed by the AC voltage coupling circuit I through the AC coupling circuit.
  • the present invention provides two types of wireless associated controllers, Type A and Type B.
  • the circuit of the type A wireless associated controller is shown in Figure 6.
  • the pl.3 port of the single-chip P87LPC764 receives the synchronous pulse signal T and counts it.
  • the action instruction is obtained from the memory 24WC02, and is connected to the single-chip P87LPC764.
  • the pl.0, pl.l and pl.2 ports of the RGB three-base color lamp drive circuit output RGB three-color optocoupler control pulse RI, GI, BI and RGB three-color optocoupler output signals RAI, GAI, BAI.
  • the signals and terminals are explained as follows:
  • RAK G A1, B A1 three-color optocoupler control pulse
  • RI, GI, BI three-color optocoupler output signal
  • RO, GO, BO Connect the three-color electronic transformer load
  • L power frequency power line
  • N power frequency zero line
  • VCC DC power supply is positive
  • the drive circuit in the controller is shown in Figure 7, including the filter circuit (Ll, L2, C2, C6, C7, R4), amplifying the signal output from the drive circuit and filtering the output of the three-color electronic transformer that outputs the RGB three-color color lamp.
  • the hardware circuit structure is as shown in FIG. 8 , which is different from the A-type wireless associated controller in that the output parallel control command can simultaneously control the 7-way lantern.
  • the circuit includes four registers 74HC373 for serial input to parallel output, of which three 74HC373 respectively correspond to 7 RGB control signal outputs.
  • the signal and terminal description of this circuit are as follows -
  • DB0-DB6 data line
  • Rl-R7, Gl-G7, B1-B7 7 sets of three-color connector code
  • N controllers use the same frequency of the power grid 5 0 HZ or 60 0 HZ power supply. Complete the control of N (Type A) or 7 xN (Type B) color tubes (N is a natural number).
  • N is a natural number.
  • the software addressing of multiple controllers is sorted in ascending or descending order of natural numbers:
  • A, B is the controller type
  • N is the natural number
  • A(B)n represents the specific software addressing natural number
  • 1 each controller arranged in the association relationship, according to the following relational expression (1), complete the color light tube Gradient, flicker, chase, scan, etc.
  • This addressing method is suitable for the lighting landscape project in a linear configuration:
  • each controller uses a different time base address code in the work cycle, and the address code is obtained from the address list.
  • the controller can be arranged in ascending or descending order of the initial action address code sequence.
  • This addressing method is suitable for the lighting landscape project of the planar array configuration:
  • the external programmer can be used and plugged and unplugged when the wireless associated controller is powered, and supports the charging operation; the controller programming interface can be inserted at any time to prepare the operating state parameters of the color light tube, for example, color, period, time.
  • the external passive programmer used in the present invention as shown in FIGS. 9 and 10, the external passive programmer 900 has a control head 901 and a programming head 903 when they turn on the data and signal lines of the wireless associated controller 200. Interface, the E 2 PROM chip select terminal can be set to "0" by shorting the line. This structure allows the color lamp operation state program to be programmed or modified only after the programmer is inserted into the programming interface of the controller.
  • the programming process of the external passive programmer comprises: 1. programming by using a computer and an external passive programmer; 2. programming data writing by using an external passive programmer and a controller.
  • the control head 901 and the programming head 903 of the external passive programmer are inserted into the control port 902 and the programming port 904 of the controller, and the hole 905 of the control port and the hole 906 are short-circuited, and the programmable device E 2 PROM chip select terminal ("0" Valid) Ground is now low.
  • the microcontroller P87LPC764 in the controller starts the programming module, reads the data in the programmable logic array in the external passive programmer through the I/O port, and rewrites the program and data in the programmable device E 2 PROM according to the data. .
  • the start and end of the above read write process at P87LPC764 includes Setup and Cancel.
  • the power cable and the digital associated controller-based digital control lantern of the present invention are used for networking.
  • the system structure is as shown in FIG. 11 , and includes a main switch 1101 and a plurality of parallel wireless associated controllers 1102 that are software-addressed. 1,103, 1104, each controller can carry one or more lanterns.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

A wireless linked and numerically controlled color lights control system. The system uses industrial power in a same network. It includes a general switch and a plurality of numerically controlled color lights which form network with power lines. The numerically controlled color lights include a wirelessly linked controller in which soft addresses are placed, and one or a plurality of color lights. The wirelessly linked controller includes a synchronous pulse extracting circuit, a control circuit of external industrial power and a drive circuit which are sequentially connected. The invention also discloses also a method. The method includes the following steps: A plurality of numerically controlled color lights are supplied power at the same time. Each numerically controlled color light extracts the synchronous pulse from periodical power signal and starts to count. When the number arrives at the soft addresses parameters set in the numerically controlled color lights, the numerically controlled color lights begin to perform set instructions and then return to the step and begin to recount. During the recounting, the numerically controlled color lights continue to perform the said instructions. The invention adds the synchronous pulse extracting circuit the soft addresses and control soft based of current color lights controller and realises the synchronization and the linking among the color lights. It may be applied to large-scale lighting engineering, avoid control wiring, reduce system cost and increase system flexibility.

Description

一种无线关联的数控彩灯系统及其控制方法 技术领域  Wireless related digital control lantern system and control method thereof
本发明涉及灯光控制技术, 更具体地说, 涉及一种通过无线关联实现多个 彩灯协同工作的数控彩灯系统及其控制方法。  The present invention relates to a light control technology, and more particularly to a digital control lantern system for implementing coordinated operation of a plurality of lanterns by wireless association and a control method thereof.
背景技术 Background technique
数控彩灯是使用数字控制电路的一种可控彩灯, 典型电路如图 1, 包括电 源部分 104以及控制器 101、 电子变压器 102和 RGB三基色彩色灯管 103 (以 下简称彩灯)。 可以方便地控制彩灯在任意时刻的色彩、 亮度和对比度。 而可 编程数控彩灯控制器使用可擦写存储器,便于根据不同客户或同一客户在不同 时间对灯光色彩变化规律的不同要求, 由厂家供应商的人员提供特制程序或由 客户自行编程。这种数控彩灯一般独立或成组工作, 目前市面上有两种常用控 制器: 单路 (A型) 控制器和七路 (B型)控制器; 当使用 B型控制器时, 七个 (或七支)为一组使用同一个控制器; 使用 A型控制器时,输出也可以并联多 个(或支)彩灯, 可达 12个(或支), 但彩灯动作一致。 在一个大型场所需要 多个或多组彩灯同时工作的情况下,多个或多组彩灯工作时间上的一致性难于 保证。而一般的方法, 是在这种独立或成组工作的数控彩灯基础上额外增加内 部的同步装置以及外部的时钟同步源和时钟同步连接控制线,这时需要另外布 线 (非常用线)和增加同步源, 给系统改造带来诸多不便, 同时增加了特殊布 线和同步信号源的成本;而且如果同步系统出现问题可能会影响全部的数控彩 灯。 同时, 现有技术通过编程和设置方法对多组彩灯进行控制, 仅限于使用专 门的通用编程器进行擦除和烧制,因此需要将可擦写存储器从控制器中取出插 入通用编程器中,利用与该通用编程器连接的计算机将新的程序和数据写入该 存储器中, 这种通用编程器一般都使用外接电源。 在这种结构的数控彩灯中, 当可擦写存储器安装在数控彩灯电路内时, 该存储器内的程序和数据无法更 改, 保证了所述程序和数据的安全性, 使系统能够稳定工作。 以这种方式多次 重新编程,必然会对控制器外壳的吻合程度和内部构件的结合程度以及芯片的  The digital control lamp is a controllable color lamp using a digital control circuit. The typical circuit shown in Fig. 1 includes a power source portion 104 and a controller 101, an electronic transformer 102, and an RGB three-color color light tube 103 (hereinafter referred to as a lantern). It is easy to control the color, brightness and contrast of the lantern at any time. The programmable digital control controller uses rewritable memory, which is convenient for different requirements of different customers or the same customer at different times. The manufacturer's personnel provide special programs or can be programmed by the customer. These digitally controlled lights are generally operated independently or in groups. There are currently two commonly used controllers on the market: single (A) controllers and seven (B) controllers; when using B controllers, seven (or seven) use the same controller for one group; when using the A-type controller, the output can also be connected in parallel with multiple (or branch) lights, up to 12 (or branches), but the lanterns operate in the same direction. In the case where a large venue requires multiple or more sets of lanterns to work simultaneously, the consistency of the working time of multiple or multiple sets of lanterns is difficult to guarantee. The general method is to add an internal synchronization device and an external clock synchronization source and a clock synchronization connection control line based on the independent or grouped numerical control lanterns. In this case, additional wiring (very useful) is required. Increasing the synchronization source brings a lot of inconvenience to the system modification, and increases the cost of special wiring and synchronization signal sources; and if there is a problem with the synchronization system, it may affect all the CNC lights. At the same time, the prior art controls multiple sets of lanterns through programming and setting methods, and only uses a special universal programmer for erasing and firing, so the rewritable memory needs to be taken out from the controller and inserted into the universal programmer. New programs and data are written to the memory by a computer connected to the universal programmer, which typically uses an external power supply. In the numerically controlled color lamp of this structure, when the rewritable memory is installed in the digital control lantern circuit, the program and data in the memory cannot be changed, the security of the program and data is ensured, and the system can work stably. . Reprogramming multiple times in this way will inevitably match the degree of the controller shell to the degree of bonding of the internal components and the chip.
认 本 管脚造成一定程度损伤, 也会影响到控制器的工作性能和稳定度。 Recognize The pin causes a certain degree of damage, which also affects the performance and stability of the controller.
发明内容 Summary of the invention
本发明要解决的技术问题是, 怎样在现有数控彩灯外部结构的基础上, 提 供一种没有外部同步连线的无线关联的数字控制彩灯的方法和系统,使得多个 或多组彩灯既能方便地独立工作, 又能方便地协同工作; 同时, 也要为数控彩 灯系统提供不破坏电路结构、同时又能保证其内置存储器数据安全的配套使用 的一种控制器和编程器。  The technical problem to be solved by the present invention is how to provide a method and system for wirelessly controlling a digitally controlled lantern without external synchronization connection on the basis of the external structure of the existing digital control lantern, so that multiple or multiple color sets are provided. The lamp can work independently and conveniently, and can work together conveniently. At the same time, it also provides a controller and programmer for the CNC lantern system without compromising the circuit structure and ensuring the security of its built-in memory data. .
本发明上述技术问题这样解决, '构造一种无线关联的数控彩灯控制系统, 该系统使用同网工频电源, 包含有总开关和采用电源线组网的多个数控彩灯, 其特征在于,所述数控彩灯包含有一个内置软件地址的无线关联控制器以及一 个或多个彩灯; 所述无线关联控制器包含有顺序连接的同步脉冲提取电路、 外 接工频电源的控制电路和驱动电路。  The above technical problem of the present invention is solved as follows: 'Constructing a wireless-related digital control lantern control system, the system uses the same-network power frequency power supply, and includes a main switch and a plurality of digital control lights using a power line network, wherein The digital control lantern includes a wireless associated controller with a built-in software address and one or more colored lights; the wireless associated controller includes a synchronous pulse extraction circuit sequentially connected, a control circuit and a driver for an external power frequency power supply. Circuit.
在按照本发明的数控彩灯控制系统中,所述无线关联控制器还包含有连接 在所述同步脉冲提取电路输出端上的计数器,所述控制电路按所述计数器的计 数值和所述软件地址的比较结果控制和驱动彩灯。  In the numerical control lantern control system according to the present invention, the wireless association controller further includes a counter connected to the output of the synchronization pulse extraction circuit, the control circuit pressing the counter of the counter and the software The comparison result of the address controls and drives the lantern.
在按照本发明的数控彩灯控制系统中, 所述控制电路包含有连接电源电 路、 与所述电源电路连接的 CPU以及与 CPU连接的内置彩灯动作指令的存储 器; 所述同步脉冲提取电路输入端连接所述电源电路交流电压引出端, 其输出 端连接 CPU的指定 I/O端, 所述计数器和软件地址内置在 CPU中。  In the numerical control lantern control system according to the present invention, the control circuit includes a power supply circuit, a CPU connected to the power circuit, and a built-in lantern operation command connected to the CPU; the synchronization pulse extraction circuit input The terminal is connected to the AC voltage terminal of the power circuit, and the output end thereof is connected to a designated I/O terminal of the CPU, and the counter and the software address are built in the CPU.
在按照本发明的数控彩灯控制系统中,所述控制电路包含有内置软件地址 的单片机和用于存储动作指令或者动作指令和地址列表的存储器,所述单片机 与存储器通过连接线相连。  In the numerically controlled lantern control system according to the present invention, the control circuit includes a single chip microcomputer having a built-in software address and a memory for storing a motion command or an action command and an address list, and the microcontroller and the memory are connected by a connection line.
在按照本发明的数控彩灯控制系统中,所述控制电路包含有与控制电路连 接的控制口和编程口;所述控制口包括两个孔,其中一个孔连接内部电路的地, 另一个孔连接所述片选端并通过电阻 R连接电源 VCC; 所述编程口连接所述 单片机的 I/O端; 所述单片机内置读取所述编程口数据并对所述可擦写存储器 重新编程的编程模块。 In the numerical control lantern control system according to the present invention, the control circuit includes a control circuit a control port and a programming port; the control port comprises two holes, one of the holes is connected to the ground of the internal circuit, the other hole is connected to the chip select terminal and is connected to the power source VCC through the resistor R; The I/O terminal of the single chip microcomputer; the MCU internally has a programming module that reads the programming port data and reprograms the rewritable memory.
在按照本发明的数控彩灯控制系统中, 还包括用于重新设置所述存储器中 的动作指令和地址列表的外置无源编程器; 所述无源编程器包含有外壳和内置 的可编程逻辑阵列,所述可编程逻辑阵列与设在所述外壳上的控制头和编程头 相连接; 所述控制头包括两个内部短接的脚, 所述编程头连接所述可编程逻辑 阵列的地址选择端和数据输出端,所述无源编程器可与控制电路的控制口和编 程口连接。  In the numerical control lantern control system according to the present invention, an external passive programmer for resetting an action instruction and an address list in the memory is further included; the passive programmer includes a housing and a built-in programmable a logic array, the programmable logic array being coupled to a control head and a programming head disposed on the housing; the control head including two internally shorted pins, the programming head being coupled to the programmable logic array The address selector and the data output are connectable to the control port and the programming port of the control circuit.
在按照本发明的数控彩灯控制系统中, 所述软件地址在所述控制器工作过 程中保持恒定。  In the numerical control lantern control system according to the present invention, the software address remains constant during operation of the controller.
在按照本发明的数控彩灯控制系统中, 所述存储器中还内置了地址列表, 所述软件地址是在所述工作过程中由 CPU从所述地址列表中动态读入的。  In the numerical control lantern control system according to the present invention, an address list is also built in the memory, and the software address is dynamically read by the CPU from the address list during the working process.
在按照本发明的数控彩灯控制系统中, 所述同步脉冲提取电路包括两个光 耦合元件, 每个光耦合元件包括一个输出端和正负两个输入端, 所述两个光耦 合元件的输出端都连接至 CPU的指定 I/O端;所述两个光耦合元件中一个的正 输入端与另一个的负输入端连在一起一同连接地, 为两个光耦合元件的输入接 地端; 而所述一个的负输入端与另一个的正输入端连在一起一同连接所述电源 电路的交流电压输出端, 为两个光耦合元件的周期信号输入端。  In the numerical control lantern control system according to the present invention, the sync pulse extraction circuit includes two optical coupling elements, each of which includes an output terminal and two positive and negative input terminals, the two optical coupling components The output terminals are all connected to the designated I/O terminal of the CPU; the positive input terminal of one of the two optical coupling components is connected together with the negative input terminal of the other optical coupling component, and is the input ground terminal of the two optical coupling components And the negative input terminal of the one and the positive input terminal of the other are connected together to connect the AC voltage output end of the power circuit, which is the periodic signal input end of the two optical coupling components.
在按照本发明的数控彩灯控制系统中,所述同步脉冲提取电路还包括位于 所述电源电路交流电压输出端和所述周期信号输入端之间的交流耦合电路。  In the numerical control lantern control system according to the present invention, the synchronizing pulse extraction circuit further includes an AC coupling circuit between the AC voltage output terminal of the power supply circuit and the periodic signal input terminal.
本发明另一技术问题这样解决,构造一种无线关联的数控彩灯系统的控制 方法, 其特征在于, 使用同一电源和采用电源线组网的内置软件地址的多个数 控彩灯, 以所述电源的周期信号作为控制信号的基准, 该控制方法包括以下步 骤: Another technical problem of the present invention is solved by constructing a control of a wirelessly associated digital control lantern system The method is characterized in that a plurality of digital control lights using the same power source and a built-in software address of the power line network are used, and the periodic signal of the power source is used as a reference for the control signal, and the control method comprises the following steps:
1.1) 同时给多个数控彩灯供电;  1.1) Powering multiple CNC lights at the same time;
1.2) 每个数控彩灯从电源的周期性信号中提取同步脉冲并开始计数, 当 计数达到该数控彩灯预置的软件地址中的参数时, 该数控彩灯开始 执行规定动作指令, 并返回本步骤开始并重新计数, 在重新计数过 程中, 该数控彩灯继续执行所述指令。  1.2) Each digital control lantern extracts the synchronization pulse from the periodic signal of the power supply and starts counting. When the counting reaches the parameter in the software address preset by the numerical control lantern, the numerical control lantern starts to execute the specified motion instruction and returns This step starts and recounts, and during the recounting process, the digital control lantern continues to execute the command.
在上述本发明的控制方法中 ,所述数控彩灯包括一个或多个彩灯以及一个 控制器, 所述软件地址设置在控制器中。  In the above control method of the present invention, the numerical control lantern includes one or more lanterns and a controller, and the software address is set in the controller.
在上述按照本发明的控制方法中, 所述电源是同网工频电源, 包括单相或 三相 220V/50HZ或 110V/60 HZ电源; 所述周期信号是单相或三相中任一项中 的正弦波电源周期信号。  In the above control method according to the present invention, the power source is a power-frequency power source of the same network, including a single-phase or three-phase 220V/50HZ or 110V/60 HZ power source; and the periodic signal is any one of single phase or three phase. The sine wave power cycle signal in the middle.
在上述按照本发明的控制方法中, 所述软件地址可以重新设置, 但在步骤 1.1)和步骤 1.2) 中是固定不变的。  In the above control method according to the present invention, the software address can be reset, but is fixed in steps 1.1) and 1.2).
在上述按照本发明的控制方法中, 所述软件地址在步骤 1.1)和步骤 1.2) 中是可变的; 所述数控彩灯还包括内置的地址列表; 在所述步骤 1.2) 中, 还 包括从所述地址列表中顺序读出该数控彩灯的软件地址的过程。  In the above control method according to the present invention, the software address is variable in steps 1.1) and 1.2); the digitally controlled lantern further includes a built-in address list; and in the step 1.2), The process of sequentially reading the software address of the digital control lantern from the address list.
在上述按照本发明的控制方法中 , 所述地址列表可以重新设置。  In the above control method according to the present invention, the address list can be reset.
在上述按照本发明的控制方法中, 对于所述多个数控彩灯中的每一个, 所 述动作指令是一个或多个并可以重新设置; 所述动作是具有时间长度的该数控 彩灯色彩亮度的一个变化过程。  In the above control method according to the present invention, for each of the plurality of numerical control lanterns, the action instruction is one or more and can be reset; the action is the color of the digital control lamp having a length of time A process of changing brightness.
实施按照本发明提供的无线关联的数控彩灯系统及其控制方法,使用共同 电源内部的同步周期信号和软件编址方法,仅在现有的数控彩灯控制器中增加 一个简单的同步脉冲提取电路、软件和软件地址, 实现了利用同一电源釆用电 源线组网的多个由控制器控制的彩灯之间的同步和关联关系,解决了多个或多 组数控彩灯既能方便地独立工作,同时又无须改变任何外部装置能方便地使彩 灯系统同步关联工作的问题, 其中, 采用的控制器及其外置无源编程器, 在客 户或客服人员对控制器重新编程时, 无须拆卸控制器和线路板, 因而绝不会损 伤存储器件的引脚; 同时利用存储器件的片选端增加存储期间中被正规写入的 程序和数据的安全性。利用本发明的数控彩灯系统及其控制方法, 可以广泛应 用到大型场所的灯光景观工程当中, 满足人们追求灯光在美和变化方面的要 求。 Implementing a wirelessly associated digital control lantern system and a control method thereof according to the present invention, using a synchronous periodic signal and a software addressing method within a common power supply, adding a simple synchronization pulse extraction only to an existing digital control controller The circuit, software and software address realizes the synchronization and association between multiple controller-controlled lanterns using the same power supply and power line networking, solving multiple or more The group of CNC lights can work independently and without any need to change any external devices to easily synchronize the work of the lantern system. Among them, the controller and its external passive programmer are used in the customer or customer service. When the person reprograms the controller, there is no need to disassemble the controller and the board, so the pins of the memory device are never damaged. At the same time, the chip select terminal of the memory device is used to increase the security of the program and data that are normally written during the storage period. . The numerical control lantern system and the control method thereof of the invention can be widely applied to the lighting landscape project of a large-scale place, and meet the requirements of people pursuing the beauty and change of the light.
附图说明 DRAWINGS
图 1是现有技术使用 A型控制器的典型数控彩灯的电路示意图。  1 is a circuit diagram of a typical digital control lantern using a type A controller in the prior art.
图 2是本发明提供的单个用于组网的带 A型无线关联控制器的数控彩灯的 电路示意图。  2 is a circuit diagram of a single digital control LED with an A-type wireless correlation controller for networking according to the present invention.
图 3是图 2中无线关联控制器中电源电路的示意图。 图 4是图 2中无线关联控制器中同步脉冲提取电路的示意图。 图 5是利用图 4电路提取同步脉冲的信号时序图。 图 6是本发明提供的 A型无线关联控制器实施例的电路示意图。  3 is a schematic diagram of a power supply circuit in the wireless associated controller of FIG. 2. 4 is a schematic diagram of a synchronization pulse extraction circuit in the wireless associated controller of FIG. 2. Figure 5 is a signal timing diagram for extracting a sync pulse using the circuit of Figure 4. 6 is a circuit diagram of an embodiment of an A-type wireless correlation controller provided by the present invention.
图 7是图 6所示控制器所带驱动电路 (功率板) 的原理示意图。 图 8是本发明提供的 B型无线关联控制器实施例的电路示意图。 图 9是使用本发明提供的外置无源编程器时的电路连接示意图。 图 10是外置无源编程器和控制器配套使用情况下的原理示意图。 图 11是利用本发明数控彩灯进行组网的示意图。  Fig. 7 is a schematic diagram showing the principle of the driving circuit (power board) of the controller shown in Fig. 6. FIG. 8 is a circuit diagram of an embodiment of a Type B wireless association controller provided by the present invention. Figure 9 is a schematic diagram of circuit connections when an external passive programmer provided by the present invention is used. Figure 10 is a schematic diagram of the principle of the external passive programmer and controller. Fig. 11 is a schematic view showing the networking by using the numerical control lantern of the present invention.
具体实施方式 下面结合附图对本发明作进一步说明。 DETAILED DESCRIPTION OF THE INVENTION The present invention will be further described below in conjunction with the accompanying drawings.
1、 电源和电源组网: 1. Power and power networking:
本发明使用同一个电源工作即同网工频电力线 (单相或三相) 中的 N个控 制器, 电源频率 f相同, 电源周期 T=l/f相同。 每个控制器按照彩色灯管的排 列顺序或动作要求具有唯一且固定的位置。 The invention uses the same power supply to work as N control in the same network power frequency power line (single phase or three phase) The controller has the same power frequency f and the power cycle T=l/f is the same. Each controller has a unique and fixed position in accordance with the order in which the colored lamps are arranged or the motion requirements.
2、 数控彩灯  2, CNC lights
在有多个彩灯情况下, 各个彩灯的关联工作的关键在于其控制器能够同步 工作,本发明的数控彩灯包括三基色彩色灯管和对其发光进行控制的并且彼此 关联工作的数控彩灯控制器, 本发明的数控彩灯控制器为无线关联控制器, 其 关键在于其各个控制器之间能够同步工作。  In the case of multiple lanterns, the key to the associated work of each lantern is that its controller can work synchronously. The digital control lantern of the present invention includes three primary color tubes and a numerical control that controls the illumination and works in association with each other. The lantern controller, the digital controller of the invention is a wireless associated controller, and the key is that the controllers can work synchronously.
3、 无线关联控制器  3, wireless associated controller
1 ) 电路结构  1) Circuit structure
本发明针对 A型和 B型数控彩灯控制器分别提供了 A型和 B型无线关联 控制器,这里以 A型无线关联控制器为例说明其构成,使用该无线关联控制器 的无线关联数控彩灯, 其电路结构如图 2所示, 与图 1的现有控制器相比, 该 控制器是在原有 A型控制器的电源电路 202、 单片机智能控制电路 203、 驱动 电路 204的基础上增加了同步脉冲提取电路 202, 用于直接从电源电路 201中 提取同步脉冲并输出给单片机智能控制电路 203 ; 该无线关联控制器包括电源 电路 201、 同步脉冲提取电路 202、 单片机智能控制电路 203和驱动电路 204。 此外, 还在其中的软件模块内增加了计数器和软件地址寄存器 (未示出)。  The invention provides A-type and B-type wireless related controllers for the A-type and B-type numerical control lantern controllers respectively. Here, the A-type wireless associated controller is taken as an example to illustrate the composition thereof, and the wireless associated controller using the wireless associated controller is used. The circuit structure of the lantern is shown in FIG. 2. Compared with the existing controller of FIG. 1, the controller is based on the power circuit 202 of the original A-type controller, the intelligent control circuit 203 of the single-chip microcomputer, and the driving circuit 204. A synchronization pulse extraction circuit 202 is added for directly extracting a synchronization pulse from the power supply circuit 201 and outputting it to the intelligent control circuit 203 of the single chip microcomputer; the wireless correlation controller includes a power supply circuit 201, a synchronization pulse extraction circuit 202, a single chip intelligent control circuit 203, and Drive circuit 204. In addition, counters and software address registers (not shown) have been added to the software modules therein.
无线关联控制器 200中的电源电路 201, 其电路结构如图 3所示, 经过 变压器 T1将市电变压输出 2路 10伏交流电,将其中一路的旁支信号 I引出给 同步脉冲提取电路 202。 这二路 10伏交流电再经过整流稳压输出电源 VCC。 而上述二路 10伏交流电再经过整流滤波输出电源 VCC。 图 2中的同步脉冲提 取电路 202的电路结构如图 4所示, 10伏交流信号通过成对输入端相互反向 设置, 输出端连在一起的光耦在交流信号的中间值零电平处输出窄脉冲。具体 包括连接上述 10伏交流电信号的交流耦合电路 Rl、 R2、 C7、 D4、 D5和提取 同步脉冲的两个光耦合元件 U7和 U8,光耦合元件包括一个光电二极管和一个 光敏三极管。 其工作原理如图 5所示: 当 50HZ/60HZ工聘电源的输入信号电 压大于光电二极管的导通电压时, 光电二极管发光, 光敏三极管导通, 该光耦 合元件输出高电平; 当输入信号电压小于光电二极管的导通电压时, 光电二极 管不发光, 光敏三极管截止, 该光耦合元件输出低电平。 I, 为交流电压信号 I 经过交流耦合电路处理后的信号。 ' The power supply circuit 201 in the wireless correlation controller 200 has a circuit structure as shown in FIG. 3. The transformer T1 converts the commercial power into two 10-volt alternating currents, and one of the bypass signals I is led out to the synchronous pulse extraction circuit 202. The two-way 10 volt AC is then rectified and regulated to output power supply VCC. The above two-way 10 volt AC power is then subjected to rectification and filtering output power supply VCC. The circuit structure of the sync pulse extraction circuit 202 in FIG. 2 is as shown in FIG. 4. The 10 volt AC signal is reversely arranged through the paired input terminals, and the optocouplers connected to the output terminals are at the intermediate value of the AC signal at the zero level. A narrow pulse is output. Specifically, the present invention includes an AC coupling circuit R1, R2, C7, D4, D5 for connecting the above-mentioned 10 volt AC signal and two optical coupling elements U7 and U8 for extracting a sync pulse including a photodiode and a phototransistor. The working principle is shown in Figure 5: When the input signal voltage of the 50HZ/60HZ power supply is greater than the conduction voltage of the photodiode, the photodiode emits light, and the phototransistor is turned on. The component outputs a high level; when the input signal voltage is less than the on-voltage of the photodiode, the photodiode does not emit light, the phototransistor is turned off, and the optical coupling element outputs a low level. I is the signal processed by the AC voltage coupling circuit I through the AC coupling circuit. '
针对目前典型 A型和 B型控制器, 本发明提供了 A型和 B型两种无线关 联控制器。其中 A型的无线关联控制器的电路如图 6所示,单片机 P87LPC764 的 pl.3端口接收同步脉冲信号 T并记数,到达软件地址时,从存储器 24WC02 中获取动作指令,通过连在单片机 P87LPC764的 pl.0、pl.l和 pl.2端口的 RGB 三基色彩灯的驱动电路输出 RGB三色光耦控制脉冲 RI、 GI、 BI和 RGB三色 光耦输出信号 RAI、 GAI、 BAI。 对其中的信号和端子说明如下:  For the present typical A-type and B-type controllers, the present invention provides two types of wireless associated controllers, Type A and Type B. The circuit of the type A wireless associated controller is shown in Figure 6. The pl.3 port of the single-chip P87LPC764 receives the synchronous pulse signal T and counts it. When the software address is reached, the action instruction is obtained from the memory 24WC02, and is connected to the single-chip P87LPC764. The pl.0, pl.l and pl.2 ports of the RGB three-base color lamp drive circuit output RGB three-color optocoupler control pulse RI, GI, BI and RGB three-color optocoupler output signals RAI, GAI, BAI. The signals and terminals are explained as follows:
RAK G A1、 B A1 :三色光耦控制脉冲;  RAK G A1, B A1 : three-color optocoupler control pulse;
RI、 GI 、 BI: 三色光耦输出信号;  RI, GI, BI: three-color optocoupler output signal;
RO、 GO、 BO: 连接三色电子变压器负载;  RO, GO, BO: Connect the three-color electronic transformer load;
COM: 电子变压器负载共用端;  COM: electronic transformer load sharing terminal;
L: 工频电源火线; N: 工频零线;  L: power frequency power line; N: power frequency zero line;
VCC: 直流电源正;  VCC: DC power supply is positive;
GND: 直流电源负 (地);  GND: DC power supply negative (ground);
控制器中的驱动电路如图 7所示, 包括滤波电路(Ll, L2, C2, C6, C7, R4),放大驱动电路输出的信号并滤波输出 RGB三基色彩灯的三色电子变压器 的驱动控制信号 RO、 GO、 BOo  The drive circuit in the controller is shown in Figure 7, including the filter circuit (Ll, L2, C2, C6, C7, R4), amplifying the signal output from the drive circuit and filtering the output of the three-color electronic transformer that outputs the RGB three-color color lamp. Control signals RO, GO, BOo
作为本发明实施例的 B型无线关联控制器, 其硬件电路结构如图 8所示, 它与 A型无线关联控制器不同之处在于输出 Ί路并行控制指令可以同时控制 7 路彩灯,其电路中包括 4个用于串行输入转并行输出的寄存器 74HC373 ,其中 3个 74HC373分别对应 7路 RGB的控制信号输出。 该电路的信号和端子说明 如下- As a B-type wireless associative controller according to an embodiment of the present invention, the hardware circuit structure is as shown in FIG. 8 , which is different from the A-type wireless associated controller in that the output parallel control command can simultaneously control the 7-way lantern. The circuit includes four registers 74HC373 for serial input to parallel output, of which three 74HC373 respectively correspond to 7 RGB control signal outputs. The signal and terminal description of this circuit are as follows -
DB0-DB6: 数据线; DB0-DB6: data line;
Rl-R7、 Gl-G7、 B1-B7: 7组三色连接端代码;  Rl-R7, Gl-G7, B1-B7: 7 sets of three-color connector code;
RA1-RA7、 RB1-RB7、 GA1-GA7、 GB1-GB7、 BA1-BA7、 BB1-BB7 : 7 组三色连接端代码。 RA1-RA7, RB1-RB7, GA1-GA7, GB1-GB7, BA1-BA7, BB1-BB7 : 7 Group three color connector code.
N个控制器使用同一个电网的工频 5 0 HZ或 6 0 HZ电源。 完成 N路 (A 型)或 7 xN路(B型)彩色灯管的控制(N为自然数)。 当使用三相电源时, 每 相之间有 120°C相位差, 每个控制器之间就有可能会有一定时间误差, 此时控 制器之间是一种准同步关系。  N controllers use the same frequency of the power grid 5 0 HZ or 60 0 HZ power supply. Complete the control of N (Type A) or 7 xN (Type B) color tubes (N is a natural number). When using a three-phase power supply, there is a phase difference of 120 °C between each phase, and there may be a certain time error between each controller. At this time, there is a quasi-synchronous relationship between the controllers.
2) 软件编址: 由于每个控制器使用不同的时基地址代码。 控制器间无需 时钟控制线即可完成多路彩色灯管的离散分布控制。软件编址包括静态软件编 址和动态软件编址。  2) Software Addressing: Since each controller uses a different time base address code. The discrete distribution control of multiple color tubes can be accomplished without a clock control line between the controllers. Software addressing includes static software addressing and dynamic software addressing.
①静态软件编址:  1 static software addressing:
多个控制器的软件编址按自然数升序或降序排列即:  The software addressing of multiple controllers is sorted in ascending or descending order of natural numbers:
A(B)1 A(B)2 A(B)3 A(B)N  A(B)1 A(B)2 A(B)3 A(B)N
A、 B为控制器类型、 N为自然数, A(B)n代表具体的软件编址自然数, 1 在关联关系中排列的每一个控制器, 按照以下关系表达式 (1) , 完成彩色 灯管渐变、 闪变、 追逐、 扫描等功能。  A, B is the controller type, N is the natural number, A(B)n represents the specific software addressing natural number, 1 each controller arranged in the association relationship, according to the following relational expression (1), complete the color light tube Gradient, flicker, chase, scan, etc.
M(aeT) (1) M(a e T) (1)
M ……软件地址中的自然数;  M ... the natural number in the software address;
a ……每一个动作状态功能中的时间常数;  a ... the time constant in each action state function;
T ……电源周期。  T ... power cycle.
这种编址方式适用于线状配置的灯光景观工程即:  This addressing method is suitable for the lighting landscape project in a linear configuration:
A(B)1 A(B)2 A(B)3 …… A(B)N;  A(B)1 A(B)2 A(B)3 ...... A(B)N;
(其中 A、 B为控制器类型、 N为自然数)  (where A and B are controller types and N is a natural number)
②动态软件编址: ·  2 dynamic software addressing:
在上面基础上, 每个控制器在工作周期内使用不同的时基地址码, 该地址 码从地址列表中获取。 控制器可以按初始动作地址代码序列升序或降序排列。  On the basis of the above, each controller uses a different time base address code in the work cycle, and the address code is obtained from the address list. The controller can be arranged in ascending or descending order of the initial action address code sequence.
这种编址方式适用于面状阵列配置的灯光景观工程即:  This addressing method is suitable for the lighting landscape project of the planar array configuration:
A(B)11 A(B)12 A(B)13 …… A(B)1N A(B)21 A(B)22 A(B)23 ······ A(B)2N A(B)11 A(B)12 A(B)13 ...... A(B)1N A(B)21 A(B)22 A(B)23 ······ A(B)2N
A(B)31 A(B)32 A(B)33 A(B)3N  A(B)31 A(B)32 A(B)33 A(B)3N
A(B)N1 A(B)N2 A(B)N3 A(B)爾 A(B)N1 A(B)N2 A(B)N3 A(B)
4、 外置无源编程器  4, external passive programmer
该外置编程器可在无线关联控制器带电状态下使用和插拔, 支持带电操 作; 可随时插入控制器编程接口, 编制彩色灯管的动作状态参数,例如,颜色、 周期、 时间。 本发明使用的外置无源编程器, 如图 9和图 10所示, 外置无源 编程器 900有控制头 901和编程头 903, 当它们接通无线关联控制器 200的数 据和信号线接口, 通过短路线可使 E2PROM片选端置 " 0"。 这种结构, 使得 只有将该编程器插入这种控制器的编程接口后,才能编制或修改彩色灯管动作 状态程序。 拔出该编程器 900, 程序存储器 E2PROM的片选端失效, 即只能读 而不能写, 此时再也无法编制或修改动作状态程序。 此种片选端的处理方法, 可以解决程序存储器 E2PROM的错误写入或误动作, 提高控制系统的抗干扰 能力。 本发明提供的外置无源编程器的编程过程包括: 1、 利用计算机和外置 无源编程器进行编程; 2、 利用外置无源编程器和控制器进行编程数据写入。 外置无源编程器的控制头 901和编程头 903插入控制器的控制口 902和编程口 904中, 控制口的孔 905和孔 906短路, 可编程器件 E2PROM片选端 ("0"有 效) 此时接地为低电平。 控制器中的单片机 P87LPC764启动编程模块, 通过 I/O端口读取外置无源编程器中的可编程逻辑阵列中的数据, 且根据该数据重 新写可编程器件 E2PROM中的程序和数据。 在 P87LPC764上述读取写入过程 的开始和结束包括 Setup和 Cancel。 The external programmer can be used and plugged and unplugged when the wireless associated controller is powered, and supports the charging operation; the controller programming interface can be inserted at any time to prepare the operating state parameters of the color light tube, for example, color, period, time. The external passive programmer used in the present invention, as shown in FIGS. 9 and 10, the external passive programmer 900 has a control head 901 and a programming head 903 when they turn on the data and signal lines of the wireless associated controller 200. Interface, the E 2 PROM chip select terminal can be set to "0" by shorting the line. This structure allows the color lamp operation state program to be programmed or modified only after the programmer is inserted into the programming interface of the controller. When the programmer 900 is unplugged, the chip select end of the program memory E 2 PROM is invalid, that is, it can only be read but not written, and the action state program can no longer be programmed or modified. The processing method of the chip selection terminal can solve the error writing or malfunction of the program memory E 2 PROM, and improve the anti-interference ability of the control system. The programming process of the external passive programmer provided by the invention comprises: 1. programming by using a computer and an external passive programmer; 2. programming data writing by using an external passive programmer and a controller. The control head 901 and the programming head 903 of the external passive programmer are inserted into the control port 902 and the programming port 904 of the controller, and the hole 905 of the control port and the hole 906 are short-circuited, and the programmable device E 2 PROM chip select terminal ("0" Valid) Ground is now low. The microcontroller P87LPC764 in the controller starts the programming module, reads the data in the programmable logic array in the external passive programmer through the I/O port, and rewrites the program and data in the programmable device E 2 PROM according to the data. . The start and end of the above read write process at P87LPC764 includes Setup and Cancel.
5、 实施例  5, the embodiment
进一步说明利用电源线以及本发明的基于无线关联控制器的数控彩灯进 行组网, 其系统结构如图 11所示, 包括一个总开关 1101和软件编址的多个并 联的无线关联控制器 1102、 1103、 1104, 每个控制器可以带一个或多个彩灯。  Further, the power cable and the digital associated controller-based digital control lantern of the present invention are used for networking. The system structure is as shown in FIG. 11 , and includes a main switch 1101 and a plurality of parallel wireless associated controllers 1102 that are software-addressed. 1,103, 1104, each controller can carry one or more lanterns.

Claims

权 利 要 求 Rights request
1、 一种无线关联的数控彩灯控制系统, 该系统使用同网工频电源, 包含 有总开关和采用电源线组网的多个数控彩灯, 其特征在于, 所述数控彩灯包含 有一个内置软件地址的无线关联控制器以及一个或多个彩灯; 所述无线关联控 制器包含有顺序连接的同步脉冲提取电路、外接工频电源的控制电路和驱动电 路。 1. A wirelessly associated digital control system for a lantern, the system uses a power frequency power supply of the same network, and includes a main switch and a plurality of digital control lights using a power line network, wherein the digital control lights include a wireless associated controller with a built-in software address and one or more colored lights; the wireless associated controller includes a synchronous pulse extraction circuit sequentially connected, a control circuit for external power frequency power supply, and a drive circuit.
2、 根据权利要求 1 所述系统, 其特征在于, 所述无线关联控制器还包含 有连接在所述同步脉冲提取电路输出端上的计数器, 所述控制电路按所述计数 器的计数值和所述软件地址的比较结果控制和驱动彩灯。  2. The system according to claim 1, wherein the wireless association controller further comprises a counter connected to an output end of the synchronization pulse extraction circuit, wherein the control circuit presses the counter value of the counter and the The comparison result of the software address controls and drives the lantern.
3、 根据权利要求 2所述系统, 其特征在于, 所述控制电路包含有连接电 源电路、 与所述电源电路连接的 CPU以及与 CPU连接的内置彩灯动作指令的 存储器; 所述同步脉冲提取电路输入端连接所述电源电路交流电压引出端, 其 输出端连接 CPU的指定 I/O端, 所述计数器和软件地址内置在 CPU中。  3. The system according to claim 2, wherein the control circuit comprises a power supply circuit, a CPU connected to the power supply circuit, and a built-in lantern operation command connected to the CPU; the synchronization pulse extraction The input end of the circuit is connected to the AC voltage terminal of the power circuit, and the output end thereof is connected to a designated I/O end of the CPU, and the counter and the software address are built in the CPU.
4、 根据权利要求 1 所述系统, 其特征在于, 所述控制电路包含有内置软 件地址的单片机和用于存储动作指令或者动作指令和地址列表的存储器,所述 单片机与存储器通过连接线相连。  The system according to claim 1, wherein said control circuit comprises a single chip microcomputer having a built-in software address and a memory for storing an action command or an action command and an address list, wherein said single chip microcomputer and said memory are connected by a connection line.
5、 根据权利要求 4所述系统, 其特征在于, 所述控制电路包含有与控制 电路连接的控制口和编程口; 所述控制口包括两个孔, 其中一个孔连接内部电 路的地, 另一个孔连接所述片选端并通过电阻 R连接电源 VCC; 所述编程口 连接所述单片机的 I/O端; 所述单片机内置读取所述编程口数据并对所述可擦 写存储器重新编程的编程模块。  5. The system according to claim 4, wherein the control circuit comprises a control port and a programming port connected to the control circuit; the control port comprises two holes, one of the holes is connected to the ground of the internal circuit, and the other is a hole is connected to the chip select terminal and connected to the power source VCC through a resistor R; the programming port is connected to the I/O terminal of the single chip microcomputer; the MCU internally reads the programming port data and re-creates the rewritable memory Programming module.
6、 根据权利要求 5所述系统, 其特征在于, 还包括用于重新设置所述存 储器中的动作指令和地址列表的外置无源编程器;所述无源编程器包含有外壳 和内置的可编程逻辑阵列,所述可编程逻辑阵列与设在所述外壳上的控制头和 编程头相连接; 所述控制头包括两个内部短接的脚, 所述编程头连接所述可编 程逻辑阵列的地址选择端和数据输出端,所述无源编程器可与控制电路的控制 口和编程口连接。 6. The system of claim 5, further comprising means for resetting said deposit An external passive programmer of an action instruction and an address list in the memory; the passive programmer includes a housing and a built-in programmable logic array, the programmable logic array and a control head disposed on the housing Connected to the programming head; the control head includes two internally shorted pins, the programming head is connected to the address selection end and the data output end of the programmable logic array, and the passive programmer can be connected to the control circuit The control port is connected to the programming port.
7、 根据权利要求 3所述系统, 其特征在于, 所述软件地址在所述控制器 工作过程中保持恒定。  7. The system of claim 3 wherein the software address remains constant during operation of the controller.
8、 根据权利要求 3所述系统, 其特征在于, 所述存储器中还内置了地址 列表, 所述软件地址是在所述工作过程中由 CPU从所述地址列表中动态读入 的。  8. The system according to claim 3, wherein the memory further has an address list built in, and the software address is dynamically read by the CPU from the address list during the working process.
9、 根据权利要求 3所述系统, 其特征在于, 所述同步脉冲提取电路包括 两个光耦合元件, 每个光耦合元件包括一个输出端和正负两个输入端, 所述两 个光耦合元件的输出端都连接至 CPU的指定 I/O端;所述两个光耦合元件中一 个的正输入端与另一个的负输入端连在一起一同连接地, 为两个光耦合元件的 输入接地端; 而所述一个的负输入端与另一个的正输入端连在一起一同连接所 述电源电路的交流电压输出端, 为两个光耦合元件的周期信号输入端。  9. The system according to claim 3, wherein said synchronization pulse extraction circuit comprises two optical coupling elements, each optical coupling element comprising an output terminal and two positive and negative input terminals, said two optical couplings The output of the component is connected to the designated I/O terminal of the CPU; the positive input of one of the two optical coupling components is connected together with the negative input of the other, and is the input of the two optical coupling components The grounding terminal; and the negative input terminal of the one and the positive input terminal of the other are connected together to connect the AC voltage output end of the power circuit to the periodic signal input terminals of the two optical coupling components.
10、 根据权利要求 9所述系统, 其特征在于, 所述同步脉冲提取电 S各还包 括位于所述电源电路交流电压输出端和所述周期信号输入端之间的交流耦合 电路。  10. The system according to claim 9, wherein each of the synchronization pulse extraction circuits S further includes an AC coupling circuit between the AC voltage output terminal of the power supply circuit and the periodic signal input terminal.
11、 一种无线关联的数控彩灯系统的控制方法, 其特征在于, 使用同一电 源和采用电源线组网的内置软件地址的多个数控彩灯, 以所述电源的周期信号 作为控制信号的基准, 该控制方法包括以下步骤:  11. A method for controlling a wirelessly associated digital control lantern system, characterized in that a plurality of digital control lanterns using the same power source and a built-in software address of the power cord networking are used, and a periodic signal of the power source is used as a control signal. Benchmark, the control method includes the following steps:
1.3) 同时给多个数控彩灯供电; 1.3) Powering multiple CNC lights at the same time;
1.4) 每个数控彩灯从电源的周期性信号中提取同步脉冲并开始计数, 当 计数达到该数控彩灯预置的软件地址中的参数时, 该数控彩灯开始 执行规定动作指令, 并返回本步骤幵始并重新计数, 在重新计数过 程中, 该数控彩灯继续执行所述指令。 1.4) Each digital control lantern extracts the synchronization pulse from the periodic signal of the power supply and starts counting. When the counting reaches the parameter in the software address preset by the numerical control lantern, the numerical control lantern starts to execute the specified motion instruction and returns This step starts and counts again, and the digital control lantern continues to execute the instruction during the recounting process.
12、 根据权利要求 11所述方法, 其特征在于, 所述数控彩灯包括一个或 多个彩灯以及一个控制器, 所述软件地址设置在控制器中。  12. The method according to claim 11, wherein the digitally controlled lantern comprises one or more lanterns and a controller, and the software address is set in the controller.
13、 根据权利要求 11所述方法, 其特征在于, 所述电源是同网工频电源, 包括单相或三相 220V/50HZ或 110V/60 HZ电源; 所述周期信号是单相或三相 中任一项中的正弦波电源周期信号。  13. The method according to claim 11, wherein the power source is a power frequency power supply of the same network, including a single-phase or three-phase 220V/50HZ or 110V/60 HZ power supply; and the periodic signal is single-phase or three-phase. The sine wave power cycle signal in any of the items.
14、 根据权利要求 11所述方法, 其特征在于, 所述软件地址可以重新设 置, 但在步骤 1.1)和步骤 1.2) 中是固定不变的。  14. Method according to claim 11, characterized in that the software address can be reset, but is fixed in steps 1.1) and 1.2).
15、根据权利要求 11所述方法,其特征在于,所述软件地址在步骤 1.1)和 步骤 1.2) 中是可变的; 所述数控彩灯还包括内置的地址列表; 在所述步骤 1.2) 中, 还包括从所述地址列表中顺序读出该数控彩灯的软件地址的过程。  15. The method of claim 11 wherein said software address is variable in steps 1.1) and 1.2); said digitally controlled lantern further comprising a built-in address list; in said step 1.2) The process also includes sequentially reading out the software address of the digital control lantern from the address list.
16、 据权利要求 15所述方法, 其特征在于, 所述地址列表可以重新设置。 16. The method of claim 15 wherein said address list is reconfigurable.
17、 根据权利要求 11 所述方法, 其特征在于, 对于所述多个数控彩灯中 的每一个, 所述动作指令是一个或多个并可以重新设置; 所述动作是具有时间 长度的该数控彩灯色彩亮度的一个变化过程。 17. The method according to claim 11, wherein, for each of the plurality of digital control lanterns, the action instruction is one or more and can be reset; the action is the length of time A change process in the color brightness of CNC lights.
PCT/CN2004/000256 2003-03-27 2004-03-26 A wireless linked and numerically controlled color ilights system and control method WO2004086825A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CNA031140742A CN1535097A (en) 2003-03-27 2003-03-27 Radio related digital controlled colour lamp system and its control method
CN03114074.2 2003-03-27
CN03224830.X 2003-03-31
CN 03224830 CN2610601Y (en) 2003-03-31 2003-03-31 Controller for digital control colour lamp
CN 03225030 CN2610599Y (en) 2003-04-07 2003-04-07 Digital control colour lamp controller and external passive programming apparatus used with it
CN03225030.4 2003-04-07

Publications (1)

Publication Number Publication Date
WO2004086825A1 true WO2004086825A1 (en) 2004-10-07

Family

ID=33101615

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2004/000256 WO2004086825A1 (en) 2003-03-27 2004-03-26 A wireless linked and numerically controlled color ilights system and control method

Country Status (1)

Country Link
WO (1) WO2004086825A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4386550A (en) * 1980-09-10 1983-06-07 Calfax, Inc. Optically coupled decorative light controller
CN2145490Y (en) * 1993-01-15 1993-11-03 南海市日新电脑控制设备厂 Pattern controllor for colour lamp
CN2201764Y (en) * 1994-05-27 1995-06-21 侯振勇 Microcomputer for controlling colour lamps changing
JP2001297888A (en) * 2000-04-13 2001-10-26 Ado System Kk Light emitting diode circuit used for light

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4386550A (en) * 1980-09-10 1983-06-07 Calfax, Inc. Optically coupled decorative light controller
CN2145490Y (en) * 1993-01-15 1993-11-03 南海市日新电脑控制设备厂 Pattern controllor for colour lamp
CN2201764Y (en) * 1994-05-27 1995-06-21 侯振勇 Microcomputer for controlling colour lamps changing
JP2001297888A (en) * 2000-04-13 2001-10-26 Ado System Kk Light emitting diode circuit used for light

Similar Documents

Publication Publication Date Title
CN101553065B (en) LED atmosphere illumination control system
CN104136273B (en) Lighting Control Assembly
US7508141B2 (en) Modular decorative light system
CN103906319B (en) The method of LED controller and control luminous flux
WO2015196894A1 (en) Multi-mode led lamp string control circuit and led lamp string
CN203225938U (en) Intelligent control system for low-voltage direct-current centralized power supply of LED lamps
CN203052303U (en) Power-saving lighting device with human body induction module
RU2462004C2 (en) Modular solid-state lighting system
CN109068113A (en) Projector and its control system based on signal light control Data Transport Protocol
CN202385363U (en) Stage lamp control system
EP3627975B1 (en) Decorative led light string structure and assembling method thereof
CN109831858A (en) A kind of intelligent illuminating system
CN202603016U (en) Driving circuit of LED (light-emitting diode) fluorescent lamp with adjustable light
CN202396037U (en) Smart lighting system based on power line carrier communication technology
WO2021114547A1 (en) High-precision clock signal-based method and system for realizing led lamp string display synchronization
CN102905433A (en) Multi-compatible LED (Light Emitting Diode) lighting control system
CN2796012Y (en) LED lamp synchronous controller
WO2009036594A1 (en) Modular decorative light system
WO2004086825A1 (en) A wireless linked and numerically controlled color ilights system and control method
CN109315038A (en) LED illumination System and device
CN109451629A (en) It can online lighting control system and lighting system
CN203340349U (en) Light-adjustable and color-adjustable LED street illumination system under control of power line carrier communication
CN211457453U (en) LED dimming circuit and lighting equipment
CN103607817B (en) A kind of mixing dimming control system
CN211406347U (en) Lamp power-on automatic addressing system based on DMX512 protocol

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): BW GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
DPEN Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed from 20040101)
122 Ep: pct application non-entry in european phase