A method for transmitting information through a power supply line
By transmitting information through the power supply line, using the power supply frequency detection module and the microcontroller module, the high cost and sealing problems of parameter adjustment in water pump control are solved, and low-cost and high-reliability information transmission and parameter adjustment are achieved.
Patent Information
- Application Number
- CN202210843011.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-18
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-07-18
AI Technical Summary
In the water pump control, parameter adjustment requires disassembly of the whole machine or adding special connections, resulting in high cost and sealing problems, and the power line carrier method fails when long cables are long.
Information is transmitted through the power supply line, power supply frequency detection module and microcontroller module are used to identify frequency changes by using the AC power supply zero crossing detection circuit, and the frequency-changing power supply power is used to drive the water pump control board to operate.
It realizes low-cost and high-reliability information transmission without special connections, simplifies parameter adjustment and reduces implementation complexity and cost.
Smart Images

Figure CN115225116B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of water pump control, and in particular, to a method for transmitting information through a power supply line. Background Art
[0002] Regarding the control technology of water pumps, one would think of the electronic control board of the water pump, that is, the circuit control device. The electronic control board is installed inside the water pump and belongs to a part of the whole water pump. During the production process and application, in certain cases, it is necessary to configure the electronic control parameters to meet the actual application requirements.
[0003] For example, in a deep well pump with an electronic control board built-in, there is a sensor inside the pump to control the minimum operating flow. Due to the mechanical structure of the sensor, the detection results of the sensor are different. In the past, an intermediate parameter was selected for control, and there were also many products with inappropriate parameters. In actual applications, the parameters of some products would also change or not meet the actual requirements. Therefore, it is necessary to adjust the parameters.
[0004] In the past, such things could only be adjusted by disassembling the whole machine, taking out the built-in electronic control board and connecting it to the simulation interface or data communication interface. This greatly increased the workload, and sometimes the adjustment was not in place at one time, which was also likely to cause other problems such as poor sealing during the secondary assembly of the product.
[0005] Of course, the adjustment parameters can also be transmitted to the built-in electronic control board through a dedicated line, but this requires adding external connections, which not only increases the cost but also increases the sealing problem.
[0006] It is also possible to sample the power line carrier method for information transmission. Although no dedicated connection is required, it will increase a lot of costs. And when the water pump cable is too long, this method will also fail.
[0007] To solve the above problems, the present invention provides a new information transmission method, which can well solve the aforementioned problems. Summary of the Invention
[0008] The purpose of the present invention is to address the deficiencies of the prior art and at least to some extent solve the technical problems in the related art. A method for transmitting information through a power supply line is provided, which has the advantages of low cost, high reliability, and being convenient for use and implementation.
[0009] To solve the above technical problems, the technical solution of the present invention is: A method for transmitting information through a power supply line, including a power supply circuit module with an external power supply interface, a single-chip microcomputer module, and a power supply frequency detection module. The power supply circuit module is used to provide the working power supply for the single-chip microcomputer module. The power supply frequency detection module is connected between the power supply circuit module and the single-chip microcomputer module, and is used to detect the externally input power supply frequency and feedback it to the single-chip microcomputer module;
[0010] When external information needs to be transmitted to the single-chip microcomputer, a specific power supply frequency formed by carrying the information to be transmitted is used for the single-chip microcomputer module to identify, and the single-chip microcomputer module decodes the specific power supply frequency.
[0011] Preferably, the power supply frequency detection module is a zero-crossing detection circuit, and the zero-crossing detection circuit is used to detect the zero-crossing signal of the externally input power supply and feedback the signal to the single-chip microcomputer module.
[0012] Preferably, the following steps are further included:
[0013] Step 1: Provide an external power supply with an initial frequency of f0, where f0 is a frequency other than the common AC power frequency;
[0014] Step 2: When the power supply frequency is detected to be f0, it means entering the information transmission process, and the control of the water pump is no longer performed;
[0015] Step 3: The external power supply with a frequency of f0 supplies power continuously for a time T0;
[0016] Step 4: The information S is a natural number, and is converted into a specific power supply frequency f1 carrying the information S. The conversion formula is: f1 = f0 + S * N;
[0017] Step 5: After the single-chip microcomputer module delays for T0, when the specific power supply frequency f1 is detected, it can be converted into the information S, and S = (f1 - f0) / N, where N is a non-zero natural number.
[0018] Preferably, when more information needs to be transmitted, after supplying power with f1 for a time T1, then supplying power with f2 for a time T2, and so on until supplying power with fn for a time Tn to complete the transmission of n pieces of information; or,
[0019] After transmitting m pieces of information, the power supply with f0 is used again to start transmitting new information.
[0020] Preferably, the zero-crossing signal is input to the capture function pin of the single-chip microcomputer module to directly detect the pulse width and thus calculate the frequency; or, the zero-crossing signal is input to the interrupt pin of the single-chip microcomputer module, and then combined with the internal timing method to detect the frequency.
[0021] Preferably, the signal processing step flow of the single-chip microcomputer module further includes:
[0022] Step 1: Program initialization;
[0023] Step 2: Detect whether there is a new input capture value;
[0024] Step 3: Determine whether there is a new value.
[0025] Step 4: If there is a new value, calculate the frequency f0. If there is no new value, start timing Tw, then determine whether Tw exceeds the limit value. If it does not exceed the limit value, return to Step 2. If it exceeds the limit value, exit the information transmission and enter the water pump control process.
[0026] Step 5: Determine whether f0 is a specific starting frequency value. If it is not, exit the information transmission and enter the water pump control process. If it is, wait for the time T0.
[0027] Step 6: Detect whether there is an input capture value.
[0028] Step 7: Determine whether there is a capture value. If there is no capture value, return to Step 6. If there is a capture value, calculate the frequency f1, calculate the information value S through f1, and process the information value S.
[0029] Step 8: Determine whether the information transmission is completed. If it is not completed, wait for the time T1 and return to Step 6. If the information processing is completed, wait for shutdown and restart.
[0030] Compared with the background technology, the technical effects of the present invention are mainly reflected in the following aspects:
[0031] 1. No dedicated wiring is required, nor is a complex and high-cost power line carrier circuit needed. Compared with the prior art, a power frequency identification circuit, specifically an AC power zero-crossing detection circuit, is added in terms of hardware. In terms of data processing, information is transmitted by identifying the frequency change of the power supply.
[0032] 2. When adjusting the water pump, a supporting power supply is used. This power supply device can generate a power supply with frequency changes. This power supply can not only be used to provide power but also generate different frequencies as needed. The power of this power supply can drive the operation of the water pump electronic control board, and information is transmitted through the frequency change, thereby enabling the adjustment and control of the internal parameters of the single-chip microcomputer.
[0033] 3. For the method of the present invention, when the transmitted information is not complex, the requirement for frequency accuracy is low, and it is relatively easy to implement. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is the circuit schematic diagram in the embodiment;
[0035] Figure 2 It is the information processing flow chart of the single-chip microcomputer module in the embodiment. Specific implementation manners
[0036] The following further details the specific implementation manners of the present invention in conjunction with the accompanying drawings, so that the technical solutions of the present invention are easier to understand and master.
[0037] Embodiment:
[0038] A method for transmitting information through a power supply line is mainly illustrated by taking its application in water pump control as an example. Refer to Figure 1 As shown, it includes a power supply circuit module with an external power supply interface, a single-chip microcomputer module, and a power supply frequency detection module. The power supply circuit module is used to provide the working power supply for the single-chip microcomputer module. The power supply frequency detection module is connected between the power supply circuit module and the single-chip microcomputer module, and is used to detect the externally input power supply frequency and feedback it to the single-chip microcomputer module. When external information needs to be transmitted to the single-chip microcomputer, a specific power supply frequency formed by carrying the information to be transmitted is used to let the single-chip microcomputer module recognize it, and the single-chip microcomputer module decodes the specific power supply frequency. The power supply frequency detection module is a zero-crossing detection circuit, and the zero-crossing detection circuit is used to detect the zero-crossing signal of the externally input power supply and feedback its signal to the single-chip microcomputer module.
[0039] In Figure 1 it can be seen that for the electronic control board on the water pump, generally, signals are input from the input signal module to the single-chip microcomputer module, and then output from the single-chip microcomputer module to the output driving circuit, and then the water pump motor is driven. Through this solution, the input signals do not need to pass through the above information transmission path.
[0040] The present invention does not require special wiring, nor does it require a complex and high-cost power line carrier circuit. The technical key points of the present invention are:
[0041] In terms of hardware, an AC power supply zero-crossing detection circuit is added.
[0042] In terms of software, information is transmitted by identifying the frequency change of the power supply.
[0043] When adjusting the water pump, a power supply that can generate frequency changes is used. Different frequencies can be generated according to needs. The power of this power supply only needs to be able to drive the operation of the water pump electronic control board, and there is no need to drive the water pump itself to operate.
[0044] Regarding the zero-crossing detection circuit, it includes resistor R1, diode D1, optocoupler U1, and resistor R2. The connection method is as follows: The external power supply port has a live wire terminal and a neutral wire terminal. One end of resistor R1 is connected to the live wire terminal, and the other end of resistor R1 is connected to the cathode of diode D1 and the anode of optocoupler U1. The neutral wire terminal is connected to the anode of diode D1 and the anode of optocoupler U1. The collector of optocoupler U1 is connected to one end of resistor R2 and the input capture pin of the single-chip microcomputer module. The other end of resistor R2 is connected to voltage VCC, and the emitter of optocoupler U1 is grounded.
[0045] The AC power supply is connected to optocoupler U1 through current-limiting resistor R1. During the positive half-wave of the power supply, a loop is generated through the internal light-emitting diode of optocoupler U1, and during the negative half-wave, a loop is generated through diode D1. When the light-emitting end of optocoupler U1 emits light, the light-receiving end conducts, and the signal output to the single-chip microcomputer is at a low level. When the light-emitting end of optocoupler U1 does not emit light, the light-receiving end is cut off, and the output end is pulled up through resistor R2. At this time, the signal sent to the single-chip microcomputer is at a high level. Therefore, the signal output to the single-chip microcomputer is a square wave signal with the same frequency as the power supply.
[0046] The information transmission method is as follows:
[0047] Step 1: Provide an external power supply with an initial frequency of f0, where f0 is a frequency other than the common AC power frequency;
[0048] Step 2: If the power supply frequency is detected to be f0, it means entering the information transmission process, and the control of the water pump is no longer carried out;
[0049] Step 3: The external power supply with a frequency of f0 supplies power continuously for a time T0.
[0050] Step 4: The information S is a natural number and is converted into a specific power supply frequency f1 carrying the information S. The conversion formula is: f1 = f0 + S * N;
[0051] Step 5: After the single-chip microcomputer module delays for T0, if the specific power supply frequency f1 is detected, it can be converted into the information S, where S = (f1 - f0) / N, and N is a non-zero natural number. For example, it can take a value of 5.
[0052] Specific application example:
[0053] When initially powered on, the power appliance responsible for information processing uses a power supply frequency of 100HZ. After the connection power supply for 3 seconds, the control board ( Figure 1 the circuit shown) detects the 100HZ power supply frequency after being powered on, and then enters the information transmission and processing process. If the range of the information S to be transmitted is -10 to 10, and 5HZ represents one information base number, and a negative number indicates a corresponding decrease in the power supply frequency, and a positive number indicates a corresponding increase in the power supply frequency, then the power supply frequency range from 50HZ to 150HZ is sufficient.
[0054] If the transmitted information is -5, the power supply frequency is f1 = 100 + (-5) * 5 = 75 (HZ);
[0055] If the transmitted information is 5, the power supply frequency is f1 = 100 + 5 * 5 = 125 (HZ);
[0056] Continuous power supply at the new power supply frequency for 5S can complete the information transmission process. After the control board receives the new frequency, it can parse the transmitted information as -5 or 5 and perform corresponding processing.
[0057] When there is more information to be transmitted, it can supply power at f1 for T1 time, then supply power at f2 for T2 time, and so on until supplying power at fn for Tn time to complete the transmission of n pieces of information; or, after transmitting m pieces of information, resume supplying power at f0 to start transmitting new information.
[0058] The zero-crossing signal is input to the capture function pin of the single-chip microcomputer module to directly detect the pulse width and thus calculate the frequency; or, the zero-crossing signal is input to the interrupt pin of the single-chip microcomputer module, and then combined with the internal timing method to detect the frequency.
[0059] Reference Figure 2 As shown, the signal processing step flow of the specific single-chip microcomputer module further includes:
[0060] Step 1: Program initialization;
[0061] Step 2: Detect whether there is a new input capture value;
[0062] Step 3: Judge whether there is a new value,
[0063] Step 4: If there is a new value, calculate the frequency f0. If there is no new value, start timing Tw, and then judge whether Tw exceeds the limit value. If it does not exceed the limit value, return to Step 2. If it exceeds the limit value, exit the information transmission and enter the water pump control process.
[0064] Step 5: Judge whether f0 is a specific starting frequency value. If not, exit the information transmission and enter the water pump control process. If it is, wait for the time T0.
[0065] Step 6: Detect whether there is an input capture value,
[0066] Step 7: Judge whether there is a capture value. If there is no capture value, return to Step 6. If there is a capture value, calculate the frequency f1, calculate the information value S through f1, and process the information value S.
[0067] Step 8: Judge whether the information transmission is completed. If it is not completed, wait for the time T1 and return to Step 6. If the information processing is completed, wait for shutdown and restart.
[0068] In summary, the technical solution of the present application has the following advantages: There is no need for dedicated wiring, nor complex and costly power line carrier circuits. Compared with the prior art, in terms of hardware, a power frequency identification circuit is added, specifically an AC power zero-crossing detection circuit. In terms of data processing, information is transmitted by identifying the frequency change of the power supply. When adjusting the water pump, a supporting power supply is used. This power supply device can generate a power supply with frequency changes. This power supply can not only be used to provide power, but also generate different frequencies according to needs. The power of this power supply can drive the operation of the water pump electronic control board, and information is transmitted through the frequency change, thereby enabling the adjustment and control of the internal parameters of the single-chip microcomputer. The method of the present invention has low requirements for the accuracy of the frequency when the transmitted information is not complex, and is relatively easy to implement.
[0069] Of course, the above are only typical examples of the present invention. In addition, the present invention can also have many other specific implementation manners. Any technical solutions formed by equivalent replacement or equivalent transformation fall within the scope of protection required by the present invention.
Claims
1. A method for transmitting information through a power supply line, including a power supply circuit module with an external power supply interface, a single-chip microcomputer module, and a power supply frequency detection module. The power supply circuit module is used to provide the working power supply for the single-chip microcomputer module, and is characterized in that: The power supply frequency detection module is connected between the power supply circuit module and the single-chip microcomputer module, and is used to detect the externally input power supply frequency and feedback it to the single-chip microcomputer module; When external information needs to be transmitted to the single-chip microcomputer, a specific power supply frequency formed by carrying the information to be transmitted is used to enable the single-chip microcomputer module to identify it, and the single-chip microcomputer module decodes the specific power supply frequency; the power supply frequency detection module is a zero-crossing detection circuit, and the zero-crossing detection circuit is used to detect the zero-crossing signal of the externally input power supply and feedback its signal to the single-chip microcomputer module; the following steps are also included: Step 1: Provide an external power supply with an initial frequency of f0, where f0 is a frequency other than the common alternating current frequency; Step 2: If the detected power supply frequency is f0, it means entering the information transmission process, and the control of the water pump is no longer carried out; Step 3: The external power supply with a frequency of f0 supplies power continuously for a time T0; Step 4: The information S uses natural numbers and is converted into a specific power supply frequency f1 carrying the information S. The conversion formula is: f1 = f0 + S * N; Step 5: After the single-chip microcomputer module delays for T0, it detects the specific power supply frequency f1 and converts it into the information S, S = (f1 - f0) / N, where N is a non-zero natural number; when more information is transmitted, after supplying power at the specific power supply frequency f1 for a time T1, supply power at the specific power supply frequency f2 for a time T2, and so on until supplying power at the specific power supply frequency fn for a time Tn to complete the transmission of n pieces of information; Or, After transmitting m pieces of information, the initial power supply frequency f0 is reused to start transmitting new information.
2. The method for transmitting information through a power supply line according to claim 1, wherein: The zero-crossing signal is input to the capture function pin of the single-chip microcomputer module to directly detect the pulse width and thus calculate the frequency; or, the zero-crossing signal is input to the interrupt pin of the single-chip microcomputer module, and then combined with the internal timing method to detect the frequency.
3. The method for transmitting information through a power supply line according to claim 2, wherein: The signal processing step flow of the single-chip microcomputer module further includes: Step 1: Program initialization; Step 2: Detect whether there is a new input capture value; Step 3: Judge whether there is a new value; Step 4: If there is a new value, calculate the frequency f0. If there is no new value, start timing Tw, and then judge whether Tw exceeds the limit value. If it does not exceed the limit value, return to Step 2. If it exceeds the limit value, exit the information transmission and enter the water pump control process; Step 5: Judge whether f0 is a specific starting frequency value. If it is not, exit the information transmission and enter the water pump control process. If it is, wait for a time T0; Step 6: Detect whether there is an input capture value; Step 7: Judge whether there is a capture value. If there is no capture value, return to Step 6. If there is a capture value, calculate the specific power supply frequency f1, calculate the information value S through the specific power supply frequency f1, and process the information value S; Step 8: Judge whether the information transmission is completed. If it is not completed, wait for a time T1 and return to Step 6. If the information processing is completed, wait for shutdown and restart.
Citation Information
Patent Citations
Method for data transmission between a pump assembly and a control device, as well as a correspondingly designed pump system
US20090052281A1