[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106879151A - Intelligent single live wire switch circuit and control method - Google Patents

Intelligent single live wire switch circuit and control method Download PDF

Info

Publication number
CN106879151A
CN106879151A CN201710296828.XA CN201710296828A CN106879151A CN 106879151 A CN106879151 A CN 106879151A CN 201710296828 A CN201710296828 A CN 201710296828A CN 106879151 A CN106879151 A CN 106879151A
Authority
CN
China
Prior art keywords
module
circuit
live wire
single live
main control
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.)
Granted
Application number
CN201710296828.XA
Other languages
Chinese (zh)
Other versions
CN106879151B (en
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.)
Shanghai Ziguang Lelian Networking Technology Co Ltd
Original Assignee
Shanghai Ziguang Lelian Networking Technology 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 Shanghai Ziguang Lelian Networking Technology Co Ltd filed Critical Shanghai Ziguang Lelian Networking Technology Co Ltd
Priority to CN201710296828.XA priority Critical patent/CN106879151B/en
Publication of CN106879151A publication Critical patent/CN106879151A/en
Application granted granted Critical
Publication of CN106879151B publication Critical patent/CN106879151B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

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

Abstract

本发明公开了一种单火线智能开关电路,解决了在待机时,由于输入电流太小导致灯具关闭后出现闪烁或微亮、触电风险、机械开关寿命短等问题。单火线智能开关电路,包括取电电路模块(2)、负载检测模块(3)、继电器模块(1)、Zigbee模块(4)、按键模块(5)、接口电路模块(6),单火线智能开关采用单火线取电方案(该设备必须连接负载才能工作),使用标准86盒外壳,设备电路首先通过负载检测后,实现本地按键或远程控制命令(zigbee无线通信)来完成支路的通断电功能,伴随着本地按键控制支路的通断电,设备都会向主机发送当状态数据,该数据反映出每个支路当前的通断电状态,实现了智能控制。The invention discloses a single live wire intelligent switch circuit, which solves the problems of flickering or dim light after the lamp is turned off due to too small input current, risk of electric shock, and short service life of the mechanical switch during standby. Single live wire intelligent switch circuit, including power-taking circuit module (2), load detection module (3), relay module (1), Zigbee module (4), button module (5), interface circuit module (6), single live wire intelligent The switch adopts a single live wire power-taking scheme (the device must be connected to a load to work), using a standard 86-box casing. After the device circuit first passes the load detection, it realizes local buttons or remote control commands (zigbee wireless communication) to complete the on-off of the branch circuit Power function, along with the local button to control the power on and off of the branch, the device will send the current status data to the host, which reflects the current power on and off status of each branch, realizing intelligent control.

Description

智能单火线开关电路及控制方法 Intelligent single live wire switch circuit and control method

技术领域technical field

本发明涉及单火线开关电路及控制方法,具体涉及一种智能单火线开关电路及控制方法。The invention relates to a single live wire switch circuit and a control method, in particular to an intelligent single live wire switch circuit and a control method.

背景技术Background technique

日常生活中,单火线照明开关一般由简单的机械开关控制,通过机械开关控制一根火线的闭合与断开,进而控制灯具的开启与关闭。目前,还有部分楼道的灯具采用电容式触摸开关来控制灯具的点亮和熄灭。这两种开关都存在一些缺点,其中:机械开关具有一定的机械寿命,电容式触摸开关容易产生误动作,抗干扰能力较差。In daily life, the single live wire lighting switch is generally controlled by a simple mechanical switch, which controls the closing and disconnecting of one live wire, and then controls the turning on and off of the lamp. At present, some lamps in the corridors use capacitive touch switches to control the lighting and extinguishing of the lamps. These two switches have some disadvantages, among which: the mechanical switch has a certain mechanical life, the capacitive touch switch is prone to misoperation, and the anti-interference ability is poor.

目前,单火线还具有一些问题需要得到解决:一、单火线取电一般是在取电电路与负载(MCU)供电,因此前端的元器件需要保持一直运行的状态,这样就会消耗电流,而且由于是串联的电路,使灯具中会有电流流过,而普通的LED灯和白炽灯启动电流非常小,当待机时灯具回路电流积累到一定程度后,部分小功率灯具就会出现闪烁的问题,目前解决此问题的常用办法是尽量降低待机功耗。二、在单火线的情况下,电源一般不能做成隔离电源,这样就增加了触电风险,目前解决该问题的方法常采用继电器导通方式,利用主控芯片控制驱动芯片从而控制继电器的闭合与断开;三、在智能设备的通讯过程中,传统的控制方法需要双方设备时刻保持畅通,这样会带来设备功耗大 ,适用性差。At present, the single live wire still has some problems that need to be solved: 1. The single live wire power supply is generally supplied by the power supply circuit and the load (MCU), so the front-end components need to keep running all the time, which will consume current, and Because it is a series circuit, there will be current flowing in the lamps, and the starting current of ordinary LED lamps and incandescent lamps is very small. When the lamp circuit current accumulates to a certain level during standby, some low-power lamps will appear to flicker. , the current common way to solve this problem is to minimize the standby power consumption. 2. In the case of a single live wire, the power supply generally cannot be made into an isolated power supply, which increases the risk of electric shock. At present, the method to solve this problem often adopts the relay conduction method, and uses the main control chip to control the drive chip to control the closing and closing of the relay. Disconnect; 3. In the communication process of smart devices, the traditional control method requires both devices to keep unblocked at all times, which will lead to high power consumption of the devices and poor applicability.

发明内容Contents of the invention

本发明的目的在于提供一种能够根据本地按键或者远程控制命令Zigbee无线通信来完成支路的通断电功能的智能单火线开关电路,解决了机械开关寿命短、触电风险大、灯具寿命短、功耗大,适用性差等问题。The purpose of the present invention is to provide an intelligent single live wire switch circuit that can complete the power on and off function of the branch circuit according to the local button or remote control command Zigbee wireless communication, which solves the problems of short life of the mechanical switch, high risk of electric shock, short life of the lamp, etc. High power consumption, poor applicability and other issues.

为解决上述的技术问题,本发明采用以下技术方案:一种智能单火线开关电路,包括取电电路模块、负载检测模块、继电器模块、Zigbee模块、按键模块、接口电路模块,其特征在于:所述取电电路模块2与继电器模块3连接;所述Zigbee模块与按键模块连接;所述取电电路模块与Zigbee模块连接;所述负载检测模块与Zigbee模块连接;所述接口电路模块与Zigbee模块连接;述负载检测模块与接口电路模块连接。In order to solve the above-mentioned technical problems, the present invention adopts the following technical solutions: an intelligent single live wire switch circuit, including a power-taking circuit module, a load detection module, a relay module, a Zigbee module, a button module, and an interface circuit module, characterized in that: The power-taking circuit module 2 is connected with the relay module 3; the Zigbee module is connected with the button module; the power-taking circuit module is connected with the Zigbee module; the load detection module is connected with the Zigbee module; the interface circuit module is connected with the Zigbee module connection; the load detection module is connected with the interface circuit module.

更进一步的技术方案是,所述取电电路模块包括供电电路和软启动电路,所述供电电路的主控模块是XD-KC024,所述主控模块XD-KC024的VCC1端与软启动电路的DCin、VIN端连接,所述主控模块XD-KC024芯片的MOS_D端、MOS_G端连接MOS管,用于调整单火线进入的波形。A further technical solution is that the power-taking circuit module includes a power supply circuit and a soft-start circuit, the main control module of the power supply circuit is XD-KC024, and the VCC1 terminal of the main control module XD-KC024 is connected to the soft-start circuit The DCin and VIN terminals are connected, and the MOS_D and MOS_G terminals of the XD-KC024 chip of the main control module are connected to the MOS transistors, which are used to adjust the waveform entered by the single live wire.

更进一步的技术方案是,软启动电路包括软启动主控电路、硬件看门狗电路和启动电路,软启动主控电路的主控模块是PI-05V-D4,所述硬件看门狗模块的主控芯片是IMP809L,所述启动电路的稳压芯片是S-8521D33MC,所述主控模块PI-05-D4的OUT端与所述S-8521D33MC的的VIN端连接用于输出3.3V的稳定电压,所述IMP809L的RESET端与S-8521D33MC的ON/OFF端、S-8521D33MC的EXT与MOS管UT2301栅极连接用于软启动。A further technical solution is that the soft start circuit includes a soft start main control circuit, a hardware watchdog circuit and a start circuit, the main control module of the soft start main control circuit is PI-05V-D4, and the hardware watchdog module The main control chip is IMP809L, the voltage regulator chip of the start-up circuit is S-8521D33MC, and the OUT terminal of the main control module PI-05-D4 is connected to the VIN terminal of the S-8521D33MC for stable output of 3.3V. Voltage, the RESET terminal of the IMP809L is connected to the ON/OFF terminal of the S-8521D33MC, and the EXT of the S-8521D33MC is connected to the gate of the MOS transistor UT2301 for soft start.

更进一步的技术方案是,所述负载检测模块包括分压电路和电压比较电路,分压电路的ADC1、ADC2、ADC3端与电压比较电路连接,电压比较电路的OUT1、OUT2、OUT3与Zigbee模块连接,用于接受检测负载电路的电平信号,避免由于误操作按键而增加功耗造成开关设备无法正常工作。A further technical solution is that the load detection module includes a voltage divider circuit and a voltage comparison circuit, the ADC1, ADC2, and ADC3 terminals of the voltage divider circuit are connected to the voltage comparison circuit, and the OUT1, OUT2, and OUT3 of the voltage comparison circuit are connected to the Zigbee module , used to receive the level signal of the detection load circuit, to avoid the switch equipment not working properly due to the increase of power consumption due to misoperation of the key.

更进一步的技术方案是,所述Zigbee模块与所述主控模块XD-KCO24的K1_Ctrl、K1_Ctrl、K1_Ctrl端连接,所述主控模块XD-KCO24的K1+、K1-,K2+、K2-,K3+、K3-端与继电器模块连接。A further technical solution is that the Zigbee module is connected to the K1_Ctrl, K1_Ctrl, and K1_Ctrl ends of the main control module XD-KCO24, and the K1+, K1-, K2+, K2-, K3+, K3-end is connected with the relay module.

更进一步的技术方案是,所述Zigbee模块与按键模块连接,用于控制按键扫描。A further technical solution is that the Zigbee module is connected with the button module for controlling button scanning.

更进一步的技术方案是,所述Zigbee模块包括无线电路和通信电路,所述通信模块的主控芯片是JN5168,所述JN5168与无线电路连接,用于接收发送信息。A further technical solution is that the Zigbee module includes a wireless circuit and a communication circuit, the main control chip of the communication module is JN5168, and the JN5168 is connected with the wireless circuit for receiving and sending information.

一种控制网络单火线开关的控制方法,包括下述步骤:A control method for controlling a network single live wire switch, comprising the following steps:

步骤一:单火线1秒向网关发送一条询问数据,若有数据,则将数据发送出去;Step 1: Send a query data to the gateway in 1 second with a single FireWire, if there is data, send the data;

步骤二:单火开关收到数据发送命令后执行网关的命令,对负载设备进行断开或者闭合的控制;Step 2: After the single fire switch receives the data transmission command, it executes the command of the gateway, and controls the load device to be disconnected or closed;

步骤3:单火线如果收到出现Zigbee模块的通讯命令,I/O口中断唤醒Zigbee,Zigbee模块开始工作,开始对按键进行扫描,若按键不到3秒就上报继电器闭合或者断开的状态;若按键到3秒则进入网络;若按键到8秒则退出网络。Step 3: If the single live wire receives a communication command from the Zigbee module, the I/O port is interrupted to wake up Zigbee, the Zigbee module starts to work, and starts to scan the buttons. If the button is pressed for less than 3 seconds, it will report the state of the relay being closed or disconnected; If you press the button for 3 seconds, you will enter the network; if you press the button for 8 seconds, you will exit the network.

网关若没有收到数据或者按键超过8秒则系统进入休眠状态,等待下一个轮询周期的到来。If the gateway does not receive data or the key is pressed for more than 8 seconds, the system will enter the dormant state and wait for the arrival of the next polling cycle.

本发明是一种网关设备,控制单火线的通、断状态这两种命令是由网关发出来的,单火线开关1秒钟向网关发一条询问数据,如果网关有数据需要被发送到单火线开关,就将数据发出去。单火线开关收到响应后执行网关命令,对负载电路进行断电或者断电控制;如果网关没有数据需要被发送,那么单火线就收不到响应数据,这样单火线就会进入休眠状态。The present invention is a gateway device. The two commands to control the on and off states of the single fire wire are sent by the gateway. The single fire wire switch sends an inquiry data to the gateway in 1 second. If the gateway has data, it needs to be sent to the single fire wire. switch, the data will be sent out. After receiving the response, the single live wire switch executes the gateway command to power off or control the load circuit; if the gateway has no data to be sent, then the single live wire will not receive the response data, so the single live wire will enter the dormant state.

如果中间出现Zigbee模块收到的通讯信息,I/O口中断唤醒Zigbee,Zigbee模块开始工作,开始对按键进行扫描,若按键不到3秒就上报继电器闭合或者断开的状态,若按键到3秒就进入网络,若按键到8秒就退出网络。If the communication information received by the Zigbee module appears in the middle, the I/O port is interrupted to wake up Zigbee, the Zigbee module starts to work, and starts to scan the buttons. If the button is pressed for less than 3 seconds, it will report the state of the relay being closed or disconnected. Enter the network in seconds, and exit the network if the key is pressed for 8 seconds.

与现有技术相比,本发明的有益效果至少有如下之一:Compared with the prior art, the present invention has at least one of the following beneficial effects:

1)本发明采用所述主控模块XD-KC024配合所述主控模块PI-05V-D4软启动,可以实现足够功率的输出,保证开关设备的正常运行;1) The present invention uses the main control module XD-KC024 to cooperate with the main control module PI-05V-D4 for soft start, which can realize sufficient power output and ensure the normal operation of the switchgear;

2)本发明采用所述主控模块XD-KC024驱动继电器,解决了以往为驱动继电器难的问题;2) The present invention uses the main control module XD-KC024 to drive the relay, which solves the problem that it was difficult to drive the relay in the past;

3)本发明采用所述Zigbee模块,可以实现远程控制命令来完成支路的通断电功能。3) The present invention uses the Zigbee module to implement remote control commands to complete the power on and off functions of the branches.

附图说明Description of drawings

图1为本发明总体设计框图。Fig. 1 is the overall design block diagram of the present invention.

图2为本发明取电电路模块的供电电路原理图。Fig. 2 is a schematic diagram of the power supply circuit of the power taking circuit module of the present invention.

图3为本发明取电电路模块框图。Fig. 3 is a block diagram of the power-taking circuit module of the present invention.

图4为发明软启动电路框图。Fig. 4 is a block diagram of the soft start circuit of the invention.

图5为本发明取电电路模块的软启动电路原理图。Fig. 5 is a schematic diagram of the soft-start circuit of the power-taking circuit module of the present invention.

图6为本发明负载检测模块的分压电路原理图。FIG. 6 is a schematic diagram of a voltage divider circuit of the load detection module of the present invention.

图7为本发明负载检测模块的电压比较电路原理图。FIG. 7 is a schematic diagram of a voltage comparison circuit of the load detection module of the present invention.

图8为本发明继电器模块原理图。Fig. 8 is a schematic diagram of the relay module of the present invention.

图9为本发明Zigbee模块框图。Fig. 9 is a block diagram of the Zigbee module of the present invention.

图10为本发明Zigbee模块及外围电路模块框图。Fig. 10 is a block diagram of the Zigbee module and peripheral circuit modules of the present invention.

图11为本发明按键模块原理图。Fig. 11 is a schematic diagram of the button module of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

实施方案1Implementation 1

图1示出了发明智能单火线开关电路及控制方法,一种智能单火线开关电路,包括取电电路模块2、负载检测模块3、继电器模块1、Zigbee模块4、按键模块5、接口电路模块6,其特征在于:所述取电电路模块2与继电器模块3连接;所述Zigbee模块4与按键模块连接5;所述取电电路模块与Zigbee模块4连接;所述负载检测模块与Zigbee模块4连接;所述接口电路模块与Zigbee模块4连接;述负载检测模块3与接口电路模块6连接。Figure 1 shows the inventive intelligent single live wire switch circuit and its control method, an intelligent single live wire switch circuit, including a power-taking circuit module 2, a load detection module 3, a relay module 1, a Zigbee module 4, a button module 5, and an interface circuit module 6. It is characterized in that: the power-taking circuit module 2 is connected to the relay module 3; the Zigbee module 4 is connected to the button module 5; the power-taking circuit module is connected to the Zigbee module 4; the load detection module is connected to the Zigbee module 4 is connected; the interface circuit module is connected with the Zigbee module 4; the load detection module 3 is connected with the interface circuit module 6.

图2至图5所示,所述取电电路模块2包括供电电路2-1和软启动电路2-2,所述供电电路2-1的主控模块是XD-KC024,所述主控模块XD-KC024的VCC1端与软启动电路的DCin、VIN端连接,所述主控模块XD-KC024芯片的MOS_D端、MOS_G端连接MOS管,用于调整单火线进入的波形。As shown in Figures 2 to 5, the power-taking circuit module 2 includes a power supply circuit 2-1 and a soft-start circuit 2-2, and the main control module of the power supply circuit 2-1 is XD-KC024, and the main control module The VCC1 terminal of the XD-KC024 is connected to the DCin and VIN terminals of the soft-start circuit, and the MOS_D and MOS_G terminals of the main control module XD-KC024 chip are connected to the MOS tubes to adjust the waveform of the single live wire.

所述软启动电路2-2包括软启动主控电路2-2-1、硬件看门狗电路 2-2-2和启动电路2-2-3,所述软启动主控电路2-2-1的主控模块是PI-05V-D4,所述硬件看门狗模块 2-2-2的主控芯片是IMP809L,所述启动电路2-2-3的稳压芯片是S-8521D33MC,所述主控模块PI-05-D4的OUT端与所述S-8521D33MC的的VIN端连接用于输出3.3V的稳定电压,所述IMP809L的RESET端与S-8521D33MC的ON/OFF端、S-8521D33MC的EXT与MOS管UT2301栅极连接用于软启动。The soft start circuit 2-2 includes a soft start main control circuit 2-2-1, a hardware watchdog circuit 2-2-2 and a start circuit 2-2-3, and the soft start main control circuit 2-2- The main control module of 1 is PI-05V-D4, the main control chip of the hardware watchdog module 2-2-2 is IMP809L, and the voltage regulator chip of the startup circuit 2-2-3 is S-8521D33MC, so The OUT terminal of the main control module PI-05-D4 is connected to the VIN terminal of the S-8521D33MC to output a stable voltage of 3.3V, the RESET terminal of the IMP809L is connected to the ON/OFF terminal of the S-8521D33MC, the S- The EXT of 8521D33MC is connected with the gate of MOS tube UT2301 for soft start.

本实施方案中,智能单火线开关电路增加了Zigbee模块,可以实现无线通信,远程智能完成单火线的通断;智能单火线开关的取电电路模块采用XD-KC024配合所述PI-05V-D4软启动,可以实现足够功率的输出,保证开关设备的正常运行。In this embodiment, the Zigbee module is added to the intelligent single live wire switch circuit, which can realize wireless communication, and remotely and intelligently complete the on-off of the single live wire; the power-taking circuit module of the intelligent single live wire switch adopts XD-KC024 to cooperate with the PI-05V-D4 Soft start can achieve sufficient power output to ensure the normal operation of the switchgear.

实施方案2Embodiment 2

图1示出了本发明智能单火线开关电路及控制方法,一种智能单火线开关电路,包括取电电路模块2、负载检测模块3、继电器模块1、Zigbee模块4、按键模块5、接口电路模块6,其特征在于:所述取电电路模块2与继电器模块3连接;所述Zigbee模块4与按键模块连接5;所述取电电路模块与Zigbee模块4连接;所述负载检测模块与Zigbee模块4连接;所述接口电路模块与Zigbee模块4连接;述负载检测模块3与接口电路模块6连接。Fig. 1 shows the intelligent single live wire switch circuit and control method of the present invention, a kind of intelligent single live wire switch circuit, including power taking circuit module 2, load detection module 3, relay module 1, Zigbee module 4, button module 5, interface circuit Module 6 is characterized in that: the power-taking circuit module 2 is connected to the relay module 3; the Zigbee module 4 is connected to the button module 5; the power-taking circuit module is connected to the Zigbee module 4; the load detection module is connected to the Zigbee The module 4 is connected; the interface circuit module is connected with the Zigbee module 4; the load detection module 3 is connected with the interface circuit module 6.

图2至图5所示,所述取电电路模块2包括供电电路2-1和软启动电路2-2,所述供电电路2-1的主控模块是XD-KC024,所述主控模块XD-KC024的VCC1端与软启动电路的DCin、VIN端连接,所述主控模块XD-KC024芯片的MOS_D端、MOS_G端连接MOS管,用于调整单火线进入的波形。As shown in Figures 2 to 5, the power-taking circuit module 2 includes a power supply circuit 2-1 and a soft-start circuit 2-2, and the main control module of the power supply circuit 2-1 is XD-KC024, and the main control module The VCC1 terminal of the XD-KC024 is connected to the DCin and VIN terminals of the soft-start circuit, and the MOS_D and MOS_G terminals of the main control module XD-KC024 chip are connected to the MOS tubes to adjust the waveform of the single live wire.

软启动电路2-2包括软启动主控电路2-2-1、硬件看门狗电路 2-2-2和启动电路2-2-3,所述软启动主控电路2-2-1的主控模块是PI-05V-D4,所述硬件看门狗模块 2-2-2的主控芯片是IMP809L,所述启动电路2-2-3的稳压芯片是S-8521D33MC,所述主控模块PI-05-D4的OUT端与所述S-8521D33MC的的VIN端连接用于输出3.3V的稳定电压,所述IMP809L的RESET端与S-8521D33MC的ON/OFF端、S-8521D33MC的EXT与MOS管UT2301栅极连接用于软启动。Soft start circuit 2-2 comprises soft start master control circuit 2-2-1, hardware watchdog circuit 2-2-2 and start circuit 2-2-3, and the soft start master control circuit 2-2-1 The main control module is PI-05V-D4, the main control chip of the hardware watchdog module 2-2-2 is IMP809L, the voltage regulator chip of the startup circuit 2-2-3 is S-8521D33MC, the main The OUT terminal of the control module PI-05-D4 is connected to the VIN terminal of the S-8521D33MC to output a stable voltage of 3.3V, the RESET terminal of the IMP809L is connected to the ON/OFF terminal of the S-8521D33MC, the S-8521D33MC’s EXT is connected to the gate of MOS transistor UT2301 for soft start.

图6至图11所示,所述负载检测模块3包括分压电路3-1和电压比较电路3-2,分压电路3-1的ADC1、ADC2、ADC3端与电压比较电路3-2连接,电压比较电路3-2的OUT1、OUT2、OUT3与Zigbee模块4连接,用于接受检测负载电路的电平信号,避免由于误操作按键而增加功耗造成开关设备无法正常工作。As shown in Figures 6 to 11, the load detection module 3 includes a voltage divider circuit 3-1 and a voltage comparison circuit 3-2, and the ADC1, ADC2, and ADC3 terminals of the voltage divider circuit 3-1 are connected to the voltage comparison circuit 3-2 , OUT1, OUT2, and OUT3 of the voltage comparison circuit 3-2 are connected to the Zigbee module 4 for receiving the level signal of the detection load circuit, so as to avoid the switch device from malfunctioning due to increased power consumption due to misoperation of the buttons.

Zigbee模块4与所述主控模块XD-KCO24的K1_Ctrl、K1_Ctrl、K1_Ctrl端连接,所述主控模块XD-KCO24的K1+、K1-,K2+、K2-,K3+、K3-端与继电器模块1连接。Zigbee module 4 is connected with the K1_Ctrl, K1_Ctrl, K1_Ctrl terminals of the main control module XD-KCO24, and the K1+, K1-, K2+, K2-, K3+, K3- terminals of the main control module XD-KCO24 are connected with the relay module 1 .

图9至图11所示,所述Zigbee模块4与按键模块5连接,用于控制按键扫描。As shown in FIGS. 9 to 11 , the Zigbee module 4 is connected with the key module 5 for controlling key scanning.

所述Zigbee模块4包括无线电路4-1和通信电路4-2,所述通信模块4-2的主控芯片是JN5168芯片7,所述JN5168芯片7与无线电路8连接,用于接收发送信息。Described Zigbee module 4 comprises wireless circuit 4-1 and communication circuit 4-2, and the main control chip of described communication module 4-2 is JN5168 chip 7, and described JN5168 chip 7 is connected with wireless circuit 8, is used for receiving and sending information .

一种控制网络单火线开关的控制方法,包括下述步骤:A control method for controlling a network single live wire switch, comprising the following steps:

步骤一:单火线1秒向网关发送一条询问数据,若有数据,则将数据发送出去;Step 1: Send a query data to the gateway in 1 second with a single FireWire, if there is data, send the data;

步骤二:单火开关收到数据发送命令后执行网关的命令,对负载设备进行断开或者闭合的控制;Step 2: After the single fire switch receives the data transmission command, it executes the command of the gateway, and controls the load device to be disconnected or closed;

步骤3:单火线如果收到出现Zigbee模块的通讯命令,I/O口中断唤醒Zigbee,Zigbee模块开始工作,开始对按键进行扫描,若按键不到3秒就上报继电器闭合或者断开的状态;若按键到3秒则进入网络;若按键到8秒则退出网络。Step 3: If the single live wire receives a communication command from the Zigbee module, the I/O port is interrupted to wake up Zigbee, the Zigbee module starts to work, and starts to scan the buttons. If the button is pressed for less than 3 seconds, it will report the state of the relay being closed or disconnected; If you press the button for 3 seconds, you will enter the network; if you press the button for 8 seconds, you will exit the network.

网关若没有收到数据或者按键超过8秒则系统进入休眠状态,等待下一个轮询周期的到来。If the gateway does not receive data or the key is pressed for more than 8 seconds, the system will enter the dormant state and wait for the arrival of the next polling cycle.

本实施方案更加详细地说明智能单火线开关的电路及控制方法设计,本实施方案增加Zigbee模块的无线通信电路;在智能设备的通讯过程中,传统的控制方法需要双方设备时刻保持畅通,本设计方案采用主控芯片JN5168,所述芯片JN5168通过一种周期性轮询的通信方法,通过周期性询问来实现双方的正常通讯,以减小通信过程的数据时延,减小设备的功耗,完成对单火开关的远程控制。This implementation scheme explains in more detail the design of the circuit and control method of the intelligent single live wire switch. This implementation scheme adds the wireless communication circuit of the Zigbee module; The scheme adopts the main control chip JN5168. The chip JN5168 uses a periodic polling communication method to realize the normal communication between the two parties through periodic inquiry, so as to reduce the data delay in the communication process and reduce the power consumption of the device. Complete the remote control of the single fire switch.

本发明是一种网关设备,控制单火线的通、断状态这两种命令是由网关发出来的,单火线开关1秒钟向网关发一条询问数据,如果网关有数据需要被发送到单火线开关,就将数据发出去。单火线开关收到响应后执行网关命令,对负载电路进行断电或者断电控制;如果网关没有数据需要被发送,那么单火线就收不到响应数据,这样单火线就会进入休眠状态。The present invention is a gateway device. The two commands to control the on and off states of the single fire wire are sent by the gateway. The single fire wire switch sends an inquiry data to the gateway in 1 second. If the gateway has data, it needs to be sent to the single fire wire. switch, the data will be sent out. After receiving the response, the single live wire switch executes the gateway command to power off or control the load circuit; if the gateway has no data to be sent, then the single live wire will not receive the response data, so the single live wire will enter the dormant state.

如果中间出现Zigbee模块收到的通讯信息,Zigbee模块开始工作,开始对按键进行扫描,若按键不到3秒就上报继电器闭合或者断开的状态,若按键到3秒就进入网络,若按键到8秒就退出网络。If the communication information received by the Zigbee module appears in the middle, the Zigbee module starts to work and starts to scan the buttons. If the button is pressed for less than 3 seconds, it will report the state of the relay closing or disconnecting. If the button is pressed for 3 seconds, it will enter the network. If the button is pressed for 3 seconds, it will enter the network. 8 seconds to exit the network.

所述过程结束后,不断重复上述过程,周期性重复实现双方通信,减小通信过程的数据时延,减小设备的功耗,最终完成对单火线开关的远程控制。After the process is completed, the above process is repeated continuously, and the communication between the two parties is realized periodically, the data delay in the communication process is reduced, the power consumption of the device is reduced, and the remote control of the single live wire switch is finally completed.

尽管这里参照本发明的多个解释性实施例对本发明进行了描述,但是,应该理解,本领域技术人员可以设计出很多其他的修改和实施方式,这些修改和实施方式将落在本申请公开的原则范围和精神之内。更具体地说,在本申请公开、附图和权利要求的范围内,可以对主题组合布局的组成部件和/或布局进行多种变型和改进。除了对组成部件和/或布局进行的变形和改进外,对于本领域技术人员来说,其他的用途也将是明显的。Although the invention has been described herein with reference to a number of illustrative embodiments thereof, it is to be understood that numerous other modifications and implementations can be devised by those skilled in the art which will fall within the scope of the disclosure disclosed in this application. within the scope and spirit of the principles. More specifically, within the scope of the disclosure, drawings and claims of the present application, various modifications and improvements can be made to the components and/or layout of the subject combination layout. In addition to variations and modifications to the component parts and/or layout, other uses will be apparent to those skilled in the art.

Claims (9)

1.一种智能单火线开关电路,包括取电电路模块(2)、负载检测模块(3)、继电器模块(1)、Zigbee模块(4)、按键模块(5)、接口电路模块(6),其特征在于:所述取电电路模块(2)与继电器模块(3)连接;所述Zigbee模块(2)与按键模块(5)连接;所述取电电路模块(2)与Zigbee模块(4)连接;所述负载检测模块(3)与Zigbee模块(4)连接;所述接口电路模块(6)与Zigbee模块(4)连接;述负载检测模块(3)与接口电路模块(6)连接。1. An intelligent single live wire switch circuit, including a power-taking circuit module (2), a load detection module (3), a relay module (1), a Zigbee module (4), a button module (5), and an interface circuit module (6) , It is characterized in that: the described power-taking circuit module (2) is connected with the relay module (3); the Zigbee module (2) is connected with the button module (5); the described power-taking circuit module (2) is connected with the Zigbee module ( 4) connection; the load detection module (3) is connected with the Zigbee module (4); the interface circuit module (6) is connected with the Zigbee module (4); the load detection module (3) is connected with the interface circuit module (6) connect. 2.根据权利要求1所述的智能单火线开关电路,其特征在于:所述取电电路模块(2)包括供电电路(2-1)和软启动电路(2-2),所述供电电路(2-1)的主控模块是XD-KC024,所述主控模块XD-KC024的VCC1端与软启动电路的DCin、VIN端连接,所述主控模块XD-KC024芯片的MOS_D端、MOS_G端连接MOS管,用于调整单火线进入的波形。2. The intelligent single live wire switch circuit according to claim 1, characterized in that: the power-taking circuit module (2) includes a power supply circuit (2-1) and a soft-start circuit (2-2), and the power supply circuit (2-1) The main control module is XD-KC024, the VCC1 terminal of the main control module XD-KC024 is connected to the DCin and VIN terminals of the soft start circuit, the MOS_D terminal and MOS_G terminal of the main control module XD-KC024 chip The terminal is connected to a MOS tube, which is used to adjust the waveform entered by the single live wire. 3.根据权利要求2所述的智能单火线开关电路,其特征在于:所述软启动电路(2-2)包括软启动主控电路(2-2-1)、硬件看门狗电路 (2-2-2)和启动电路(2-2-3),所述软启动主控电路(2-2-1)的主控模块是PI-05V-D4,所述硬件看门狗模块 (2-2-2)的主控芯片是IMP809L,所述启动电路(2-2-3)的稳压芯片是S-8521D33MC,所述主控模块PI-05-D4的OUT端与所述S-8521D33MC的的VIN端连接用于输出3.3V的稳定电压,所述IMP809L的RESET端与S-8521D33MC的ON/OFF端、S-8521D33MC的EXT与MOS管UT2301栅极连接用于软启动。3. The intelligent single live wire switch circuit according to claim 2, characterized in that: the soft start circuit (2-2) includes a soft start main control circuit (2-2-1), a hardware watchdog circuit (2 -2-2) and start-up circuit (2-2-3), the main control module of described soft start main control circuit (2-2-1) is PI-05V-D4, described hardware watchdog module (2 -2-2) the main control chip is IMP809L, the voltage regulator chip of the startup circuit (2-2-3) is S-8521D33MC, the OUT terminal of the main control module PI-05-D4 is connected to the S- The VIN terminal of the 8521D33MC is connected to output a stable voltage of 3.3V, the RESET terminal of the IMP809L is connected to the ON/OFF terminal of the S-8521D33MC, and the EXT of the S-8521D33MC is connected to the gate of the MOS transistor UT2301 for soft start. 4.根据权利要求1所述的智能单火线开关电路,其特征在于:所述负载检测模块(3)包括分压电路(3-1)和电压比较电路(3-2),分压电路(3-1)的ADC1、ADC2、ADC3端与电压比较电路(3-2)连接,电压比较电路(3-2)的OUT1、OUT2、OUT3与Zigbee模块(4)连接,用于接受检测负载电路的电平信号,避免由于误操作按键而增加功耗造成开关设备无法正常工作。4. The intelligent single live wire switch circuit according to claim 1, characterized in that: the load detection module (3) includes a voltage divider circuit (3-1) and a voltage comparison circuit (3-2), the voltage divider circuit ( 3-1) ADC1, ADC2, and ADC3 terminals are connected to the voltage comparison circuit (3-2), and OUT1, OUT2, OUT3 of the voltage comparison circuit (3-2) are connected to the Zigbee module (4) for receiving and detecting the load circuit Level signal, to avoid switching equipment not working properly due to increased power consumption due to misoperation of keys. 5.根据权利要求2所述的智能单火线开关电路,所述Zigbee模块(4)与所述主控模块XD-KCO24的K1_Ctrl、K1_Ctrl、K1_Ctrl端连接,所述主控模块XD-KCO24的K1+、K1-,K2+、K2-,K3+、K3-端与继电器模块(1)连接。5. The intelligent single live wire switch circuit according to claim 2, the Zigbee module (4) is connected to the K1_Ctrl, K1_Ctrl, and K1_Ctrl terminals of the main control module XD-KCO24, and the K1+ of the main control module XD-KCO24 , K1-, K2+, K2-, K3+, K3- terminals are connected to the relay module (1). 6.根据权利要求1所述的智能单火线开关电路,其特征在于:所述Zigbee模块(4)与按键模块(5)连接,用于控制按键扫描。6. The intelligent single live wire switch circuit according to claim 1, characterized in that: the Zigbee module (4) is connected to the button module (5) for controlling button scanning. 7.根据权利要求书2所述的智能单火线开关电路,所述Zigbee模块(4)包括无线电路(4-1)和通信电路(4-2),所述通信模块(4-2)的主控芯片是JN5168芯片(7),所述JN5168芯片(7)与无线电路(8)连接,用于接收发送信息。7. The intelligent single live wire switch circuit according to claim 2, the Zigbee module (4) includes a wireless circuit (4-1) and a communication circuit (4-2), and the communication module (4-2) The main control chip is a JN5168 chip (7), and the JN5168 chip (7) is connected with a wireless circuit (8) for receiving and sending information. 8.一种控制网络单火线开关的控制方法,包括下述步骤:8. A control method for controlling a network single live wire switch, comprising the following steps: 步骤一:单火线1秒向网关发送一条询问数据,若有数据,则将数据发送出去;Step 1: Send a query data to the gateway in 1 second with a single FireWire, if there is data, send the data; 步骤二:单火开关收到数据发送命令后执行网关的命令,对负载设备进行断开或者闭合的控制;Step 2: After the single fire switch receives the data transmission command, it executes the command of the gateway, and controls the load device to be disconnected or closed; 步骤3:单火线如果收到出现Zigbee模块的通讯命令,I/O口中断唤醒Zigbee,Zigbee模块开始工作,开始对按键进行扫描,若按键不到3秒就上报继电器闭合或者断开的状态;若按键到3秒则进入网络;若按键到8秒则退出网络。Step 3: If the single live wire receives a communication command from the Zigbee module, the I/O port is interrupted to wake up Zigbee, the Zigbee module starts to work, and starts to scan the buttons. If the button is pressed for less than 3 seconds, it will report the state of the relay being closed or disconnected; If you press the button for 3 seconds, you will enter the network; if you press the button for 8 seconds, you will exit the network. 9.根据权利要求8所述的智能单火线开关及控制方法,所述网关若没有收到数据或者按键超过8秒则系统进入休眠状态,等待下一个轮询周期的到来。9. The intelligent single live wire switch and control method according to claim 8, if the gateway does not receive data or the key is pressed for more than 8 seconds, then the system enters a dormant state and waits for the arrival of the next polling cycle.
CN201710296828.XA 2017-04-28 2017-04-28 Intelligent single live wire switch circuit Expired - Fee Related CN106879151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710296828.XA CN106879151B (en) 2017-04-28 2017-04-28 Intelligent single live wire switch circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710296828.XA CN106879151B (en) 2017-04-28 2017-04-28 Intelligent single live wire switch circuit

Publications (2)

Publication Number Publication Date
CN106879151A true CN106879151A (en) 2017-06-20
CN106879151B CN106879151B (en) 2023-11-10

Family

ID=59161533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710296828.XA Expired - Fee Related CN106879151B (en) 2017-04-28 2017-04-28 Intelligent single live wire switch circuit

Country Status (1)

Country Link
CN (1) CN106879151B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493625A (en) * 2017-08-15 2017-12-19 福州慧美丰科技有限公司 A kind of method of the high-power output of single live wire power getting
CN107656487A (en) * 2017-09-18 2018-02-02 美的智慧家居科技有限公司 Time management method, equipment and the readable storage medium storing program for executing of the single fire switch of intelligence
CN108093379A (en) * 2018-02-01 2018-05-29 深圳市泰比特科技有限公司 A kind of train door monitor terminal and its system based on LoRa
CN108107961A (en) * 2017-12-19 2018-06-01 美的集团股份有限公司 Control panel power circuit, method and the single fiery intelligent switch of single fire intelligent switch
CN109152172A (en) * 2018-09-10 2019-01-04 上海顺舟智能科技股份有限公司 Based on the mono- fire switch of long-range control zigbee, control method and smart home system
CN111045348A (en) * 2018-10-12 2020-04-21 上海良信智能电工有限公司 An intelligent switch and its control method
CN112469171A (en) * 2020-11-27 2021-03-09 北京如影智能科技有限公司 Intelligent single-fire switch and sleep time management method and device thereof
CN114152870A (en) * 2021-06-11 2022-03-08 河南紫联物联网技术有限公司 A load simulation detection system and a wake-up time allocation method for a single fire switch

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201616934U (en) * 2009-11-24 2010-10-27 秦皇岛富通尼特智能科技有限公司 A single-wire intelligent dimming switch
CN202870507U (en) * 2012-10-18 2013-04-10 丰唐物联技术(深圳)有限公司 Multifunctional switch
CN104331048A (en) * 2014-10-23 2015-02-04 西安航天自动化股份有限公司 Low-power-consumption wireless monitor and control system for agricultural greenhouse
CN204145804U (en) * 2014-06-30 2015-02-04 惠州天阳精密部品有限公司 Low load starts Zigbee intelligent illuminating switch
WO2015127788A1 (en) * 2014-02-26 2015-09-03 瑞斯康微电子(深圳)有限公司 Intelligent control switch for power line carrier
CN105511345A (en) * 2015-11-30 2016-04-20 罗中良 Zigbee IOT (Internet of Things) module and low-power-consumption control method therefor
CN205385465U (en) * 2016-01-20 2016-07-13 深圳拓邦股份有限公司 Utilize single live wire of electromagnetic relay to get circuit and single live wire switch
CN206948679U (en) * 2017-04-28 2018-01-30 上海紫光乐联物联网科技有限公司 Intelligent single live wire on-off circuit

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201616934U (en) * 2009-11-24 2010-10-27 秦皇岛富通尼特智能科技有限公司 A single-wire intelligent dimming switch
CN202870507U (en) * 2012-10-18 2013-04-10 丰唐物联技术(深圳)有限公司 Multifunctional switch
WO2015127788A1 (en) * 2014-02-26 2015-09-03 瑞斯康微电子(深圳)有限公司 Intelligent control switch for power line carrier
CN204145804U (en) * 2014-06-30 2015-02-04 惠州天阳精密部品有限公司 Low load starts Zigbee intelligent illuminating switch
CN104331048A (en) * 2014-10-23 2015-02-04 西安航天自动化股份有限公司 Low-power-consumption wireless monitor and control system for agricultural greenhouse
CN105511345A (en) * 2015-11-30 2016-04-20 罗中良 Zigbee IOT (Internet of Things) module and low-power-consumption control method therefor
CN205385465U (en) * 2016-01-20 2016-07-13 深圳拓邦股份有限公司 Utilize single live wire of electromagnetic relay to get circuit and single live wire switch
CN206948679U (en) * 2017-04-28 2018-01-30 上海紫光乐联物联网科技有限公司 Intelligent single live wire on-off circuit

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493625A (en) * 2017-08-15 2017-12-19 福州慧美丰科技有限公司 A kind of method of the high-power output of single live wire power getting
CN107656487A (en) * 2017-09-18 2018-02-02 美的智慧家居科技有限公司 Time management method, equipment and the readable storage medium storing program for executing of the single fire switch of intelligence
CN107656487B (en) * 2017-09-18 2020-05-08 美智光电科技有限公司 Time management method and device for intelligent single-fire switch and readable storage medium
CN108107961A (en) * 2017-12-19 2018-06-01 美的集团股份有限公司 Control panel power circuit, method and the single fiery intelligent switch of single fire intelligent switch
CN108093379A (en) * 2018-02-01 2018-05-29 深圳市泰比特科技有限公司 A kind of train door monitor terminal and its system based on LoRa
CN108093379B (en) * 2018-02-01 2024-01-26 深圳市泰比特科技有限公司 Train door monitoring terminal based on loRa and train door monitoring system based on loRa
CN109152172A (en) * 2018-09-10 2019-01-04 上海顺舟智能科技股份有限公司 Based on the mono- fire switch of long-range control zigbee, control method and smart home system
CN111045348A (en) * 2018-10-12 2020-04-21 上海良信智能电工有限公司 An intelligent switch and its control method
CN112469171A (en) * 2020-11-27 2021-03-09 北京如影智能科技有限公司 Intelligent single-fire switch and sleep time management method and device thereof
CN112469171B (en) * 2020-11-27 2023-03-31 北京如影智能科技有限公司 Intelligent single-fire switch and sleep time management method and device thereof
CN114152870A (en) * 2021-06-11 2022-03-08 河南紫联物联网技术有限公司 A load simulation detection system and a wake-up time allocation method for a single fire switch
CN114152870B (en) * 2021-06-11 2022-07-08 河南紫联物联网技术有限公司 A load simulation detection system and a wake-up time allocation method for a single fire switch

Also Published As

Publication number Publication date
CN106879151B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN106879151A (en) Intelligent single live wire switch circuit and control method
CN109831858B (en) Intelligent lighting system
CN207489235U (en) Switch device with auxiliary power unit and wireless receiving function and lamp system thereof
CN107820355A (en) A kind of DALI interface circuits with bootstrapping function
CN106647316A (en) Smart home control system and control method thereof
CN106982503B (en) Single-fire double-control intelligent switch compatible with mechanical switch wiring
WO2021068504A1 (en) Switching circuit, single-live line switch and switching device
CN107085379B (en) Intelligent household control system and control method
CN102570580B (en) Zero-standby power consumption power supply circuit, power supply device and household appliance
CN107947949B (en) Time-frequency system for controlling multiple extension sets to be started and shut down by host computer and control method
CN215453338U (en) Lighting control system
CN105120563A (en) Single-chip-microcomputer-based intelligent household illumination system
CN206948679U (en) Intelligent single live wire on-off circuit
CN107544445A (en) A smart switch and a smart home system
CN113035609B (en) A dual control circuit of intelligent switch and mechanical switch
CN213718010U (en) DALI gateway and DALI lamp control system
CN113612369B (en) Power supply circuit, home appliance and control method for home appliance
CN213122647U (en) Single live wire intelligence switch
CN104902631A (en) Time-delay touch switch for intelligent household appliances
CN205378314U (en) Single live wire switch cross complaint system based on z -wave technique
CN104023440B (en) Public illumination MANET remote controllers and method
CN107072019A (en) Incandescent lamp intelligent switch is long-range and local inter-linked controlling method
CN112566315A (en) Illumination control method, device and system, processor and electronic equipment
CN209693116U (en) A kind of single-fire-wire electronic switch
CN112565451A (en) DALI gateway and DALI lamp control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20231110