Intelligent home remote control socket system based on ZigBee

文档序号:881199 发布日期:2021-03-19 浏览:8次 中文

阅读说明:本技术 基于ZigBee的智能家居遥控插座系统 (Intelligent home remote control socket system based on ZigBee ) 是由 王晨光 张强 冯阳阳 郭栋 王怀 吕鹏 于 2020-11-26 设计创作,主要内容包括:本发明提供一种基于ZigBee的智能家居遥控插座系统,包括主控回路模块和遥控器模块,其中:所述主控回路模块包括第一ZigBee CC2530控制芯片和与其通信连接的无线接收模块、电源模块和电源控制继电器;所述遥控器模块包括第二ZigBee CC2530控制芯片和与其通信连接的键盘电路以及无线发送模块,所述无线发送模块与所述无线接收模块通信连接。以上方案,通过设计了一个通用的CC2530开发板,实现遥控器与插座的点对点控制,与传统的遥控方法相比,具有节约资源、体积小与灵活性高、低功耗且稳定可靠、高精度、应用性能显著等优点。(The invention provides an intelligent home remote control socket system based on ZigBee, which comprises a main control loop module and a remote controller module, wherein the main control loop module comprises: the main control loop module comprises a first ZigBee CC2530 control chip, and a wireless receiving module, a power supply module and a power supply control relay which are in communication connection with the first ZigBee CC2530 control chip; the remote controller module comprises a second ZigBee CC2530 control chip, a keyboard circuit in communication connection with the second ZigBee CC2530 control chip, and a wireless sending module, and the wireless sending module is in communication connection with the wireless receiving module. Compared with the traditional remote control method, the remote control method has the advantages of resource saving, small size, high flexibility, low power consumption, stability, reliability, high precision, remarkable application performance and the like.)

1. The utility model provides an intelligence house remote control socket system based on zigBee which characterized in that, includes master control loop module and remote controller module, wherein:

the main control loop module comprises a first ZigBee CC2530 control chip, and a wireless receiving module, a power supply module and a power supply control relay which are in communication connection with the first ZigBee CC2530 control chip;

the remote controller module comprises a second ZigBee CC2530 control chip, a keyboard circuit in communication connection with the second ZigBee CC2530 control chip, and a wireless sending module, and the wireless sending module is in communication connection with the wireless receiving module.

2. The intelligent home remote control socket system based on ZigBee according to claim 1, wherein:

the power module is used for converting 220V alternating current into 5V direct current and supplying 3.3V direct current to the first ZigBee CC2530 control chip or supplying power to other circuit modules through the first ZigBee CC2530 control chip.

3. The intelligent home remote control socket system based on ZigBee according to claim 2, wherein:

the power supply module in the main control loop module comprises a resistance-capacitance voltage reduction module, and 220V alternating current is converted into 12V direct current after passing through the resistance-capacitance voltage reduction module; the power supply module further comprises a voltage stabilizer LM7805 chip and a voltage stabilizer AMS1117, wherein the voltage stabilizer LM7805 chip converts 12V direct current into 5V direct current; the voltage regulator AMS1117 converts 5V dc to 3.3V dc.

4. The ZigBee-based smart home remote control socket system of claim 3, wherein:

the keyboard circuit comprises a plurality of key circuits;

the key circuit comprises a key switch, two ends of the key switch are connected with a capacitor in parallel, the first end of the key switch is grounded, and the second end of the key switch is connected with one input end of a second ZigBee CC2530 control chip.

5. The ZigBee-based smart home remote control socket system according to claim 4, wherein:

the wireless receiving module and the wireless transmitting module select one of a Chip antenna, a PCB antenna, a Whip antenna and a high-gain antenna.

6. A ZigBee-based smart home remote control socket system as claimed in any one of claims 1-5, wherein:

the main control loop module and the remote controller module also comprise indicating lamp circuits;

the indicating lamp circuit comprises a light emitting diode, the anode end of the light emitting diode is connected with a high level, and the cathode end of the light emitting diode is connected with one input end of a first ZigBee CC2530 control chip.

7. The ZigBee-based smart home remote control socket system of claim 6, wherein:

the remote controller module comprises a dry battery which supplies power for the second ZigBee CC2530 control chip.

8. The ZigBee-based smart home remote control socket system according to claim 7, wherein:

the first ZigBee CC2530 control chip and the second ZigBee CC2530 control chip are provided with reset circuits.

9. The ZigBee-based smart home remote control socket system according to claim 8, wherein:

the reset circuit comprises a reset key, the first end of the reset key is grounded, and the second end of the reset key is connected with the reset end of the first ZigBee CC2530 control chip or the reset end of the first ZigBee CC2530 control chip.

Technical Field

The invention relates to the technical field of intelligent home, in particular to an intelligent home remote control socket system based on ZigBee.

Background

Most of the current plans of smart homes mainly include network wiring. However, many internal and external reasons need to be considered when wiring, so that the lines do not conflict with each other, and a professional can only deal with the complexity. Meanwhile, a large amount of cables, gateways and the like are needed during wiring, and many old-fashioned houses can only be renovated and decorated again if being modified into smart homes, so that the great labor is wasted by the people, and the biggest bottleneck of popularization and development of the smart homes is formed. With the development and popularization of wireless network technology, people look to wireless intelligent home technology. The development of the wireless communication technology not only creates huge economic wealth, but also provides an unbearable technical support for the development of smart homes, the home life style of people is greatly improved, the economic and convenient electric appliance node configuration is realized, the manpower and material resources are saved, the intelligent household intelligent.

The smart home technology and the internet of things technology also expose some problems to be solved urgently, and are embodied in the following aspects: complex structure, slow response rate, high power consumption and the like. The above problems severely restrict the development of smart homes, and the urgent matters are to solve or optimize the above problems.

Disclosure of Invention

In view of this, the invention provides an intelligent home remote control socket system based on ZigBee, so as to realize simple design structure, fast response speed, resource saving, small size, high flexibility, low power consumption, high precision, stability and reliability.

Some embodiments of the present invention provide an intelligent home remote control socket system based on ZigBee, including a main control loop module and a remote controller module, wherein:

the main control loop module comprises a first ZigBee CC2530 control chip, and a wireless receiving module, a power supply module and a power supply control relay which are in communication connection with the first ZigBee CC2530 control chip;

the remote controller module comprises a second ZigBee CC2530 control chip, a keyboard circuit in communication connection with the second ZigBee CC2530 control chip, and a wireless sending module, and the wireless sending module is in communication connection with the wireless receiving module.

Optionally, in the intelligent home remote control socket system based on ZigBee, the power module is configured to convert 220V ac power into 5V dc power and supply 3.3V dc power to the first ZigBee CC2530 control chip or supply power to the other circuit modules through the first ZigBee CC2530 control chip.

Optionally, in the intelligent home remote control socket system based on ZigBee, the power module in the main control loop module includes a resistance-capacitance voltage reduction module, and 220V ac power is changed into 12V dc power after passing through the resistance-capacitance voltage reduction module; the power supply module comprises a voltage stabilizer LM7805 chip and a voltage stabilizer AMS1117, wherein the voltage stabilizer LM7805 chip converts 12V direct current into 5V direct current; the voltage regulator AMS1117 converts 5V dc to 3.3V dc.

Optionally, in the ZigBee-based smart home remote control socket system, the keyboard circuit includes a plurality of key circuits;

the key circuit comprises a key switch, two ends of the key switch are connected with a capacitor in parallel, the first end of the key switch is grounded, and the second end of the key switch is connected with one input end of a second ZigBee CC2530 control chip.

Optionally, in the ZigBee-based smart home remote control socket system, the wireless receiving module and the wireless transmitting module select one of a Chip antenna, a PCB antenna, a Whip antenna, and a high-gain antenna.

Optionally, in the intelligent home remote control socket system based on ZigBee, the main control loop module and the remote controller module further include an indicator light circuit;

the indicating lamp circuit comprises a light emitting diode, the anode end of the light emitting diode is connected with a high level, and the cathode end of the light emitting diode is connected with one input end of a first ZigBee CC2530 control chip.

Optionally, above-mentioned intelligent house remote control socket system based on zigBee, including the dry battery in the remote controller module, the dry battery is the power supply of second zigBee CC2530 control chip.

Optionally, in the ZigBee-based smart home remote control socket system, the first ZigBee CC2530 control chip and the second ZigBee CC2530 control chip are configured with a reset circuit.

Optionally, above-mentioned intelligent house remote control socket system based on zigBee, reset circuit includes the button that resets, the first end ground connection of button that resets, the second end of button that resets is connected with the end that resets of first zigBee CC2530 control chip or the end that resets of first zigBee CC2530 control chip.

Compared with the prior art, the technical scheme provided by the invention at least has the following effects: the universal ZigBee CC2530 control chip development board is respectively arranged in the main control loop module and the remote controller module, so that point-to-point control of the remote controller and the socket is realized.

Drawings

FIG. 1 is a block diagram of a master control loop according to an embodiment of the present invention;

FIG. 2 is a block diagram of a remote control according to an embodiment of the present invention;

FIG. 3 is a schematic diagram of external pins of a CC2530 chip according to an embodiment of the present invention;

FIG. 4 shows the peripheral circuitry of a CC2530 chip, according to one embodiment of the present invention.

FIG. 5 illustrates an exemplary embodiment of a key SW circuit;

FIG. 6 is a test interface circuit according to an embodiment of the present invention;

FIG. 7 illustrates a reset circuit according to an embodiment of the present invention;

FIG. 8 is a circuit for an indicator light according to one embodiment of the present invention;

fig. 9 is a design circuit structure diagram of a power supply module and a switch module according to an embodiment of the invention.

Detailed Description

The embodiments of the present invention will be further described with reference to the accompanying drawings. In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description of the present invention, and do not indicate or imply that the device or assembly referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Wherein the terms "first position" and "second position" are two different positions.

In some embodiments of the present invention, an intelligent home remote control socket system based on ZigBee is provided, which is shown in fig. 1 and 2 and includes a main control loop module and a remote controller module. As shown in fig. 1, the main control loop module includes a clock module 101, a first ZigBee CC 2530103, a power module 108, a home power grid AC220V 109, and a power control relay 104, where the power control relay 104 is connected to a home wall socket 105, the power control relay 104 is connected to a room electrical appliance 106, and the power control relay 104 is turned on or off under the control of the first ZigBee CC 2530103, so as to realize whether the home wall socket 105 can supply power to the room electrical appliance 106. The scheme also comprises a wireless receiving module 107, wherein the remote controller module comprises a clock module 201, a wireless transmitting module 202, a second ZigBee CC 2530203, a keyboard circuit 204 and a dry battery 205, the keyboard circuit 204 can be operated to transmit signals to the second ZigBee CC 2530203, the second ZigBee CC 2530203 and the wireless transmitting module 202 transmit the signals to the wireless receiving module 107, and then the household wall socket 105 and the room electrical appliance 106 are controlled through the first ZigBee CC 2530103 and the power supply control relay 104.

In the above scheme, with reference to the schematic circuit design diagrams shown in fig. 3 and fig. 4, the scheme of the present application adopts the idea of ZigBee CC2530 chip module standardization, that is, designs a universal CC2530 development board to realize communication between the remote controller and the socket.

As shown in fig. 4, the CC2530 development board is composed of a ZigBee bottom board and a CC2530 core board, and various sensors are compatible with the outside of the bottom board to adapt to different environments; the core board only has a CC2530 chip and an interface with the bottom board. An intelligent home remote control socket system based on ZigBee comprises a main control loop module and a remote controller module. The core module is designed by a power module, a wireless communication module, a debugging and downloading interface module, a reset circuit module and a remote controller power module.

The power module 108 of the main control loop module is to convert 220V ac power into 5V and 3.3V dc power to be supplied to the ZigBee module and the peripheral circuit. Cost and volume are preferred in intelligent home design, so that a resistance-capacitance voltage reduction scheme is selected to convert AC220V into DC 3.3V. As shown in fig. 5, 220V ac power is converted into 12V dc power through the rc step-down module, and then 5V dc power VCC is obtained through the capacitor filtering and the three-terminal integrated regulator LM7805, and finally stable 3.3V dc power is output through the regulator AMS1117, so as to provide working voltage for the first ZigBee CC 2530. The power control relay 104 includes a triode switch, which controls the conduction of a triode through the change of high and low levels of the output port of the first ZigBee CC2530, thereby controlling a triac and realizing the remote control of the home wall socket 105. The thyristor of the power control relay 104 has two forms of on and off. The bidirectional thyristor is equivalent to two thyristors with opposite polarities which are connected in parallel. The scheme is realized by adopting the MAC4DLM-1G bidirectional controllable silicon, the small-size surface mounting packaging DPAK of the MAC4DLM-1G bidirectional controllable silicon, the reliability and consistency of passivation death, four-quadrant triggering, blocking voltage of 600V, low-level triggering and maintaining characteristics of 4.0 ampere RMS of on-state current rated value of 93 ℃, epoxy of UL 94V-0 @0.125, the available characteristics of lead-free package, and the cost and safety consideration, the design adopts the MAC4DLM bidirectional controllable silicon chip with the highest current of 4A.

The wireless transmitting module and the wireless receiving module are balanced among size, cost and performance, and the optimal antenna in the intelligent household design is convenient to use and has excellent performance. The four radio frequency antennas are most widely applied, and comprise a Chip antenna (Chip), a PCB antenna, a Whip antenna (Whip) and a high-gain antenna, wherein the high-gain antenna produced by Cisco (Cisco) company can be adopted in the scheme.

As shown in fig. 6, the pin 3 and the pin 4 of the debug download interface module are respectively used for debugging the data DC and the clock signal DD. When in debug mode, pin 3 (connected to P1-0 of the ZigBee CC2530 chip) and pin 4 (connected to P1_1 of the ZigBee CC2530 chip) pull-up/pull-down are disabled, a pull-up resistor of 10K is required. By means of the simulation download port, the upper system of the ZigBee CC2530 can be connected with the TICC series CC debug simulator, and online download debugging of the program is completed. The debug download interface is ported using two rows of 2 x 5 sockets.

As shown in fig. 4, the ZigBee CC2530 chip is equipped with RF-P and RF-N transceiver interfaces and is connected to an RF transceiver circuit, the ZigBee CC2530 chip contains 8051CPU, a programmable controller is provided in the CC2530 chip system, and has functions of 8KB RAM, etc., the CC2530 integrates a data processing module and a ZigBee radio frequency data transceiver function, and has a strong data storage capability; there is also a 128KB programmable Flash within the system. A wide voltage range (2.0-3.6V) is arranged between the core and the outer part of the ZigBee CC2530 chip. In the receiving mode, the current loss is lower than 27mA and slightly higher than 25mA in the transmitting mode; the flow consumption in sleep mode is only 0.9 u; the current consumption is less than 0.6u when the device is in standby, and the device can be powered by a 3.3V low-difference voltage-stabilized power supply. The unique power management features greatly extend the life of the battery. On the peripheral side, the debugging interface can execute 8051 kernel commands and set code breakpoints, and CSMA/CA is supported, and all GPIO pins are responsible for an I/O controller. The multifunctional 5-channel DMA controller and the digital RSSI/LQI support are integrated with an ADC (analog-to-digital converter) with 8/12 bits; 2 8-bit timers and 1 standard 16-bit timer; the built-in WatchDog timer allows the device to reset; there are two USARTs, USART0 and USART1, which can support a variety of serial communication protocols suitable for high throughput full duplex applications. In the aspect of wireless radio frequency, the system has strong interference resistance and good wireless receiving sensitivity. An IEEE802.15.4 compliant wireless transceiver is specifically provided for the radio CC253x family of devices, operating at 2.4 GHz. It provides a port for communication between MCU and wireless device while controlling analog radio frequency module, so that it is composed of a data packet filtering and address identifying module to realize the order sending, state reading, automatic operation and determined event sequence.

The peripheral circuit of the ZigBee CC2530 chip mainly comprises: a key (SW) circuit shown in fig. 7, a RESET circuit (RESET) shown in fig. 8, and an indicator Lamp (LED) shown in fig. 9. In a specific implementation, the CC2530 chip is packaged using QFN40 shown in fig. 3, the chip with a surface of 6mm × 6mm has four sides, each side has ten pins, and 40 pins can be divided into I/O pins, control pins, and power supply pins. In particular, only the I/O port pins P1_0 and P1_1 have no pull-up/pull-down function, but have a driving capability as high as 20mA, which is more favorable for driving high power such as infrared compared with other I/O pins having only 4mA output. The read-modify-write instruction is: ANL, CLR, CPL, DJNZ, DEC, INC, ORL, SETB, JBC, MOV and XRL. Specifically, as shown in the following table:

the keyboard circuit comprises a plurality of key circuits shown in fig. 7, each key circuit comprises a key switch, two ends of each key switch are connected with a capacitor in parallel, a first end of each key switch is grounded, and a second end of each key switch is connected with one input end of a second ZigBee CC2530 control chip.

As shown in fig. 8, a RESET circuit is formed by a resistor R3 and a capacitor C0 as a RESET part of a peripheral circuit of a CC2530 chip, and two ends of the RESET circuit are GND and REST _ N pins, and a manual RESET button is provided when necessary.

Fig. 9 shows an indicator light, wherein the indicator light comprises a light emitting diode D1, the anode of the light emitting diode is connected with high level, and the cathode of the light emitting diode is connected with one input end of a first ZigBee CC2530 control chip. Referring to fig. 9 and 7, it can be seen that the indicator light circuit may be connected to the same port as the key circuit, and thus may be able to emit light when the key is operated.

As shown in fig. 2, the remote controller power module, the alkaline battery is also called as an alkaline dry battery, an alkaline zinc-manganese battery, a highly conductive potassium hydroxide solution and a high-performance electrolytic manganese powder, has low internal resistance and high discharge performance. Finally, a Huatai (HUATAI) No. 5 mercury-free alkaline battery is selected as a power supply of the remote controller. The names and the function descriptions corresponding to the pins of the ZigBee CC2530 chip can refer to the following table:

above-mentioned scheme, the intelligent house remote control socket design based on zigBee can also connect four or more ways PT100 temperature sensor. The external 5V power supply can stably operate for a long time by adjusting a standard 3V voltage signal of voltage stabilization output, and after the signal conversion output of the analog multiplexer, the differential amplifier adjusts and outputs the signal to an external analog (digital) converter, so that the measured temperature value is calculated. The energy is saved, the power consumption is low, the working current is up to 550uA, the differential amplifier has high-precision direct current performance, and the gain precision can reach 0.10%.

In the scheme of the invention, the ZigBee CC2530 can be externally connected with any programmable equipment such as an analog (digital) converter, a singlechip and the like, and can also be added with any communication equipment to realize real-time detection of temperature signals and upload the temperature signals to an upper computer for real-time monitoring of temperature changes, so that the function of the ZigBee CC2530 is increased, and the ZigBee CC2530 has stronger practicability.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:插头、电源线、插座及插头的控制方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类