A battery-based wireless intelligent wall switch device
By using Zigbee wireless module in the smart switch to realize two-way communication and adding control circuits to the single-fire power supply solution, the problem that smart switches cannot achieve two-way communication and ghost fire phenomena is solved, real-time status updates and battery-powered security are achieved.
Patent Information
- Application Number
- CN201910739163.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-12
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2039-08-12
AI Technical Summary
The existing smart switches cannot achieve two-way communication, resulting in the inability to transmit switch status information and self-test conditions. The single-fire power supply scheme is prone to ghost fire when using energy-saving lamps.
A battery-based wireless intelligent wall switch device is designed, and the Zigbee wireless module is used to realize two-way communication with the user APP, and the single-fire power supply control circuit avoids leakage current when the lamp is turned off and prevents ghost fire.
It realizes two-way communication and real-time status updates of smart switches, avoids the occurrence of ghost fire, and ensures battery power supply and user operation safety.
Smart Images

Figure CN110456701B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of intelligent switches and relates to a wireless intelligent wall switch device, in particular to a battery-based wireless intelligent wall switch device. Background Art
[0002] At present, the main problems faced by smart switches with embedded systems on the market are:
[0003] 1. Currently, most intelligent switch controls use one-way communication - the remote control sends commands to the switch in one direction. Since two-way communication cannot be achieved, the switch status information, self-test status, etc. cannot be transmitted, which also limits more flexible applications.
[0004] 2. In order to adapt to the standard wiring method, it is necessary to draw power through a single live wire. When the lights are turned off, a certain amount of current needs to be stolen. However, due to the inherent power-drawing method of the energy-saving lamps commonly used now, such as energy-saving lamps and LED lamps, if the stolen current is too large, it will cause ghost lights (flickering) in the lamps. Moreover, an intelligent power-saving device in a wireless network needs to receive and send relevant information with a certain power, which requires a large instantaneous current, which will increase the ghost light phenomenon.
[0005] Therefore, how to achieve two-way communication of an intelligent switch with an embedded system and eliminate the occurrence of the ghost light phenomenon is a technical problem that those skilled in the art are eager to solve. Summary of the invention
[0006] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a battery-based wireless intelligent wall switch device that can effectively avoid the occurrence of ghost fire phenomena.
[0007] The present invention solves the technical problem by adopting the following technical solutions:
[0008] A battery-based wireless intelligent wall switch device comprises a shell and an internal circuit thereof, wherein the internal circuit comprises: a Zigbee wireless module unit, a single-chip microcomputer control unit, a single-fire power supply unit and a single-fire power supply control unit; the Zigbee wireless module unit is connected to the single-chip microcomputer control unit for communicating with a user APP and sending the acquired user APP switch control instruction to the single-chip microcomputer control unit; the single-chip microcomputer control unit is used to drive the relay to close or open according to the switch control instruction sent by the Zigbee wireless module unit, and output the updated relay switch state to the user APP through the Zigbee wireless module unit; the output end of the Zigbee wireless module unit is connected to the single-fire power supply control unit for controlling the start and stop of the single-fire power supply control unit; the output end of the single-fire power supply control unit is connected to the single-fire power supply unit for controlling the start and stop of the single-fire power supply unit according to the user APP or the user's key action; the output end of the single-fire power supply unit is connected to the single-chip microcomputer control unit for powering the single-chip microcomputer control unit.
[0009] Moreover, the Zigbee wireless module unit includes a battery, a boost module, a Zigbee chip and a Zigbee wireless module unit optocoupler chip; the output end of the battery is connected to the Zigbee chip through the boost module and supplies power to it; the output end of the Zigbee chip is connected to the single-chip microcomputer control unit through the Zigbee wireless module unit optocoupler chip for communicating with the single-chip microcomputer control unit.
[0010] Moreover, the single-chip microcomputer control unit includes a relay, a single-chip microcomputer and a single-chip microcomputer control unit optocoupler chip; the output end of the single-chip microcomputer is respectively connected to the relay and the single-chip microcomputer control unit optocoupler chip, and after the Zigbee wireless module unit optocoupler chip obtains the switch control instruction issued by the Zigbee chip, the IO drives the relay to close or open, and updates the relay state through the single-chip microcomputer control unit optocoupler chip and outputs it to the Zigbee chip.
[0011] Moreover, the single-fire power supply unit includes a dynamic power supply circuit, a static power supply circuit and a voltage conversion chip; the dynamic power supply circuit is composed of a MOS chip and an operational amplifier chip, and the output end of the dynamic power supply circuit is connected to the relay, which is used to output the live line current through the dynamic power supply circuit to the relay to form a lamp power supply circuit after the relay is closed; the output end of the dynamic power supply circuit is also connected to the single-chip microcomputer through the voltage conversion chip, which is used to power the single-chip microcomputer control unit; the static power supply circuit includes a switching power supply chip, an isolation transformer, a rectifier diode, a filter capacitor and a resistor; the input end of the static power supply circuit is connected to the single-fire power supply control unit, and the output end is connected to the single-chip microcomputer through the voltage conversion chip, which is used to output the live line current through the single-fire power supply control unit to the static power supply circuit for isolation, rectification, transformation, filtering, and then output to the voltage conversion chip to power the single-chip microcomputer control unit after the relay is disconnected; the output end of the static power supply circuit is also connected to the L_IN live line end to form a closed power supply circuit.
[0012] Moreover, the single-fire power supply control unit includes a high-voltage voltage divider unit, a microswitch and an optocoupler unit, an NMOS chip and a PMOS chip; the output end of the high-voltage voltage divider unit is connected to the PMOS chip through the microswitch and the optocoupler unit, the NMOS chip and the PMOS chip in sequence, so as to control the static power supply circuit to start working.
[0013] Moreover, the high-voltage voltage divider unit divides the mains voltage; the micro switch and the optical coupling unit are respectively connected to the voltage divider end of the high-voltage voltage divider unit and the G end of the NMOS chip; the D end and the S end of the NMOS chip are respectively connected to the G end and the reference ground end of the PMOS chip.
[0014] The advantages and positive effects of the present invention are:
[0015] 1. The present invention adopts Zigbee wireless module to communicate with user APP and communicates with single-chip microcomputer through optocoupler, so as to achieve the effect of two-way communication and real-time update of relay and lamp status.
[0016] 2. The present invention adds a single-fire power supply control circuit on the basis of the traditional single-fire power supply solution. When the lamp is off, the static power supply circuit is controlled by the user's button or APP, which effectively avoids the formation of leakage current at this time and avoids the occurrence of ghost fire phenomenon.
[0017] 3. The present invention takes into account that when the battery is out of power or the user presses the micro switch, the lamp can be effectively controlled to switch on and off and the status of the relay and the lamp can be synchronized.
[0018] 4. In the present invention, the weak current system is completely isolated from the strong current system, and the safety of the user is guaranteed when pressing the switch or replacing the battery. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a general block diagram of the internal circuit of the battery-based wireless intelligent wall switch device of the present invention;
[0020] Figure 2 It is a structural block diagram of the Zigbee wireless module unit of the present invention;
[0021] Figure 3 It is a structural block diagram of the single chip microcomputer control unit of the present invention;
[0022] Figure 4 It is a structural block diagram of a single-fire power extraction unit of the present invention;
[0023] Figure 5 It is a structural block diagram of the single-fire power taking control unit of the present invention. DETAILED DESCRIPTION
[0024] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings:
[0025] A battery-based wireless intelligent wall switch device, such as Figure 1 As shown, it includes a housing and an internal circuit thereof, wherein the internal circuit includes: a Zigbee wireless module unit 1, a single-chip microcomputer control unit 2, a single-fire power supply unit 3 and a single-fire power supply control unit 4;
[0026] The Zigbee wireless module unit 1 is connected to the single-chip microcomputer control unit, and is used to communicate with the user APP, and send the acquired user APP switch control instruction to the single-chip microcomputer control unit. The Zigbee wireless module unit is powered by a battery;
[0027] The single-chip control unit 2 is used to drive the relay to close or open according to the switch control instruction issued by the Zigbee wireless module unit, and output the updated relay switch state to the user APP through the Zigbee wireless module unit;
[0028] The output end of the Zigbee wireless module unit 1 is connected to the single-fire power taking control unit 4, which is used to control the start and stop of the single-fire power taking control unit.
[0029] The output end of the single-fire power supply control unit 4 is connected to the single-fire power supply unit. The single-fire power supply control unit 4 is an enabling circuit of the single-fire power supply unit 3, which is used to control the start and stop of the single-fire power supply unit 3 according to the user APP or user button action.
[0030] The output end of the single-fire power supply unit 3 is connected to the single-chip microcomputer control unit, and is used to obtain power at the live wire end and convert it into direct current to power the single-chip microcomputer control unit, which can be direct current 3.3V.
[0031] like Figure 2 As shown, the Zigbee wireless module unit 1 includes a battery 5, a boost module 6, a Zigbee chip 7 and a Zigbee wireless module unit optical coupling chip 8; the output end of the battery 5 is connected to the Zigbee chip 7 through the boost module and supplies power to it; the output end of the Zigbee chip 7 is connected to the single-chip control unit 2 through the Zigbee wireless module unit optical coupling chip 8, and is used to communicate with the single-chip control unit 2.
[0032] Optionally, the battery is preferably a dry cell battery.
[0033] In this embodiment, the battery 5 includes two AA alkaline batteries, which are connected in parallel and converted to 3.3V by the boost module 6 to power the Zigbee chip 7. Among them, the boost module 6 includes a boost chip SY7092 and a peripheral circuit, which can be composed of a resistor, a capacitor or a diode. The Zigbee chip 7 includes a low-power efr32mg21 chip and its peripheral circuit, which obtains the APP switch light instruction and updates the status of the light to the user through wireless communication with the Zigbee home gateway. The peripheral circuit can be composed of a resistor, a capacitor or a diode. The Zigbee wireless module unit optocoupler chip 8 includes a high-voltage isolation low-current optocoupler chip TLP2301. The Zigbee chip communicates with the single-chip control unit 2 through the high-voltage isolation low-current optocoupler chip TLP2301.
[0034] like Figure 3 As shown, the single-chip control unit 2 includes a relay 9, a single-chip computer 10 and a single-chip control unit optocoupler chip 11; the output end of the single-chip computer 10 is respectively connected to the relay 9 and the single-chip control unit optocoupler chip 11, and after the Zigbee wireless module unit optocoupler chip 8 obtains the switch control instruction issued by the Zigbee chip 7, the IO drives the relay 9 to close or open, and updates the relay state to the Zigbee chip 7 through the single-chip control unit optocoupler chip 11.
[0035] Optionally, the relay is preferably a magnetic holding relay, and the single-chip microcomputer is preferably a low-power single-chip microcomputer.
[0036] In this embodiment, the single-chip control unit 2 includes a relay 9, a single-chip 10 and a single-chip control unit optocoupler chip 11. The single-chip 10 includes an STM32L011D4P6. The single-chip control unit optocoupler chip 11 includes a high-voltage isolation low-current optocoupler chip TLP2301. The single-chip 10 obtains the switch control instruction issued by the Zigbee chip 7 through the Zigbee wireless module unit optocoupler chip 8, and then the IO drives the relay 9 to close or open, and updates the relay state to the Zigbee chip 7 through the single-chip control unit optocoupler chip 11.
[0037] like Figure 4 As shown, the single-fire power supply unit 3 includes a dynamic power supply circuit 12, a static power supply circuit 13 and a voltage conversion chip 14; the voltage conversion chip is a DC / DC or LDO chip (low dropout regulator, referred to as LDO, low voltage difference linear regulator); the dynamic power supply circuit is composed of a MOS chip and an operational amplifier chip, and the output end of the dynamic power supply circuit is connected to the relay 9, which is used to output the live line current to the relay after the relay 9 is closed, thereby forming a lamp power supply circuit; the output end of the dynamic power supply circuit is also connected to the single-chip microcomputer 10 through the voltage conversion chip, which is used to power the single-chip microcomputer control unit 2;
[0038] The static power supply circuit includes a switching power supply chip, an isolation transformer, a rectifier diode, a filter capacitor and a resistor; the input end of the static power supply circuit is connected to the single-fire power supply control unit, and the output end is connected to the single-chip computer 10 through a voltage conversion chip 14. It is used to output the live line current to the static power supply circuit after the relay 9 is disconnected, and then isolate, rectify, transform and filter it before outputting it to the voltage conversion chip to power the single-chip computer control unit 2. The other output end of the static power supply is connected to L_IN (live line end), and L_IN is used as the reference ground end to form a closed power supply loop.
[0039] In this embodiment, the single-fire power supply unit 3 includes a dynamic power supply circuit 12, a static power supply circuit 13 and a voltage conversion chip 14. The voltage conversion chip is a DC / DC or LDO chip. The dynamic power supply circuit 12 includes a MOS chip STD85N3LH5, an operational amplifier chip LM321 and other peripheral circuits composed of resistors, capacitors, diodes, etc. After the dynamic power supply circuit is closed, the live wire current flows in from L_IN, passes through the DS end of the MOS tube in the dynamic power supply circuit 12, and flows into the relay. Then, because the relay is closed, it flows out from the L_OUT end to drive the lamp to work, forming a lamp power supply circuit. Because the city power is an AC signal, the current direction is opposite when it is a negative cycle. When taking power, the operational amplifier chip LM321 controls the MOS chip STD85N3LH5 to chop the lamp power supply circuit and obtain part of the current from the lamp power supply circuit. After rectification and filtering, it is sent to the voltage conversion chip LD2981ABU33TR to convert it into 3.3V to supply the single-chip microcomputer control unit 2.
[0040] The static power circuit 13 includes a switching power chip LNK3202D, an isolation transformer, a rectifier diode, a filter capacitor and a resistor. The static power circuit works after the relay is disconnected, and the lamp power supply circuit is cut off. At this time, it is controlled by the single-fire power control unit 4. After the single-fire power control unit is turned on, the live line current flows from the L_OUT end through the single-fire power control unit into the static power circuit. At this time, L_OUT and L_IN are the power input end and the reference ground end of the static power circuit respectively. It is a voltage of 220AVC, which is sent to the voltage conversion chip LD2981ABU33TR after rectification, transformation and filtering through the switching power chip LNK3202D to convert it into 3.3V to supply the single-chip control unit 2.
[0041] like Figure 5 As shown, the single-fire power supply control unit 4 includes a high-voltage voltage divider unit 15, a microswitch and an optical coupling unit 16, an NMOS chip 17 and a PMOS chip 18; the output end of the high-voltage voltage divider unit 15 is connected to the PMOS chip 18 through the microswitch and the optical coupling unit 16, the NMOS chip 17, and the PMOS chip 18 in sequence, so as to control the static power supply circuit 13 to start working.
[0042] In this embodiment, the single-fire power supply control unit 4 includes a high-voltage voltage divider unit 15, a micro switch and an optical coupler unit 16, an NMOS chip 17 and a PMOS chip 18. The high-voltage voltage divider divides the mains voltage and divides the 220V high voltage into about 10V. The high-voltage voltage divider unit is composed of resistors and is connected in series to the mains circuit. The micro switch or optical coupler is respectively connected to the high-voltage voltage divider end and the G end of the NMOS chip 4n30 chip. The DS of the NMOS chip is respectively connected to the G end and the reference ground (L_IN) end of the PMOS chip 7P30. When the micro switch or optical coupler is turned on, the NMOS chip is turned on, and the PMOS chip is turned on, the static power supply circuit 13 starts to work.
[0043] It should be emphasized that the embodiments described in the present invention are illustrative rather than restrictive. Therefore, the present invention includes but is not limited to the embodiments described in the specific implementation manner. Any other implementation manners derived by those skilled in the art based on the technical solution of the present invention also fall within the scope of protection of the present invention.
Claims
1. A battery-based wireless intelligent wall switch device, comprising a housing and an internal circuit thereof, characterized in that: The internal circuit includes: a Zigbee wireless module unit, a single-chip microcomputer control unit, a single-fire power supply unit and a single-fire power supply control unit; the Zigbee wireless module unit is connected to the single-chip microcomputer control unit for communicating with the user APP, and sending the acquired user APP switch control instruction to the single-chip microcomputer control unit; the single-chip microcomputer control unit is used to drive the relay to close or open according to the switch control instruction sent by the Zigbee wireless module unit, and output the updated relay switch state to the user APP through the Zigbee wireless module unit; the output end of the Zigbee wireless module unit is connected to the single-fire power supply control unit for controlling the start and shut down of the single-fire power supply control unit; the output end of the single-fire power supply control unit is connected to the single-fire power supply unit for controlling the start and shut down of the single-fire power supply unit according to the user APP or the user's key action; the output end of the single-fire power supply unit is connected to the single-chip microcomputer control unit for powering the single-chip microcomputer control unit; The single-fire power supply unit includes a dynamic power supply circuit, a static power supply circuit and a voltage conversion chip; the dynamic power supply circuit is composed of a MOS chip and an operational amplifier chip, and the output end of the dynamic power supply circuit is connected to the relay, and is used to output the live line current through the dynamic power supply circuit to the relay to form a lamp power supply circuit after the relay is closed; the output end of the dynamic power supply circuit is also connected to the single-chip microcomputer through the voltage conversion chip, and is used to power the single-chip microcomputer control unit; the static power supply circuit includes a switching power supply chip, an isolation transformer, a rectifier diode, a filter capacitor and a resistor; the input end of the static power supply circuit is connected to the single-fire power supply control unit, and the output end is connected to the single-chip microcomputer through the voltage conversion chip, and is used to output the live line current through the single-fire power supply control unit to the static power supply circuit for isolation, rectification, transformation, filtering, and then output to the voltage conversion chip to power the single-chip microcomputer control unit after the relay is disconnected; the output end of the static power supply circuit is also connected to the L_IN live wire end, and is used to form a closed power supply circuit; The single-fire power-taking control unit includes a high-voltage voltage-dividing unit, a microswitch and an optical coupling unit, an NMOS chip and a PMOS chip; the output end of the high-voltage voltage-dividing unit is connected to the PMOS chip in sequence through the microswitch and the optical coupling unit, the NMOS chip and the PMOS chip, so as to control the static power-taking circuit to start working; The Zigbee wireless module unit includes a battery, a boost module, a Zigbee chip and a Zigbee wireless module unit optical coupling chip; the output end of the battery is connected to the Zigbee chip through the boost module and supplies power to it; the output end of the Zigbee chip is connected to the single-chip control unit through the Zigbee wireless module unit optical coupling chip, and is used to communicate with the single-chip control unit; The single-chip control unit includes a relay, a single-chip computer and a single-chip control unit optical coupling chip; the output end of the single-chip computer is connected to the relay and the single-chip control unit optical coupling chip respectively, and after the switch control instruction issued by the Zigbee chip is obtained through the Zigbee wireless module unit optical coupling chip, the IO drives the relay to close or open, and updates the relay state through the single-chip control unit optical coupling chip and outputs it to the Zigbee chip; The high-voltage voltage divider unit divides the mains voltage; the micro switch and the optical coupling unit are respectively connected to the voltage divider end of the high-voltage voltage divider unit and the G end of the NMOS chip; the D end and the S end of the NMOS chip are respectively connected to the G end and the reference ground end of the PMOS chip.
Citation Information
Patent Citations
Single-live-wire power taking circuit based on micro switch or optical coupler control
CN110461061A
LED load voltage detection circuit
CN203691707U
Intelligence switch with adjustting of lighteness function
CN206611625U
Single live wire switch's current regulation circuit and smart home systems
CN208094848U
Wireless intelligent wall switch device based on battery
CN210348241U