CN205356737U - LED lamp controller - Google Patents

LED lamp controller Download PDF

Info

Publication number
CN205356737U
CN205356737U CN201521109412.5U CN201521109412U CN205356737U CN 205356737 U CN205356737 U CN 205356737U CN 201521109412 U CN201521109412 U CN 201521109412U CN 205356737 U CN205356737 U CN 205356737U
Authority
CN
China
Prior art keywords
module
led lamp
communication
bus
chip
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Lifetime
Application number
CN201521109412.5U
Other languages
Chinese (zh)
Inventor
廖良斌
卓元全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XIAMEN GREENER OPTOELECTRONICS CO Ltd
Original Assignee
XIAMEN GREENER OPTOELECTRONICS CO Ltd
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
Application filed by XIAMEN GREENER OPTOELECTRONICS CO Ltd filed Critical XIAMEN GREENER OPTOELECTRONICS CO Ltd
Priority to CN201521109412.5U priority Critical patent/CN205356737U/en
Application granted granted Critical
Publication of CN205356737U publication Critical patent/CN205356737U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

本实用新型公开了一种LED灯具控制器,其包括RS485通信模块、微控制器MCU模块、继电器开关模块、调光模块和电源模块。本实用新型通过在每盏灯具的微控制器MCU模块内存储有唯一一个ID号,信号通过RS485总线,将命令传输到指定的LED灯具,就可以实现对任意一盏灯具进行开关调光,以及采集LED灯具的电压、电流、功率等参数,从而实现对智能灯光控制系统中的单灯分别进行控制。

The utility model discloses an LED lamp controller, which comprises an RS485 communication module, a microcontroller MCU module, a relay switch module, a dimming module and a power supply module. The utility model stores a unique ID number in the microcontroller MCU module of each lamp, and transmits the command to the designated LED lamp through the RS485 bus, so that any lamp can be switched and dimmed, and Collect the voltage, current, power and other parameters of LED lamps, so as to realize the separate control of single lamps in the intelligent lighting control system.

Description

一种LED灯具控制器A kind of LED lighting controller

技术领域 technical field

本实用新型涉及一种灯具控制领域,具体是一种LED灯具控制器。 The utility model relates to the field of lamp control, in particular to an LED lamp controller.

背景技术 Background technique

随着我国城市地标夜景立面照明的兴起,节能、可控、色彩艳丽的智能灯的使用必将引起技术上的改革,因此智能灯光控制系统也就应运而生。目前的智能灯光控制系统一般采用基于RS485总线控制的智能灯光控制系统,其是通过自定义通信协议在RS485总线上外挂各类型控制器,并由主控统一管理的主从式总线型照明控制系统。 With the rise of night scene facade lighting of urban landmarks in my country, the use of energy-saving, controllable, and colorful smart lights will inevitably lead to technological reforms, so the smart lighting control system will emerge as the times require. The current intelligent lighting control system generally adopts the intelligent lighting control system based on RS485 bus control, which is a master-slave bus lighting control system that connects various types of controllers on the RS485 bus through a custom communication protocol and is managed by the master. .

现有的基于RS485总线控制的智能灯光控制系统中,其灯具的控制方法都是采用回路控制方法,采用此方法只能控制整个回路的所有灯具同时开关以及调光,不能实现单盏灯的控制。 In the existing intelligent lighting control system based on RS485 bus control, the control method of its lamps is the loop control method, which can only control the simultaneous switching and dimming of all lamps in the entire loop, and cannot realize the control of a single lamp .

实用新型内容 Utility model content

本实用新型的目的是提供一种LED灯具控制器,其可对智能灯光控制系统中的单灯分别进行控制。 The purpose of the utility model is to provide a controller for LED lamps, which can separately control the single lamps in the intelligent lighting control system.

为了实现上述目的,本实用新型采用如下技术方案: In order to achieve the above object, the utility model adopts the following technical solutions:

一种LED灯具控制器,包括RS485通信模块、微控制器MCU模块、继电器开关模块、调光模块和电源模块;由所述电源模块为整个控制器提供工作电源,所述RS485通信模块与所述微控制器MCU模块通信连接,所述微控制器MCU模块的输出端分别连接所述继电器开关模块和所述调光模块的控制输入端,所述继电器开关模块和所述调光模块的输出端均与LED灯具相连接;所述微控制器MCU模块内存储有对应于所述LED灯具的一个ID号,且同一智能灯光控制系统中各个LED灯具的ID号各不相同。 A LED lighting controller, including RS485 communication module, microcontroller MCU module, relay switch module, dimming module and power supply module; The microcontroller MCU module is connected in communication, the output terminals of the microcontroller MCU module are respectively connected to the control input terminals of the relay switch module and the dimming module, and the output terminals of the relay switch module and the dimming module All are connected with LED lamps; the microcontroller MCU module stores an ID number corresponding to the LED lamps, and the ID numbers of each LED lamp in the same intelligent lighting control system are different.

所述RS485通信模块的RS-485接口芯片采用SN75LBC184芯片;所述RS485通信模块的单片机与此RS-485接口芯片之间通过隔离电路进行完全的电隔离;所述微控制器MCU模块的复位端连接有外部看门狗电路。 The RS-485 interface chip of described RS485 communication module adopts SN75LBC184 chip; Carry out complete electric isolation by isolation circuit between the one-chip computer of described RS485 communication module and this RS-485 interface chip; The reset terminal of described microcontroller MCU module There is an external watchdog circuit connected.

所述微控制器MCU模块的输出端与所述继电器开关模块的控制输入端之间连接有隔离电路。 An isolation circuit is connected between the output terminal of the microcontroller MCU module and the control input terminal of the relay switch module.

所述调光模块采用数字调光电路。 The dimming module adopts a digital dimming circuit.

采用上述方案后,本实用新型一种LED灯具控制器,通过在每盏灯具的微控制器MCU模块内存储有唯一一个ID号,信号通过RS485总线,将命令传输到指定的LED灯具,就可以实现对任意一盏灯具进行开关调光,以及采集LED灯具的电压、电流、功率等参数,从而实现对智能灯光控制系统中的单灯分别进行控制。 After adopting the above scheme, the utility model is a kind of LED lamp controller, by storing a unique ID number in the microcontroller MCU module of each lamp, the signal is transmitted through the RS485 bus, and the command is transmitted to the designated LED lamp. Realize switching and dimming any lamp, and collect parameters such as voltage, current, and power of LED lamps, so as to realize separate control of individual lamps in the intelligent lighting control system.

附图说明 Description of drawings

图1为本实用新型的电路原理框图; Fig. 1 is the circuit principle block diagram of the present utility model;

图2为图1中微控制器的电路原理图; Fig. 2 is the circuit principle diagram of microcontroller among Fig. 1;

图3为图1中RS485通信模块的电路原理图; Fig. 3 is the circuit principle diagram of RS485 communication module in Fig. 1;

图4为图1中继电器开关模块的电路原理图; Fig. 4 is the schematic circuit diagram of the relay switch module in Fig. 1;

图5为图1中调光模块的电路原理图; Fig. 5 is a schematic circuit diagram of the dimming module in Fig. 1;

图6为图1中电源模块的电路原理图。 FIG. 6 is a schematic circuit diagram of the power module in FIG. 1 .

具体实施方式 detailed description

本实用新型一种LED灯具控制器,如图1所示,包括RS485通信模块1、微控制器MCU模块2、继电器开关模块3、调光模块4和电源模块5;由电源模块5为整个控制器提供工作电源,RS485通信模块1与微控制器MCU模块2通信连接,微控制器MCU模块2的输出端分别连接继电器开关模块3和调光模块4的控制输入端,继电器开关模块3和调光模块4的输出端均与LED灯具6相连接;微控制器MCU模块2内存储有对应于LED灯具6的一个ID号,且同一智能灯光控制系统中各个LED灯具的ID号各不相同。 The utility model is a LED lighting controller, as shown in Figure 1, including RS485 communication module 1, microcontroller MCU module 2, relay switch module 3, dimming module 4 and power module 5; The controller provides working power, the RS485 communication module 1 communicates with the microcontroller MCU module 2, and the output terminals of the microcontroller MCU module 2 are respectively connected to the control input terminals of the relay switch module 3 and the dimming module 4, and the relay switch module 3 and the dimming module The output terminals of the optical module 4 are all connected to the LED lamps 6; an ID number corresponding to the LED lamps 6 is stored in the microcontroller MCU module 2, and the ID numbers of each LED lamp in the same intelligent lighting control system are different.

微控制器MCU模块2采用的MCU为中国台湾新唐的NUC100系列的单片机U1(NUC100LC1BN),NUC100系列为32位单片机,内建ARMcortex-M0内核,用于工业控制及相关需要丰富信号通讯界面的应用场合。最高可运行至50MHZ的外部时钟,具有32K/64K/128K字节内建Flash存储器,4K/8K/16K字节内建SRAM。并内建有定时器,看门狗定时器,RTC,PDMA,UART,SPI/SSP,I2C,I2S,PWM定时器,GPIO,12位ADC,模拟比较器,低电压检测和节能侦测功能。微控制器MCU模块2的电路原理图如图2所示。 The microcontroller MCU module 2 uses the MCU U1 (NUC100LC1BN) of Nuvoton's NUC100 series of Taiwan, China. The NUC100 series is a 32-bit single-chip microcomputer with a built-in ARMcortex-M0 core, which is used for industrial control and related applications that require rich signal communication interfaces. application occasions. The highest external clock can run up to 50MHZ, with 32K/64K/128K bytes built-in Flash memory, 4K/8K/16K bytes built-in SRAM. And built-in timer, watchdog timer, RTC, PDMA, UART, SPI/SSP, I2C, I2S, PWM timer, GPIO, 12-bit ADC, analog comparator, low voltage detection and energy saving detection functions. The circuit schematic diagram of the microcontroller MCU module 2 is shown in FIG. 2 .

在工业控制及测量领域较为常用的网络之一就是物理层采用RS-485通信接口所组成的工控设备网络。这种通信接口可以十分方便地将许多设备组成一个控制网络。从目前解决单片机之间中长距离通信的诸多方案分析来看,RS-485总线通信模式由于具有结构简单、价格低廉、通信距离和数据传输速率适当等特点而被广泛应用于仪器仪表、智能化传感器集散控制、楼宇控制、监控报警等领域。但RS485总线存在自适应、自保护功能脆弱等缺点,很多产品在一些细节的处理,常出现通信失败甚至系统瘫痪等故障,本实用新型中,对RS485通信模块1进行优化设计,从而可以避免以上问题。具体如下: One of the more commonly used networks in the field of industrial control and measurement is the industrial control equipment network composed of RS-485 communication interfaces on the physical layer. This communication interface can easily form a control network with many devices. Judging from the current analysis of many solutions for medium and long-distance communication between single-chip microcomputers, the RS-485 bus communication mode is widely used in instruments, intelligent Sensor distributed control, building control, monitoring alarm and other fields. However, the RS485 bus has shortcomings such as self-adaptation and weak self-protection functions. Many products often have failures such as communication failures or even system paralysis in the processing of some details. In the utility model, the RS485 communication module 1 is optimized to avoid the above-mentioned question. details as follows:

RS485通信模块1中,如图3所示,RS-485接口芯片U2的型号为SN75LBC184,这种芯片采用单一电源Vcc,电压在+3~+5.5V范围内都能正常工作。与普通的RS-485芯片相比,它不但能抗雷电的冲击而且能承受高达8kV的静电放电冲击,片内集成4个瞬时过压保护管,可承受高达400V的瞬态脉冲电压。因此,它能显著提高防止雷电损坏器件的可靠性。对一些环境比较恶劣的现场,可直接与传输线相接而不需要任何外加保护元件。该芯片还有一个独特的设计,当输入端开路时,其输出为高电平,这样可保证接收器输入端电缆有开路故障时,不影响系统的正常工作。另外,它的输入阻抗为RS485标准输入阻抗的2倍(≥24kΩ),故可以在总线上连接64个收发器。芯片内部设计了限斜率驱动,使输出信号边沿不会过陡,使传输线上不会产生过多的高频分量,从而有效扼制电磁干扰。 In RS485 communication module 1, as shown in Figure 3, the model of RS-485 interface chip U2 is SN75LBC184. This chip uses a single power supply Vcc, and the voltage can work normally within the range of +3~+5.5V. Compared with ordinary RS-485 chips, it can not only resist the impact of lightning but also withstand the impact of electrostatic discharge up to 8kV. The chip integrates 4 transient overvoltage protection tubes, which can withstand transient pulse voltage up to 400V. Therefore, it can significantly improve the reliability of preventing lightning damage to the device. For some sites with harsh environments, it can be directly connected to the transmission line without any additional protective components. The chip also has a unique design. When the input end is open, its output is high level, which can ensure that the normal operation of the system will not be affected when the receiver input cable has an open circuit fault. In addition, its input impedance is twice the standard input impedance of RS485 (≥24kΩ), so 64 transceivers can be connected to the bus. The limited slope drive is designed inside the chip, so that the edge of the output signal will not be too steep, so that too many high-frequency components will not be generated on the transmission line, thereby effectively suppressing electromagnetic interference.

另外,RS485通信模块1中,四位一体的光电耦合器U3(TLP521)对单片机U1与RS-485接口芯片U2进行完全的电隔离,使得单片机U1与RS-485接口芯片U2之间完全没有了电的联系,提高了工作的可靠性。其基本原理为:当单片机U1的第19脚PC1=0时,光电耦合器U3的发光二极管发光,光敏三极管导通,输出高电压(+5V),选中RS485接口芯片U2的DE端,允许发送。当单片机U1的第19脚PC1=1时,光电耦合器U3的发光二极管不发光,光敏三极管不导通,输出低电压(0V),选中RS485接口芯片U2的RE端,允许接收。RS485接口芯片U2的R端(接收端)和D端(发送端)的原理与上述类似。 In addition, in the RS485 communication module 1, the four-in-one photocoupler U3 (TLP521) completely electrically isolates the single-chip microcomputer U1 and the RS-485 interface chip U2, so that there is no connection between the single-chip microcomputer U1 and the RS-485 interface chip U2. The electrical connection improves the reliability of the work. The basic principle is: when the 19th pin PC1=0 of the single-chip microcomputer U1, the light-emitting diode of the photocoupler U3 lights up, the photosensitive transistor is turned on, and the high voltage (+5V) is output, and the DE terminal of the RS485 interface chip U2 is selected to allow sending. When the 19th pin PC1=1 of the single chip microcomputer U1, the light-emitting diode of the photocoupler U3 does not emit light, the phototransistor does not conduct, and outputs a low voltage (0V), and the RE terminal of the RS485 interface chip U2 is selected to allow reception. The principles of the R terminal (receiving terminal) and D terminal (transmitting terminal) of the RS485 interface chip U2 are similar to the above.

在RS-485总线构筑的半双工通信系统中,在整个网络中任一时刻只能有一个节点处于发送状态并向总线发送数据,其他所有节点都必须处于接收状态。如果有2个节点或2个以上节点同时向总线发送数据,将会导致所有发送方的数据发送失败。因此,在系统各个节点的硬件设计中,应首先力求避免因异常情况而引起本节点向总线发送数据而导致总线数据冲突。以NUC100系列的单片机为例,因其在系统复位时,I/O口都输出高电平,如果把I/O口直接与RS-485接口芯片的驱动器使能端DE相连,会在MCU复位期间使DE为高,从而使本节点处于发送状态。如果此时总线上有其他节点正在发送数据,则此次数据传输将被打断而告失败,甚至引起整个总线因某一节点的故障而通信阻塞,继而影响整个系统的正常运行。考虑到通信的稳定性和可靠性,在每个节点的设计中应将控制RS485总线接口芯片的发送引脚设计成DE端的反逻辑,即控制引脚为逻辑“1”时,DE端为“0”;控制引脚为逻辑“0”时,DE端为“1”。本实用新型中,将单片机U1的第19脚PC1通过光电耦合器U3驱动RS485接口芯片U2的DE端,这样就可以使控制引脚为高或者异常复位时使RS485接口芯片U2始终处于接收状态,从而从硬件上有效避免节点因异常情况而对整个系统造成的影响。这就为整个系统的通信可靠奠定了基础。 In the half-duplex communication system built by the RS-485 bus, only one node can be in the sending state and send data to the bus at any time in the entire network, and all other nodes must be in the receiving state. If there are 2 nodes or more than 2 nodes sending data to the bus at the same time, it will cause the data sending failure of all senders. Therefore, in the hardware design of each node of the system, efforts should be made to avoid bus data conflicts caused by the node sending data to the bus due to abnormal conditions. Take the NUC100 series single-chip microcomputer as an example, because when the system is reset, the I/O port outputs high level, if the I/O port is directly connected to the driver enable terminal DE of the RS-485 interface chip, it will reset the MCU Make DE high during this period, so that this node is in the sending state. If other nodes on the bus are sending data at this time, the data transmission will be interrupted and fail, and even cause the entire bus to be blocked due to the failure of a certain node, which will affect the normal operation of the entire system. Considering the stability and reliability of communication, in the design of each node, the sending pin of the control RS485 bus interface chip should be designed as the inverse logic of the DE end, that is, when the control pin is logic "1", the DE end is "" 0"; when the control pin is logic "0", the DE terminal is "1". In the utility model, the 19th pin PC1 of the single-chip microcomputer U1 drives the DE end of the RS485 interface chip U2 through the photocoupler U3, so that the RS485 interface chip U2 is always in the receiving state when the control pin is high or abnormally reset. In this way, the hardware can effectively avoid the influence of nodes on the entire system due to abnormal conditions. This has laid the foundation for the communication of the whole system to be reliable.

此外,RS485通信模块1的复位端还连接有一片看门狗芯片U11(MAX813L),能在节点发生死循环或其他故障时,自动复位程序,交出RS-485总线控制权。这样就能保证整个系统不会因某一节点发生故障而独占总线,导致整个系统瘫痪。 In addition, a watchdog chip U11 (MAX813L) is connected to the reset terminal of the RS485 communication module 1, which can automatically reset the program and hand over the control of the RS-485 bus when an infinite loop or other failure occurs in the node. This can ensure that the entire system will not monopolize the bus due to a failure of a certain node, causing the entire system to be paralyzed.

当一个节点需要使用总线时,为了实现总线通信可靠,在有数据需要发送的情况下先侦听总线。在硬件接口上,首先将RS-485接口芯片U2的数据接收引脚反相后接至单片机U1中断引脚INT1。在图3中,INT1是连至光电耦合器U3的输出端。当总线上有数据正在传输时,RS-485接口芯片U2的数据接收端(R端)表现为变化的高低电平,利用其产生的微控制器MCU模块2下降沿中断(也可采用查询方式),能得知此时总线是否正“忙”,即总线上是否有节点正在通信。如果“空闲”,则可以得到对总线的使用权限,这样就较好地解决了总线冲突的问题。在此基础上,还可以定义各种消息的优先级,使高优先级的消息得以优先发送,从而进一步提高系统的实时性。采用这种工作方式后,系统中已经没有主、从节点之分,各个节点对总线的使用权限是平等的,从而有效避免了个别节点通信负担较重的情况。总线的利用率和系统的通信效率都得以大大提高,从而也使系统响应的实时性得到改善,而且即使系统中个别节点发生故障,也不会影响其他节点的正常通信和正常工作。这样使得系统的“危险”分散了,从某种程度上来说增强了系统的工作可靠性和稳定性。 When a node needs to use the bus, in order to achieve reliable bus communication, it first listens to the bus when there is data to be sent. On the hardware interface, first invert the data receiving pin of the RS-485 interface chip U2 and then connect it to the interrupt pin INT1 of the single-chip microcomputer U1. In Fig. 3, INT1 is connected to the output end of photocoupler U3. When there is data being transmitted on the bus, the data receiving end (R end) of the RS-485 interface chip U2 shows a changing high and low level, and the falling edge interrupt of the microcontroller MCU module 2 generated by it is interrupted (the query mode can also be used) ), you can know whether the bus is "busy" at this time, that is, whether there are nodes on the bus that are communicating. If it is "idle", you can get the right to use the bus, which better solves the problem of bus conflicts. On this basis, you can also define the priority of various messages, so that high-priority messages can be sent first, thereby further improving the real-time performance of the system. After adopting this working method, there is no distinction between master and slave nodes in the system, and each node has equal authority to use the bus, thus effectively avoiding the heavy communication burden of individual nodes. The utilization rate of the bus and the communication efficiency of the system can be greatly improved, so that the real-time performance of the system response is also improved, and even if an individual node in the system fails, it will not affect the normal communication and normal work of other nodes. In this way, the "danger" of the system is dispersed, and the reliability and stability of the system are enhanced to some extent.

稳压管VD1~VD4为信号限幅二极管,其稳压值应保证符合RS-485标准,稳压管VD1和VD3取12V,稳压管VD2和VD4取7V,以保证将信号幅度限定在-7~+12V之间,进一步提高抗过压的能力。考虑到线路的特殊情况(如某一节点的RS-485芯片被击穿短路),为防止总线中其他分机的通信受到影响,在RS-485接口芯片U2的信号输出端串联了2个20Ω的电阻R1和R2,这样本机的硬件故障就不会使整个总线的通信受到影响。在应用系统工程的现场施工中,由于通信载体是双绞线,它的特性阻抗为120Ω左右,所以线路设计时,在RS485网络传输线的始端和末端应各接1个120Ω的匹配电阻(如图3中的R3),以减少线路上传输信号的反射。 Zener tubes VD1~VD4 are signal limiting diodes, and their voltage regulator values should be guaranteed to meet the RS-485 standard. The voltage regulator tubes VD1 and VD3 take 12V, and the voltage regulator tubes VD2 and VD4 take 7V to ensure that the signal amplitude is limited to - 7~+12V, to further improve the ability to resist overvoltage. Considering the special situation of the line (such as the RS-485 chip of a certain node being broken down and short-circuited), in order to prevent the communication of other extensions in the bus from being affected, two 20Ω Resistors R1 and R2, so that the hardware failure of this machine will not affect the communication of the whole bus. In the field construction of application system engineering, because the communication carrier is a twisted pair, its characteristic impedance is about 120Ω, so when designing the line, a 120Ω matching resistor should be connected to the beginning and end of the RS485 network transmission line (as shown in the figure 3) to reduce the reflection of the transmitted signal on the line.

继电器是一种电子控制器件,它具有控制系统(又称输入回路)和被控制系统(又称输出回路),通常应用于自动控制电路中,它实际上是用较小的电流去控制较大电流的一种“自动开关”。故在电路中起着自动调节、安全保护、转换电路等作用。电磁式继电器一般由铁芯、线圈、衔铁、触点簧片等组成的。只要在线圈两端加上一定的电压,线圈中就会流过一定的电流,从而产生电磁效应,衔铁就会在电磁力吸引的作用下克服返回弹簧的拉力吸向铁芯,从而带动衔铁的动触点与静触点(常开触点)吸合。当线圈断电后,电磁的吸力也随之消失,衔铁就会在弹簧的反作用力返回原来的位置,使动触点与原来的静触点(常闭触点)吸合。这样吸合、释放,从而达到了在电路中的导通、切断的目的。对于继电器的“常开、常闭”触点,可以这样来区分:继电器线圈未通电时处于断开状态的静触点,称为“常开触点”;处于接通状态的静触点称为“常闭触点”。 The relay is an electronic control device, which has a control system (also known as the input circuit) and a controlled system (also known as the output circuit), usually used in automatic control circuits, it actually uses a smaller current to control a larger An "automatic switch" of electric current. Therefore, it plays the role of automatic adjustment, safety protection, and conversion circuit in the circuit. Electromagnetic relays are generally composed of iron cores, coils, armatures, contact reeds, etc. As long as a certain voltage is applied to both ends of the coil, a certain current will flow through the coil, thereby generating an electromagnetic effect. The moving contact and the static contact (normally open contact) are sucked together. When the coil is de-energized, the electromagnetic suction force will also disappear, and the armature will return to its original position under the reaction force of the spring, so that the moving contact and the original static contact (normally closed contact) will be attracted. In this way, it is attracted and released, so as to achieve the purpose of conducting and cutting off in the circuit. For the "normally open and normally closed" contacts of the relay, it can be distinguished in this way: the static contact that is in the off state when the relay coil is not energized is called "normally open contact"; the static contact in the on state is called For "normally closed contact".

本实用新型中,继电器开关模块3如图4所示,微控制器MCU模块2的第21脚PE5口接到光耦U5(PC817)的第2脚,PE5口输出高低电平,经过光耦U5隔离,控制三极管QM3的开关,从而控制继电器KM2的闭合与断开。 In the utility model, the relay switch module 3 is shown in Fig. 4, the 21st pin PE5 port of the microcontroller MCU module 2 is connected to the 2nd pin of the optocoupler U5 (PC817), and the PE5 port outputs high and low levels, and through the optocoupler U5 is isolated and controls the switch of the triode QM3, thereby controlling the closing and opening of the relay KM2.

使用继电器控制比较大的负载时,如果没有进行信号隔离,很容易对前端电路产生影响,造成整个产品工作不稳定。本实用新型的继电器开关模块2中,在继电器KM2前端加入光耦U5,使继电器KM2开关部分与控制继电器的微控制器MCU模块2进行隔离,避免继电器KM2开关动作时,产生少量的反击电压或者电流对微控制器MCU模块2造成影响,使微控制器MCU模块2能够更加稳定工作,从而使整个控制器更加稳定。 When using a relay to control a relatively large load, if there is no signal isolation, it is easy to affect the front-end circuit and cause the entire product to work unstable. In the relay switch module 2 of the present utility model, an optocoupler U5 is added to the front end of the relay KM2, so that the switch part of the relay KM2 is isolated from the microcontroller MCU module 2 controlling the relay, so as to avoid generating a small amount of backlash voltage or The current affects the microcontroller MCU module 2, so that the microcontroller MCU module 2 can work more stably, thereby making the entire controller more stable.

如图5所示,调光模块4的作用是将微控制器MCU模块2输出的PWM波信号转化为0-10V电压信号,微控制器MCU模块2的PWM1口输出0-5V的PWM波信号,经过光耦U7隔离,转换为0-3.3V的PWM波信号,PWM波经过三极管Q3放大,输入到电压集成放大器U8,由电阻R45、R46决定电压放大倍数,本实施例中,应用的电压放大倍数是3倍,电容C36、C37、C38、C39为滤波电容,本实用新型的调光模块4与现有调光模块的区别是:现有的0-10V调光,大部分都是使用模拟电路调光,即通过调节电阻的阻值,使输出的电压发生变化,模拟调光的输出调光精度比较低。本实用新型的调光模块4采用数字方式进行调光,通过调节方波信号占空比进行调光,输出调光精度比较高。 As shown in Figure 5, the function of the dimming module 4 is to convert the PWM wave signal output by the microcontroller MCU module 2 into a 0-10V voltage signal, and the PWM1 port of the microcontroller MCU module 2 outputs a 0-5V PWM wave signal , after being isolated by the optocoupler U7, it is converted into a PWM wave signal of 0-3.3V. The PWM wave is amplified by the transistor Q3 and input to the voltage integration amplifier U8. The voltage amplification factor is determined by the resistors R45 and R46. In this embodiment, the applied voltage The magnification is 3 times, and the capacitors C36, C37, C38, and C39 are filter capacitors. The difference between the dimming module 4 of the present invention and the existing dimming module is that most of the existing 0-10V dimming uses Analog circuit dimming means changing the output voltage by adjusting the resistance value of the resistor. The output dimming accuracy of analog dimming is relatively low. The dimming module 4 of the utility model adopts a digital method for dimming, and the dimming is performed by adjusting the duty cycle of the square wave signal, and the output dimming precision is relatively high.

如图6所示,本实用新型的电源模块5分为四部分,第一部分为:将市电AC220V通过电源芯片U6转为直流电压15V;第二部分为:将直流电压15V经过稳压芯片UM4(L78M12)转化为直流电压12V;第三部分为:将直流电压12V经过稳压芯片UM5(L78M05)转化为直流电压5V;第四部分为:将直流电压5V经过稳压芯片UM13(SPX1117M3-3.3)转化为直流电压3.3V。 As shown in Figure 6, the power supply module 5 of the present utility model is divided into four parts, the first part is: the mains AC220V is converted to a DC voltage of 15V through the power chip U6; the second part is: the DC voltage of 15V is passed through the voltage regulator chip UM4 (L78M12) into a DC voltage of 12V; the third part is: convert the DC voltage 12V into a DC voltage of 5V through the voltage regulator chip UM5 (L78M05); the fourth part is: convert the DC voltage 5V through the voltage regulator chip UM13 (SPX1117M3-3.3 ) into a DC voltage of 3.3V.

Claims (4)

1. a LED lamp controller, it is characterised in that: include RS485 communication module, microcontroller module, relay switch module, light-adjusting module and power module;Working power is provided for whole controller by described power module, described RS485 communication module and the communication connection of described microcontroller module, the outfan of described microcontroller module connects the control input of described relay switch module and described light-adjusting module respectively, and described relay switch module is all connected with LED lamp with the outfan of described light-adjusting module;Described microcontroller module memory contains No. ID corresponding to described LED lamp, and in same intelligent light control system No. ID of each LED lamp different.
2. a kind of LED lamp controller according to claim 1, it is characterised in that: the RS-485 interface chip of described RS485 communication module adopts SN75LBC184 chip;Electrically insulated completely by isolation circuit between single-chip microcomputer and this RS-485 interface chip of described RS485 communication module;The reset terminal of described microcontroller module is connected to outer watchdog circuit.
3. a kind of LED lamp controller according to claim 1, it is characterised in that: it is connected to isolation circuit between outfan and the control input of described relay switch module of described microcontroller module.
4. a kind of LED lamp controller according to claim 1, it is characterised in that: described light-adjusting module adopts digital light-adjusting circuit.
CN201521109412.5U 2015-12-29 2015-12-29 LED lamp controller Expired - Lifetime CN205356737U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201521109412.5U CN205356737U (en) 2015-12-29 2015-12-29 LED lamp controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201521109412.5U CN205356737U (en) 2015-12-29 2015-12-29 LED lamp controller

Publications (1)

Publication Number Publication Date
CN205356737U true CN205356737U (en) 2016-06-29

Family

ID=56171741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201521109412.5U Expired - Lifetime CN205356737U (en) 2015-12-29 2015-12-29 LED lamp controller

Country Status (1)

Country Link
CN (1) CN205356737U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105517239A (en) * 2015-12-29 2016-04-20 厦门格绿能光电股份有限公司 Led lamp intelligent terminal controller
CN107750073A (en) * 2017-11-01 2018-03-02 合肥艾斯克光电科技有限责任公司 One kind is based on PWM light modulating LED light fixture wireless control systems
CN108040397A (en) * 2017-12-28 2018-05-15 北京启冠智能科技股份有限公司 A kind of LED intelligent dimmings controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105517239A (en) * 2015-12-29 2016-04-20 厦门格绿能光电股份有限公司 Led lamp intelligent terminal controller
CN105517239B (en) * 2015-12-29 2017-09-15 厦门格绿能光电股份有限公司 Led lamp intelligent terminal controller
CN107750073A (en) * 2017-11-01 2018-03-02 合肥艾斯克光电科技有限责任公司 One kind is based on PWM light modulating LED light fixture wireless control systems
CN108040397A (en) * 2017-12-28 2018-05-15 北京启冠智能科技股份有限公司 A kind of LED intelligent dimmings controller

Similar Documents

Publication Publication Date Title
CN105517239B (en) Led lamp intelligent terminal controller
CN206743209U (en) A single live wire electronic switch circuit
CN107069655B (en) Voltage protection circuit
CN104425184A (en) Control device for switching on and switching off relay and air conditioner
CN205356737U (en) LED lamp controller
CN109287056A (en) A single live wire electronic switch
CN204189728U (en) A kind of functional module of circuit breaker and circuit breaker
CN208092205U (en) A kind of closed-loop detection circuit for detecting relay output state
CN105120563A (en) Single-chip-microcomputer-based intelligent household illumination system
CN204559952U (en) A kind of for the intelligent switch controller in intelligent illuminating system
CN204719447U (en) The current ring communication of air conditioner and off-premises station thereof and power-supplying circuit
CN107309886A (en) A kind of household intelligent robot system
CN202395741U (en) Single-pole double-throw electronic switch with single wire system
CN101493678B (en) Intelligent controller for universal breaker and control method thereof
CN205210536U (en) Digital output module of redundant output based on special CPU
CN102176590B (en) Wire holder for automatically managing household electric appliances by computer
CN116047992A (en) Input-output integrated interface of PLC control module and method thereof
CN212255647U (en) Novel solenoid valve connection state detection circuit
CN102570199A (en) Intelligent power utilization socket
CN106781411A (en) The double main frame combination methods of M Bus and the double engine control systems of communication interface converter, M Bus
CN209419955U (en) A kind of gesture induction switch panel
CN109059196B (en) Wall-mounted air conditioner zero-power-consumption standby intelligent power line
CN201674476U (en) Energy saving and environmental protection smart switch
CN204423008U (en) A kind of intelligent domestic system based on Internet of Things
CN207852067U (en) A kind of remote alarm system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20160629

CX01 Expiry of patent term