CN113676221B - Decoding method of power line carrier - Google Patents

Decoding method of power line carrier Download PDF

Info

Publication number
CN113676221B
CN113676221B CN202110969859.3A CN202110969859A CN113676221B CN 113676221 B CN113676221 B CN 113676221B CN 202110969859 A CN202110969859 A CN 202110969859A CN 113676221 B CN113676221 B CN 113676221B
Authority
CN
China
Prior art keywords
optocoupler
module
resistor
half cycle
positive
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.)
Active
Application number
CN202110969859.3A
Other languages
Chinese (zh)
Other versions
CN113676221A (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.)
Shenzhen Jidu Chuangxiang Technology Co ltd
Original Assignee
Shenzhen Jidu Chuangxiang 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 Shenzhen Jidu Chuangxiang Technology Co ltd filed Critical Shenzhen Jidu Chuangxiang Technology Co ltd
Priority to CN202110969859.3A priority Critical patent/CN113676221B/en
Publication of CN113676221A publication Critical patent/CN113676221A/en
Application granted granted Critical
Publication of CN113676221B publication Critical patent/CN113676221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/548Systems for transmission via power distribution lines the power on the line being DC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/542Systems for transmission via power distribution lines the information being in digital form

Abstract

The invention discloses a decoding method of power carrier waves, which comprises the steps that analog signals on a power line are decomposed into digital signals by hardware, and then the digital signals are sent to an MCU processing module for processing, and the working mode of an electric appliance is controlled; the hardware comprises an alternating current detection module, a rectifier bridge BD1, a current backflow prevention module, a positive and negative half cycle switching detection module, a DC-DC conversion module and an MCU processing module; the invention respectively detects whether the positive half cycle and the negative half cycle of the alternating current are conducted through the optical coupler U1 and the optical coupler U2, the MCU processing module detects whether the coupling end has pulse output for judgment, the rectifier bridge BD1 rectifies the alternating current into direct current to be supplied to the DC-DC module, the diode D1 prevents current backflow, the zero crossing of the positive half cycle and the negative half cycle is reliably detected, and the optical coupler U3 detects whether the positive half cycle and the negative half cycle are switched; the MCU processing module main control module decodes signals on the power line as a basis for controlling the working mode of the electric appliance on one hand, and controls the actions of the peripheral functional blocks on the other hand.

Description

Decoding method of power line carrier
Technical Field
The invention relates to the field of electric appliance control, in particular to an electronic product which is controlled by a controller and a controlled electric appliance in a spatially separated way and can be controlled only by communication.
Background
The special controller is inconvenient to install due to wiring or replace old products with new products;
in an electrical appliance with more functions, because a controller (a facility controlled by a person) is not connected with the electrical appliance to be controlled, the person needs to control the electrical appliance, and the controller needs to communicate with an MCU processing module of the electrical appliance to complete the instruction of the person. It is a conventional solution that it can be wired or remotely controlled.
Therefore, a decoding method of the power carrier is provided.
Disclosure of Invention
The invention aims to provide a low-cost and simple communication decoding method.
In order to achieve the purpose, the invention provides the following technical scheme: a decoding method of power line carrier wave, the method decomposes the analog signal on the power line into the digital signal by the hardware, and then give and MCU processing module to process, control the electrical apparatus working mode;
hardware includes alternating current detection module, rectifier bridge BD1, prevents that electric current refluence module, positive and negative half cycle switch detection module, DC-DC conversion module and MCU processing module, its characterized in that: rectifier bridge BD1 and commercial power connection, commercial power connection alternating current detection module, rectifier bridge BD1 connects DC-DC conversion module, DC-DC conversion module connects the anti-current backflow module, the anti-current backflow module connects positive and negative half cycle switching detection module, MCU processing module connects positive and negative half cycle switching detection module.
The invention respectively detects whether the positive half cycle and the negative half cycle of the alternating current are conducted through the optocoupler U1 and the optocoupler U2, and the MCU processing module detects whether the coupling end has pulse output for judgment; the rectifier bridge BD1 rectifies alternating current into direct current to be supplied to the DC-DC module, the diode D1 prevents current from flowing back, so that zero crossing of positive and negative half cycles is reliably detected, and the optocoupler U3 detects whether the positive and negative half cycles are switched or not; the MCU processing module monitors the waveform of the U3 to realize the state of a carrier signal; the MCU processing module main control module decodes signals on the power line as a basis for controlling the working mode of the electric appliance on one hand, and controls the actions of the peripheral functional blocks on the other hand.
As further preferable in the present technical solution: the alternating current detection module comprises an optocoupler U1, an optocoupler U2, a resistor R1, a resistor R2 and a resistor R3;
the optocoupler U1 and the optocoupler U2 are reversely connected in parallel;
the resistor R1 and the resistor R2 are connected with the input ends of the optocoupler U1 and the optocoupler U2 which are connected in parallel in series, and the series connection position is not limited (such as R1+ R2+ RU, R1+ RU + R2, RU + R1+ R2, and RU refers to the optocoupler U1 and the optocoupler U2 which are connected in parallel); the resistor R3 (the resistance value is 10 KR-infinity (namely open circuit)) is connected with the input ends of the optocoupler U1 and the optocoupler U2 which are connected in parallel, has a voltage division effect, is related to specific parameters of the optocoupler U1 and sometimes can be omitted;
the optocoupler U1 and the optocoupler U2 are connected in an opposite mode, the positive pole of the optocoupler U1 is connected with an AC live wire ACL, the negative pole of the optocoupler U1 is connected with an AC zero line ACN, the positive pole of the optocoupler U2 is connected with the AC zero line ACN, and the negative pole of the optocoupler U2 is connected with the AC live wire ACL.
As further preferable in the present technical solution: the anti-current backflow module is composed of a diode D1 and a capacitor CE1, the negative electrode of the diode D1 is connected with the positive electrode output of the rectifier bridge BD1, and the positive electrode of the diode D1 is connected with the positive electrode of the capacitor CE 1.
As a further preferred aspect of the present invention: the positive and negative half-cycle switching detection module comprises an optocoupler U3, a resistor R4 and a resistor R5, wherein the resistors R4 and R5 and the input end of the optocoupler U3 form a series connection relation, the positive electrode of the input end of the optocoupler U3 is connected with the positive electrode of the rectified output of the rectifier bridge BD1, and the negative electrode of the input end of the optocoupler U3 is connected with the negative electrode of the rectified output of the rectifier bridge BD 1; when the optocoupler U3 is connected with the rectifier bridge BD1, the anode of a diode at the input end of the optocoupler U3 must be connected with a high potential end, the cathode must be connected with a low potential end, the high voltage end is connected with the anode of the rectifier bridge BD1 for rectification output, and the low voltage end is connected with the cathode of the rectifier bridge BD1 for output.
As further preferable in the present technical solution: the output signals NL _ Wave, LN _ Wave and All _ Wave of the optocoupler U1, the optocoupler U2 and the optocoupler U3 are connected with the IO of the MCU processing module, the MCU processing module judges a signal source according to the combination relation of the three signals, and decides to control the working mode of the electrical appliance, the signal source is judged to be the information of a coding party, and the gear of the variable frequency ceiling fan is decided.
Compared with the prior art, the invention has the beneficial effects that:
the invention decomposes the analog signal on the power line into digital signal by hardware, and then sends the digital signal to the MCU processing module for processing, and controls the working mode of the electric appliance. The hardware comprises an alternating current detection module, a rectifier bridge BD1, a current backflow prevention module, a positive and negative half cycle switching detection module, a DC-DC conversion module and an MCU processing module.
The invention respectively detects whether the positive half cycle and the negative half cycle of the alternating current are conducted through the optocoupler U1 and the optocoupler U2, the MCU processing module detects whether the coupling end has pulse output for judgment, the rectifier bridge BD1 rectifies the alternating current into direct current for supplying to the DC-DC module, the diode D1 prevents current backflow, the zero crossing of the positive half cycle and the negative half cycle is reliable to detect, and the optocoupler U3 detects whether the positive half cycle and the negative half cycle are switched; the MCU processing module monitors the waveform of the U3 to realize the state of a carrier signal; the MCU processing module main control module decodes signals on the power line as a basis for controlling the working mode of the electric appliance on one hand, and controls the action of peripheral functional blocks on the other hand.
The command of the controller is obtained through the power line without wiring, so that the product is relatively simplified, and meanwhile, the cost is reduced.
Drawings
Fig. 1 is a circuit diagram of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Frequency conversion ceiling fan embodiment
Referring to fig. 1, the present invention provides a technical solution: the invention decomposes the analog signal on the power line into digital signal by hardware, and then sends the digital signal to the MCU processing module for processing, and controls the working mode of the electric appliance. The hardware comprises an alternating current detection module, a rectifier bridge BD1, a current backflow prevention module, a positive and negative half cycle switching detection module, a DC-DC conversion module and an MCU processing module.
The invention respectively detects whether the positive half cycle and the negative half cycle of the alternating current are conducted through the optocoupler U1 and the optocoupler U2, and the MCU processing module detects whether the coupling end has pulse output for judgment; the rectifier bridge BD1 rectifies alternating current into direct current to be supplied to a DC-DC module (namely a power supply conversion module), the diode D1 prevents current from flowing back, so that zero crossing of positive and negative half cycles is reliably detected, and whether the positive and negative half cycles are switched or not is detected by the optocoupler U3; the MCU processing module monitors the waveform of the U3 to realize the state of a carrier signal; the MCU processing module main control module decodes signals (combined signals output by U1, U2 and U3) on a power line on one hand as the basis for controlling the gear of the variable-frequency ceiling fan, and controls each logic signal for driving the fan on the other hand.
In this embodiment, specifically: the alternating current detection module comprises optocouplers U1 and U2, resistors R1 and R2 and a resistor R3;
the optocoupler U1 and the optocoupler U2 are reversely connected in parallel;
the resistor R1 and the resistor R2 are connected with the input ends of the optocoupler U1 and the optocoupler U2 which are connected in parallel in series, and the resistor R3 is connected with the input ends of the optocoupler U1 and the optocoupler U2 which are connected in parallel to play a role of voltage division;
the optocoupler U1 and the optocoupler U2 are connected in an opposite mode, the positive pole of the optocoupler U1 is connected with an AC live wire ACL, the negative pole of the optocoupler U1 is connected with an AC zero line ACN, the positive pole of the optocoupler U2 is connected with the AC zero line ACN, and the negative pole of the optocoupler U2 is connected with the AC live wire ACL.
Because the controller can produce the power line carrier on the power supply line of controlled product, detect respectively through opto-coupler U1, opto-coupler U2 whether the alternating current positive, negative half cycle switches on, whether have pulse output to judge by MCU processing module detection coupling end.
In this embodiment, specifically: the current backflow prevention module is composed of a diode D1 and a capacitor CE1, the negative electrode of the diode D1 is connected with the positive electrode output of the rectifier bridge BD1, and the positive electrode of the diode D1 is connected with the positive electrode of the capacitor CE 1.
In this embodiment, specifically: the positive and negative half-cycle switching detection module comprises an optocoupler U3, a resistor R4 and a resistor R5, wherein the resistors R4 and R5 and the input end of the optocoupler U3 form a series connection relation, the positive electrode of the input end of the optocoupler U3 is connected with the positive electrode of the rectifier bridge BD1 for rectification output, and the negative electrode of the input end of the optocoupler U3 is connected with the negative electrode of the rectifier bridge BD1 for rectification output; when the optocoupler U3 is connected with the rectifier bridge BD1, the anode of a diode at the input end of the optocoupler U3 must be connected with a high potential end, the cathode must be connected with a low potential end, the high voltage end is connected with the anode of the rectifier bridge BD1 for rectification output, and the low voltage end is connected with the cathode of the rectifier bridge BD1 for output.
In this embodiment, specifically: the output signal NL _ Wave, LN _ Wave and All _ Wave of the optocoupler U1, the optocoupler U2 and the optocoupler U3 are connected with the IO of the MCU processing module, the MCU processing module judges a signal source according to the combination relation of the three signals, and decides to control the working mode of the electrical appliance, judges the information of the signal source, namely the coding party, and decides the gear of the variable frequency ceiling fan.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (1)

1. A decoding method of power line carrier wave, said decoding method decomposes the analog signal on the power line into the digital signal by the hardware, and then give and MCU processing module to process, control the electrical apparatus working pattern;
the hardware comprises an alternating current detection module, a rectifier bridge BD1, a current backflow prevention module, a positive and negative half cycle switching detection module, a DC-DC conversion module and an MCU processing module, and is characterized in that: the rectifier bridge BD1 is connected with a mains supply, the mains supply is connected with an alternating current detection module, the rectifier bridge BD1 is connected with a DC-DC conversion module, the DC-DC conversion module is connected with a current backflow prevention module, the current backflow prevention module is connected with a positive and negative half cycle switching detection module, and the MCU processing module is connected with the positive and negative half cycle switching detection module;
the alternating current detection module comprises an optocoupler U1, an optocoupler U2, a resistor R1, a resistor R2 and a resistor R3;
the optocoupler U1 and the optocoupler U2 are reversely connected in parallel;
the resistor R1 and the resistor R2 are connected with the input ends of the optocoupler U1 and the optocoupler U2 which are connected in parallel in series;
the resistor R3 is connected in parallel with the input ends of the optocoupler U1 and the optocoupler U2 which are connected in parallel;
the positive electrode of the optical coupler U1 is connected with an AC live wire ACL, the negative electrode of the optical coupler U1 is connected with an AC zero line ACN, the positive electrode of the optical coupler U2 is connected with the AC zero line ACN, and the negative electrode of the optical coupler U2 is connected with the AC live wire ACL;
the current backflow prevention module is composed of a diode D1 and a capacitor CE1, the negative electrode of the diode D1 is connected with the positive electrode output of the rectifier bridge BD1, and the positive electrode of the diode D1 is connected with the negative electrode of the capacitor CE 1;
the positive and negative half-cycle switching detection module comprises an optocoupler U3, a resistor R4 and a resistor R5, wherein the resistor R4 and the resistor R5 are connected with the input end of the optocoupler U3 in series;
the resistor R4 and the resistor R5 are connected with the input end of the optocoupler U3 in series, the anode of the input end of the optocoupler U3 is connected with the anode of the rectifier bridge BD1 for rectification output, and the cathode of the input end of the optocoupler U3 is connected with the cathode of the rectifier bridge BD1 for rectification output;
the output signals NL _ Wave, LN _ Wave and All _ Wave of the optocoupler U1, the optocoupler U2 and the optocoupler U3 are connected to the IO of the MCU processing module, and the MCU processing module judges a signal source according to the combination relation of the three signals and decides to control the working mode of the electrical appliance.
CN202110969859.3A 2021-08-23 2021-08-23 Decoding method of power line carrier Active CN113676221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110969859.3A CN113676221B (en) 2021-08-23 2021-08-23 Decoding method of power line carrier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110969859.3A CN113676221B (en) 2021-08-23 2021-08-23 Decoding method of power line carrier

Publications (2)

Publication Number Publication Date
CN113676221A CN113676221A (en) 2021-11-19
CN113676221B true CN113676221B (en) 2022-10-25

Family

ID=78545367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110969859.3A Active CN113676221B (en) 2021-08-23 2021-08-23 Decoding method of power line carrier

Country Status (1)

Country Link
CN (1) CN113676221B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011259560A (en) * 2010-06-07 2011-12-22 Minebea Co Ltd Load driving device, and frequency control method of the same

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7733035B2 (en) * 2008-02-01 2010-06-08 Hao-Chin Pai Electronic power supply device for light-emitting diode
CN201203647Y (en) * 2008-05-29 2009-03-04 青岛海信宽带多媒体技术股份有限公司 AC zero-cross detection circuit and electric force carrier adapter with the same
CN201830516U (en) * 2010-09-26 2011-05-11 石家庄合辐节能科技有限公司 Control circuit of light emitting diode (LED) street lamp capable of being regulated and controlled remotely based on electric carrier communication
CN204697345U (en) * 2015-06-02 2015-10-07 宁波公牛电器有限公司 A kind of centralized control electronic switching circuit
CN110366296A (en) * 2019-07-29 2019-10-22 深圳市福瑞新科技有限公司 Pass through the controller of power line communication, LED lamp and LED control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011259560A (en) * 2010-06-07 2011-12-22 Minebea Co Ltd Load driving device, and frequency control method of the same

Also Published As

Publication number Publication date
CN113676221A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN102057555B (en) Apparatus for minimizing standby power of switching-mode power supply
WO2011153028A2 (en) Toggling method and apparatus in controllers for home appliances
US20150222120A1 (en) Electrical household appliance system
CN205961512U (en) LED light modulator and LED drive arrangement
CN113676221B (en) Decoding method of power line carrier
CN205961510U (en) LED light modulator and LED drive arrangement
CN217427773U (en) Power supply control system
CN108260263A (en) A kind of method and communicating circuit using ac power cable communication
CN107437849B (en) Local power network on-line switch modulation digital communication control system
AU2011200252A1 (en) Method for controlling low- voltage using waves AC and system for performing the same
CN106102245A (en) LED dimmer, LED light-dimming method and LED drive device
CN208691154U (en) A kind of programmable DC power supply
CN103883550B (en) A kind of method by power line control apparatus and wire controller
CN218769288U (en) Intelligent switch with zero-crossing detection function
CN111491420A (en) Dimming method for realizing dimming through monitoring circuit waveform
CN205263566U (en) Single live wire power supply line control system
CN205544952U (en) A variable -frequency power supply
JP2016092665A (en) Electric circuit changing operational function of load by stopping power supply temporarily
CN217721539U (en) Intelligent switch control system for single-fire electricity taking
CN204425056U (en) wireless docking bathtub lamp system
CN218848232U (en) Zero-crossing detection circuit, control system and electric appliance
WO2023208217A1 (en) Power supply control system and power supply control method
CN213185920U (en) Wireless monitoring inverter power supply based on DSP
CN106786532B (en) Intelligent power optimizing distributor
CN210938449U (en) Electric control system of wall surface grinding machine

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