Module with alternating current sampling function and display function and air conditioner
By introducing a modular design of current transformers, matching resistors, digital tubes, and microcontrollers into the air conditioner, the problem of lack of current sampling and display in the air conditioner is solved, realizing the visualization of current and functional expansion, and reducing costs.
Patent Information
- Application Number
- CN202520147699.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-22
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2035-01-22
AI Technical Summary
Traditional air conditioners lack compressor current sampling and display functions, making it impossible to understand the air conditioner load. Existing measurement methods are costly and inconvenient to install.
Design a module with AC current sampling and display functions, including a current transformer, a matching resistor, a digital tube, a microcontroller, and a main control board. The current transformer senses the AC voltage, the microcontroller performs analog-to-digital conversion, and the digital tube displays the current value.
It enables a visual display of compressor current, is practical, low-cost, and easy to install, and supports the expansion and upgrading of air conditioning functions.
Smart Images

Figure CN223826439U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to air conditioning field, concretely relates to a module and air conditioner with alternating current sampling function and display function. BACKGROUND
[0002] At present, air conditioner has become the indispensable electrical equipment of indoor environment regulation. Air conditioner removes or supplements the heat in the room through refrigeration cycle or heating cycle, thereby realizing the regulation of indoor temperature and creating comfortable living, working and leisure environment for people.
[0003] The traditional air conditioning equipment usually directly installs the overcurrent protection device in the air conditioner to avoid the damage of excessive current during the working process of the air conditioner and prevent the air conditioner from being damaged due to excessive current.
[0004] However, the traditional air conditioner does not have compressor current sampling and display, cannot understand the load condition of the air conditioner and does not know whether the refrigerant in the air conditioner meets the requirements. In the existing technology, whether the refrigerant is missing can be understood through the compressor current, but if the compressor current is to be displayed, a current instrument or a digital clamp meter must be used for measurement. Such measurement mode has high cost and is not convenient to install and use. UTILITY MODEL CONTENTS
[0005] Therefore, the utility model provides a module and air conditioner with alternating current sampling function and display function, which has alternating current sampling function and display function, rich functions, simple installation and low cost.
[0006] The utility model solves the technical scheme that technical problems thereof are adopted: provide a module with alternating current sampling function and display function, the module with alternating current sampling function and display function includes: current transformer, matching resistance, nixie tube, singlechip and main control board, the main control board with the singlechip electricity is connected, the both ends of nixie tube with the singlechip electricity is connected, the one end of matching resistance with the singlechip electricity is connected, the both ends of matching resistance with the current transformer electricity is connected, the current transformer is connected with compressor.
[0007] Further, the one end of the matching resistance is electrically connected with the No. 17 pin of the single-chip microcomputer, thereby providing conditions for the current transformer to obtain alternating voltage.
[0008] Further, the current transformer is connected in parallel with the matching resistance, and the power line of the compressor passes through the current transformer.
[0009] Further, the nixie tube is a multi-digit nixie tube, the No. 44 pin of the single-chip microcomputer is electrically connected with the No. 12 pin of the nixie tube, thereby providing digital display signals for the first nixie tube corresponding to the No. 12 pin.
[0010] Further, the 43th pin of the single-chip microcomputer is electrically connected with the 9th pin of the nixie tube, and a second nixie tube corresponding to the 9th pin is provided with a digital display signal.
[0011] Further, the 42th pin of the single-chip microcomputer is electrically connected with the 8th pin of the nixie tube, and a third nixie tube corresponding to the 8th pin is provided with a digital display signal.
[0012] Further, the 34th pin of the single-chip microcomputer is electrically connected with the 11th pin of the nixie tube, and is used for controlling a top horizontal section of the nixie tube; the 33th pin of the single-chip microcomputer is electrically connected with the 11th pin of the nixie tube, and is used for controlling a right upper vertical section of the nixie tube; and the 32th pin of the single-chip microcomputer is electrically connected with the 4th pin of the nixie tube, and is used for controlling a right lower vertical section of the nixie tube.
[0013] Further, the 31th pin of the single-chip microcomputer is electrically connected with the 2th pin of the nixie tube, and is used for controlling a bottom horizontal section of the nixie tube; the 30th pin of the single-chip microcomputer is electrically connected with the 1th pin of the nixie tube, and is used for controlling a left lower vertical section of the nixie tube; and the 29th pin of the single-chip microcomputer is electrically connected with the 10th pin of the nixie tube, and is used for controlling a left upper vertical section of the nixie tube.
[0014] Further, the 28th pin of the single-chip microcomputer is electrically connected with the 5th pin of the nixie tube, and is used for controlling a middle horizontal section of the nixie tube; and the 27th pin of the single-chip microcomputer is electrically connected with the 3th pin of the nixie tube, and is used for controlling a decimal point section of the nixie tube.
[0015] To achieve the above object, the utility model provides a kind of air conditioner, including the module with the function of AC sampling and display provided by any one of the above schemes.
[0016] The utility model discloses a kind of air conditioners, including the module with the function of AC sampling and display provided by any one of the above schemes. The utility model has the advantages that: the module with the function of AC sampling and display includes current transformer, matching resistance, nixie tube, single-chip microcomputer and main control board, single-chip microcomputer is installed on main control board, main control board is arranged on air conditioner, nixie tube is used to receive the signal of single-chip microcomputer, current transformer and matching resistance transport effective current signal in single-chip microcomputer.The current transformer coil and matching resistance form a loop, when compressor works, alternating current flows on the line, alternating current is inducted into alternating voltage on matching resistance by current transformer, then is sampled by the analog-digital conversion AD port of single-chip microcomputer, actual alternating current is obtained by using software conversion, finally, display is carried out by nixie tube, realizes the visualization of data.Using fewer components to realize the sampling and display of compressor alternating current, practical in function;Adopt modular design to facilitate subsequent expansion and upgrading of air conditioner function, simple to install and low in cost. DRAWINGS
[0017] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0018] Figure 1 This is a schematic diagram of the air conditioner structure of this utility model.
[0019] Figure 2 This is a schematic diagram of the connection structure of the main control board current sampling circuit and the display circuit of this utility model.
[0020] Figure 3 This is a schematic diagram illustrating the principle of sampling the input AC current through the microcontroller's AD port.
[0021] The component names and their numbers in the diagram are as follows:
[0022] Air conditioner 100, compressor 2, current transformer 3, matching resistor 4, digital tube 5, microcontroller 6, main control board 7. Detailed Implementation
[0023] To make the technical problems, technical solutions, and beneficial effects of this utility model clearer, the present utility model will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present utility model and are not intended to limit the present utility model.
[0024] It should be noted that when a component is referred to as "connected to" or "set on" another component, it can be directly on or indirectly on that other component. When a component is referred to as "connected to" another component, it can be directly connected to or indirectly connected to that other component.
[0025] In the description of this utility model, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this utility model according to the specific circumstances.
[0026] It should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", and "outer" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this utility model and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this utility model.
[0027] Throughout this specification, reference to "an embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment is included in at least one embodiment of this application. Therefore, the phrases "in one embodiment," "in some embodiments," or "in some of these embodiments" appear in various places throughout the specification, and not all refer to the same embodiment. Furthermore, in one or more embodiments, a particular feature, structure, or characteristic may be combined in any suitable manner.
[0028] like Figure 1 As shown, the module with AC sampling and display functions provided in this embodiment of the present invention will now be described. The module with AC sampling and display functions provided in this embodiment of the present invention is applicable to air conditioner 100.
[0029] See Figure 1 This embodiment provides an air conditioner 100, including a module with AC sampling and display functions and a compressor 2. The module with AC sampling and display functions includes a current transformer 3, a matching resistor 4, a digital tube 5, a microcontroller 6, and a main control board 7. The main control board 7 is electrically connected to the microcontroller 6. Both ends of the digital tube 5 are electrically connected to the microcontroller 6. One end of the matching resistor 4 is electrically connected to the microcontroller 6. Both ends of the matching resistor 4 are electrically connected to the current transformer 3. The current transformer 3 is electrically connected to the compressor 2.
[0030] Compressor 2 works in conjunction with air conditioner 100, providing power to air conditioner 100. Microcontroller 6 is installed on main control board 7. Digital tube 5 is used to display the effective value of the current. The AC current passes through current transformer 3 and induces AC voltage in matching resistor 4. The AC voltage is sent to the analog-to-digital converter (AD) port of microcontroller 6 for sampling. The current of compressor 2 and the current induced by current transformer 3 have a linear multiple relationship, thus the voltage sampled on matching resistor 4 and the current of compressor 2 also have a linear correspondence.
[0031] As an example, the peak current of compressor 2 is I. max The effective value of the current I is calculated according to the formula for calculating the effective value of the current. rms =I max / √2, The microcontroller samples the maximum voltage V through the AD port. max The peak current of compressor 2 is calculated by software, the effective value of the current is calculated, and then displayed on digital tube 5 to obtain the effective value of the current.
[0032] See Figure 2 The microcontroller 6 is model MCU SC95F7616B. One end of the matching resistor 4 is electrically connected to pin 17 of the microcontroller 6, providing the conditions for the current transformer 3 to obtain AC voltage. The current transformer 3 and the matching resistor 4 are connected in parallel, and the power line of the compressor 2 passes through the current transformer 3. The matching resistor 4 and the coil of the current transformer 3 form a circuit. The power line of the compressor 2 passes through the current transformer 3. When the compressor 2 is working, AC current flows through the line. The AC current induces an AC voltage in the matching resistor 4 through the transformer 3, which is then sent to the analog-to-digital converter (AD) port of the microcontroller 6 for sampling.
[0033] The digital tube 5 is model 8031B, a multi-digit digital tube 5. Pin 44 of the microcontroller 6 is electrically connected to pin 12 of the digital tube 5, providing a digital display signal for the first digital tube 5 corresponding to pin 12. Pin 43 of the microcontroller 6 is electrically connected to pin 9 of the digital tube 5, providing a digital display signal for the second digital tube 5 corresponding to pin 9. Pin 42 of the microcontroller 6 is electrically connected to pin 8 of the digital tube 5, providing a digital display signal for the third digital tube 5 corresponding to pin 8. Pin 34 of the microcontroller 6 is electrically connected to pin 11 of the digital tube 5, used to control the top horizontal segment of the digital tube 5; pin 33 of the microcontroller 6 is electrically connected to pin 11 of the digital tube 5, used to control the upper right vertical segment of the digital tube 5; pin 32 of the microcontroller 6 is electrically connected to pin 4 of the digital tube 5, used to control the lower right vertical segment of the digital tube 5. Pin 31 of the microcontroller 6 is electrically connected to pin 2 of the digital tube 5 and is used to control the bottom horizontal segment of the digital tube 5; pin 30 of the microcontroller 6 is electrically connected to pin 1 of the digital tube 5 and is used to control the lower left vertical segment of the digital tube 5; pin 29 of the microcontroller 6 is electrically connected to pin 10 of the digital tube 5 and is used to control the upper left vertical segment of the digital tube 5.
[0034] Pin 28 of the microcontroller 6 is electrically connected to pin 5 of the digital tube 5, and is used to control the middle horizontal segment of the digital tube 5; pin 27 of the microcontroller 6 is electrically connected to pin 3 of the digital tube 5, and is used to control the decimal point segment of the digital tube 5. The digital tube 5 can display numerical values according to the signals sent by the microcontroller 6, and a multi-digit digital tube 5 can display three-digit numbers.
[0035] Pin 12 of the microcontroller is connected to a 5V power supply. E1 is connected between the 5V power supply and the ground terminal. E1 is used to detect the power status or trigger a reset operation. C1 is connected between pin 12 of the microcontroller and the ground terminal to reduce noise and voltage fluctuations on the power line and ensure the stable operation of the microcontroller.
[0036] As an example, suppose the peak value I of the AC current of compressor 2 is... max The current input-output ratio of the current transformer is 2000:1, and the peak output current is I. max / 2000, the peak value of the AC voltage generated across matching resistor 4 is V. max =(I max ( / 2000)*68, this peak voltage is input to the microcontroller's AD port for analog-to-digital conversion. The microcontroller uses a 12-bit AD converter, and the internal reference voltage for the AD conversion is 5V. The converted maximum value is... max It equals (V) max / 5)*2^12, which is AD max =((I max / 2000)*68 / 5)*2^12, through the sampled AD max The value can be used to calculate I. max =((AD) max / 2^12)*5 / 68)*2000.
[0037] In some of these embodiments, see Figure 3 The compressor 2 operates on a 50Hz sinusoidal AC current, with a cycle time of t1 = 20ms. The program sets the microcontroller's sampling and calculation cycle time to t2 = 200µs, meaning it can obtain 100 voltage AD values per cycle. Each cycle involves 8 consecutive samples, and the average of the sampled AD values is calculated. This continuous sampling and calculation is performed for 3 cycles, totaling 300 voltage AD values. Finally, the maximum voltage conversion value AD is calculated. max Therefore, the peak current I corresponding to the current of compressor 2 can be calculated. max Then, the effective value of the current I is calculated using the formula for the effective value of current. rms =I max / √2, then display it through a digital tube.
[0038] This utility model discloses a module with AC current sampling and display functions. An air conditioner 100 includes a compressor 2 and this module. The module comprises a current transformer 3, a matching resistor 4, a digital display 5, a microcontroller 6, and a main control board 7. The microcontroller 6 is mounted on the main control board 7, which is located within the air conditioner 100. The digital display 5 receives signals from the microcontroller 6. The current transformer 3 and the matching resistor 4 transmit valid current signals to the microcontroller 6. The coil of the current transformer 3 and the matching resistor 4 form a circuit. When the compressor 2 is operating, AC current flows through its lines. This AC current induces an AC voltage in the matching resistor 4 through the current transformer 3. This voltage is then sampled by the analog-to-digital converter (AD) port of the microcontroller, and the actual AC current is calculated using software. Finally, the data is displayed on the digital display 5, achieving data visualization. This method uses fewer components to sample and display the AC current of the compressor 2, providing practical functionality. The modular design facilitates future expansion and upgrades of the air conditioner 100's functions, and the installation is simple and cost-effective.
[0039] In the description of the embodiments of this utility model, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this utility model based on the specific circumstances.
[0040] Based on the above-described preferred embodiments of this utility model, and through the foregoing description, those skilled in the art can make various changes and modifications without departing from the scope of this utility model. The technical scope of this utility model is not limited to the contents of the specification, but must be determined according to the scope of the claims.
Claims
1. A module with AC sampling and display functions, characterized in that, The module with AC sampling and display functions includes a current transformer, a matching resistor, a digital tube, a microcontroller, and a main control board. The main control board is electrically connected to the microcontroller, both ends of the digital tube are electrically connected to the microcontroller, one end of the matching resistor is electrically connected to the microcontroller, and both ends of the matching resistor are electrically connected to the current transformer. The current transformer is electrically connected to a compressor.
2. The module with AC sampling and display functions according to claim 1, characterized in that, One end of the matching resistor is electrically connected to pin 17 of the microcontroller, providing the conditions for the current transformer to obtain AC voltage.
3. The module with AC sampling and display functions according to claim 2, characterized in that, The current transformer is connected in parallel with the matching resistor, and the power supply line of the compressor passes through the current transformer.
4. The module with AC sampling and display functions according to claim 1, characterized in that, The digital tube is a multi-digit digital tube. Pin 44 of the microcontroller is electrically connected to pin 12 of the digital tube, providing a digital display signal for the first digital tube corresponding to pin 12.
5. The module with AC sampling and display functions according to claim 4, characterized in that, Pin 43 of the microcontroller is electrically connected to pin 9 of the digital tube, providing a digital display signal to the second digital tube corresponding to pin 9.
6. The module with AC sampling and display functions according to claim 1, characterized in that, Pin 42 of the microcontroller is electrically connected to pin 8 of the digital tube, providing a digital display signal to the third digital tube corresponding to pin 8.
7. The module with AC sampling and display functions according to claim 1, characterized in that, Pin 34 of the microcontroller is electrically connected to pin 11 of the digital tube and is used to control the top horizontal segment of the digital tube; pin 33 of the microcontroller is electrically connected to pin 11 of the digital tube and is used to control the upper right vertical segment of the digital tube; pin 32 of the microcontroller is electrically connected to pin 4 of the digital tube and is used to control the lower right vertical segment of the digital tube.
8. The module with AC sampling and display functions according to claim 1, characterized in that, Pin 31 of the microcontroller is electrically connected to pin 2 of the digital tube and is used to control the bottom horizontal segment of the digital tube; pin 30 of the microcontroller is electrically connected to pin 1 of the digital tube and is used to control the lower left vertical segment of the digital tube; pin 29 of the microcontroller is electrically connected to pin 10 of the digital tube and is used to control the upper left vertical segment of the digital tube.
9. The module with AC sampling and display functions according to claim 1, characterized in that, Pin 28 of the microcontroller is electrically connected to pin 5 of the digital tube and is used to control the middle horizontal segment of the digital tube; pin 27 of the microcontroller is electrically connected to pin 3 of the digital tube and is used to control the decimal point segment of the digital tube.
10. An air conditioner, characterized in that: The air conditioner includes the module with AC power sampling and display functions as described in any one of claims 1 to 9.