Novel IC card water meter
By designing a new IC card water meter control circuit, using the HC32L136K8TA-LQFP64 chip and reed switch sampling circuit, the problem of low intelligence of the water meter is solved, and high intelligence and fault handling capabilities are improved.
Patent Information
- Application Number
- CN202422798766.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2034-11-18
AI Technical Summary
The existing water meters are not highly intelligent, have insufficient fault handling capabilities, and lack market competitiveness.
A new IC card water meter including a control circuit is designed. It uses the HC32L136K8TA-LQFP64 chip and integrates peripherals such as comparators, operational amplifiers, PWM timers, LCD displays, multiple UARTs, SPI, and I2C. Combined with a reed switch sampling circuit and a power-off valve closing circuit, it realizes low-power automatic sleep, automatic card recognition and wake-up, and power-off valve closing functions.
The intelligent level of the water meter is improved, accurate sampling and power-off valve closing are achieved, and it has functions such as low-power automatic sleep, strong magnetic attack valve closing alarm, and power monitoring, which enhances the fault handling capability.
Smart Images

Figure CN223390149U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to a novel IC card water meter, belonging to the technical field of water meters. Background Art
[0002] Water meters are instruments used to measure users' water consumption. Currently, the level of intelligence of water meters is not high. Based on the company's current management of the delivery time and price of IC card smart water meter components, and at the same time, improving the ability to control risks of faulty water meters and after-sales maintenance, in response to current market conditions, the company decided to independently develop IC card smart water meters, optimize the product system, improve the level of autonomy, and increase market competitiveness. Utility Model Content
[0003] The purpose of this utility model is to provide a novel IC card water meter to solve the above technical problems.
[0004] In order to achieve the above purpose, the technical solution adopted by the utility model is:
[0005] A novel IC card water meter includes a control circuit, which includes a chip, a power amplifier circuit, a detection circuit, a filter circuit, a motor control circuit, a sampling circuit and a power-off valve closing circuit; the chip is HC32L136K8TA-LQFP64; the sampling circuit is a reed switch sampling circuit.
[0006] A further improvement of the technical solution of the present utility model is as follows: the sampling circuit includes a reed switch S1 and a reed switch S2; one end of the reed switch S1 is connected to GND, and the other end is connected to the sampling port CAI1 of the microcontroller, and is connected to GND through the filter capacitor C1; one end of the reed switch S2 is connected to GND, and the other end is connected to the sampling port CAI2 of the microcontroller, and is connected to GND through the filter capacitor C1.
[0007] A further improvement to the technical solution of the present utility model is as follows: in the power-off valve closing circuit, the power supply is connected to one end of resistor R1, the other end of R1 is connected to diode D2, D2 is connected to the positive electrode of capacitor C1, and the negative electrode of capacitor C1 is connected to GND. At the same time, the power supply is connected to the detection control circuit through diode D1. In the detection control circuit, the positive electrode of capacitor C1 is connected to the gate of Q1 through R5 and to the source of Q2 through R6; the output of diode D1 is connected to the source of Q1, to the gate of Q2 through resistor R7, and to GND through pull-down resistor R2; the drain of Q1 is connected to the gate of Q4 through resistor R8, the drain of Q4 is connected to the valve closed position signal terminal, and the source of Q4 is connected to the valve motor OFF terminal through resistor R3; the drain of Q2 is connected to the valve motor OFF terminal and to the gate of Q3 through resistor R4; the source of Q3 is connected to GND, and the drain of Q3 is connected to the valve motor ON terminal.
[0008] Due to the adoption of the above technical solution, the technical effects achieved by the utility model are as follows:
[0009] The water meter of the utility model has a high degree of intelligence, accurate sampling and counting, and can realize power-off, valve closing and unloading.
[0010] The control circuit of the water meter can realize the following functions: automatic sleep with low power consumption; periodic card search, automatic recognition and wake-up with card, and continuous low power consumption state without card; only read and write once during chip reading and writing, no repeated reading and writing; sampling circuit interlock, valve closing alarm in case of strong magnetic attack, automatic valve closing alarm after 5 circuit break detections; power monitoring, low power valve closing alarm; watchdog function, automatic recovery after freeze; C timing, valve self-test and switch once a month; RTC timing, valve self-test and switch once a month; optional power-off valve closing function. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 This is a schematic diagram of the control system of the utility model;
[0012] Figure 2 This is a schematic diagram of the utility model single chip microcomputer;
[0013] Figure 3 This is a schematic diagram of the power amplifier circuit, detection circuit, and filter circuit of the utility model;
[0014] Figure 4 This is a schematic diagram of the motor control circuit of the utility model;
[0015] Figure 5 This is a schematic diagram of the sampling circuit of the utility model;
[0016] Figure 6 This is a schematic diagram of the utility model's power-off valve;
[0017] Figure 7 It is a schematic diagram of the utility model of closing the valve and unloading the load when the power is off. DETAILED DESCRIPTION
[0018] In order to make the technical means, creative features, objectives and effects achieved by the present invention easier to understand, the present invention is further described below in conjunction with specific implementation methods.
[0019] In the description of the present invention, it should be noted that the terms "upper", "lower", "inside", "outside", "front end", "rear end", "two ends", "one end", "the other end", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, they cannot be understood as a limitation on the present invention.
[0020] The utility model is a novel IC card water meter, which is designed with a brand-new control circuit.
[0021] Specifically, the control circuit includes a chip, a power amplifier circuit, a detection circuit, a filter circuit, a motor control circuit, a sampling circuit, and a power-off valve closing circuit. The chip used in the control circuit is the HC32L136K8TA-LQFP64, and the sampling circuit is a reed switch sampling circuit.
[0022] like Figure 1-Figure 7 As shown, each functional circuit in the control circuit of the water meter is connected to the chip to control the operation of the water meter.
[0023] The MCU chosen is the domestically produced HC32L136K8TA-LQFP64, a low-power, wide-voltage operating range MCU based on the Cortex-M0+ core. It integrates a comparator, op amp, a built-in high-performance PWM timer, an LCD display, multiple UARTs, SPI, and I2C communication peripherals, and built-in information security modules such as AES and TRNG. It features high integration, strong anti-interference capabilities, high reliability, and ultra-low power consumption.
[0024] Among them, the sampling circuit includes a reed switch S1 and a reed switch S2; one end of the reed switch S1 is connected to GND, and the other end is connected to the microcontroller sampling port CAI1, and is connected to GND through the filter capacitor C1; one end of the reed switch S2 is connected to GND, and the other end is connected to the microcontroller sampling port CAI2, and is connected to GND through the filter capacitor C1.
[0025] In the power-off valve closing circuit, the power supply is connected to one end of resistor R1, the other end of R1 is connected to diode D2, D2 is connected to the positive terminal of capacitor C1, and the negative terminal of capacitor C1 is connected to GND. At the same time, the power supply is connected to the detection control circuit through diode D1. In the detection control circuit, the positive terminal of capacitor C1 is connected to the gate of Q1 through R5 and to the source of Q2 through R6. The output of diode D1 is connected to the source of Q1, to the gate of Q2 through resistor R7, and to GND through pull-down resistor R2. The drain of Q1 is connected to the gate of Q4 through resistor R8. The drain of Q4 is connected to the valve closed position signal terminal. The source of Q4 is connected to the valve motor OFF terminal through resistor R3. The drain of Q2 is connected to the valve motor OFF terminal and to the gate of Q3 through resistor R4. The source of Q3 is connected to GND, and the drain of Q3 is connected to the valve motor ON terminal.
[0026] For the specific settings of the various functional circuits of the water meter, please refer to the attached drawings in the specification.
[0027] The control circuit of the water meter can realize the following functions
[0028] Low-power automatic sleep mode; periodic card search, automatic recognition and wake-up with a card, and continuous low-power mode without a card; read and write only once during chip reading and writing, no repeated reading and writing; sampling circuit interlock, valve closing alarm after strong magnetic attack, automatic valve closing alarm after 5 circuit break detections; power monitoring, low-power valve closing alarm; watchdog function, freeze self-recovery; C timing, valve self-test and switch once a month; RTC timing, valve self-test and switch once a month; optional power-off valve closing function.
[0029] Operation process and instructions
[0030] The setup card initializes the system. The user card is then swiped to bind the user ID. The user card can then be topped up and used. The user can view relevant water flow parameters and system error messages on the LCD screen by swiping the card. The base meter rotates and counts as the water flows. The magnetic element on the base meter senses the dual reed switches, enabling the system to synchronize the electromechanical counts. When the user's topped-up water volume falls below the set value but is not zero, the valve closes to alert the user. The user can then swipe the card to open the valve and continue using the remaining water until the water volume reaches zero, at which point the valve closes again. The valve will not open unless the card is swiped. If strong magnetic interference is encountered, causing electrical components to operate, the reed switches trigger system protection, forcing the valve to close and discontinue use. Once the strong magnetic interference subsides, the valve can be opened again by swiping the card.
[0031] If the power supply is abnormally disconnected, the valve system shuts down, or the battery voltage is low, the valve will shut down, alerting the user and the water plant. To prevent the meter valve from remaining in the same state for extended periods of time without water, the timing system switches the valve on and off once a month for a self-test, returning to its previous state after the test. Under normal use, the system enters low-power mode to extend battery life. It periodically searches for a card. If no card is present, power consumption remains low. When a card is near the coil, the system wakes up and reads and writes the card. This is a one-time read and write operation, before returning to low-power mode. If the system freezes for more than 26.3 seconds, it will automatically restart.
[0032] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are merely illustrative of the principles of the present invention. Various changes and improvements may be made to the present invention without departing from the spirit and scope of the present invention. Such changes and improvements are intended to fall within the scope of the present invention. The scope of protection claimed in this invention is defined by the appended claims and their equivalents.
Claims
1. A novel IC card water meter, including a control circuit, characterized in that: The control circuit includes a chip, a power amplifier circuit, a detection circuit, a filter circuit, a motor control circuit, a sampling circuit and a power-off valve closing circuit; the chip is HC32L136K8TA-LQFP64; and the sampling circuit is a reed switch sampling circuit.
2. A novel IC card water meter according to claim 1, characterized in that: The sampling circuit includes a reed switch S1 and a reed switch S2; one end of the reed switch S1 is connected to GND, and the other end is connected to the microcontroller sampling port CAI1, and is connected to GND through a filter capacitor C1; one end of the reed switch S2 is connected to GND, and the other end is connected to the microcontroller sampling port CAI2, and is connected to GND through a filter capacitor C1.
3. The novel IC card water meter according to claim 1, characterized in that: In the power-off valve closing circuit, the power supply is connected to one end of the resistor R1, the other end of R1 is connected to the diode D2, D2 is connected to the positive electrode of the capacitor C1, and the negative electrode of the capacitor C1 is connected to GND. At the same time, the power supply is connected to the detection control circuit through the diode D1; in the detection control circuit, the positive electrode of the capacitor C1 is connected to the gate of Q1 through R5, and to the source of Q2 through R6; the output of the diode D1 is connected to the source of Q1, connected to the gate of Q2 through the resistor R7, and connected to GND through the pull-down resistor R2; the drain of Q1 is connected to the gate of Q4 through the resistor R8, the drain of Q4 is connected to the valve closed position signal end, and the source of Q4 is connected to the OFF end of the valve motor through the resistor R3; the drain of Q2 is connected to the OFF end of the valve motor and is connected to the gate of Q3 through the resistor R4; the source of Q3 is connected to GND, and the drain of Q3 is connected to the ON end of the valve motor.