[go: up one dir, main page]

CN219368819U - A kind of intelligent water meter based on single chip computer - Google Patents

A kind of intelligent water meter based on single chip computer Download PDF

Info

Publication number
CN219368819U
CN219368819U CN202320396614.0U CN202320396614U CN219368819U CN 219368819 U CN219368819 U CN 219368819U CN 202320396614 U CN202320396614 U CN 202320396614U CN 219368819 U CN219368819 U CN 219368819U
Authority
CN
China
Prior art keywords
water meter
water
magnetic
chip microcomputer
module
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.)
Expired - Fee Related
Application number
CN202320396614.0U
Other languages
Chinese (zh)
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.)
Xian Shiyou University
Original Assignee
Xian Shiyou University
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 Xian Shiyou University filed Critical Xian Shiyou University
Priority to CN202320396614.0U priority Critical patent/CN219368819U/en
Application granted granted Critical
Publication of CN219368819U publication Critical patent/CN219368819U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A20/00Water conservation; Efficient water supply; Efficient water use

Landscapes

  • Measuring Volume Flow (AREA)

Abstract

本实用新型公开了一种基于单片机智能水表,属于智能水表监测技术领域,用于提高智能水表的水量监测精确度,尤其是涉及一种基于单片机智能水表,本实用新型通过在壳体内相对设置两个叶轮,并在两个叶轮转轴的顶端上分别设置磁钢,并在磁钢的上方分别设置磁性开关传感器,水流穿过壳体并带动叶轮转动,同时两个叶轮在壳体内各自转动形成圆相切,进而带动磁钢转动,位于磁钢上方的磁性开关传感器根据磁场的变化和交替产生的开关信号传输至PIC单片机处理,当磁钢反转时,两个磁性开关传感器产生的脉冲信号的顺序会发生颠倒,PIC单片机通过采集这些开关信号,实现正、反流计数,提高智能水表的监测效果。

The utility model discloses an intelligent water meter based on a single-chip microcomputer, which belongs to the technical field of intelligent water meter monitoring and is used for improving the accuracy of water quantity monitoring of the intelligent water meter, and in particular relates to an intelligent water meter based on a single-chip microcomputer. Two impellers, and magnetic steels are respectively set on the tops of the two impeller shafts, and magnetic switch sensors are respectively set above the magnetic steels, the water flow passes through the casing and drives the impellers to rotate, and at the same time, the two impellers rotate in the casing respectively to form a circle. Tangent, and then drive the magnetic steel to rotate, the magnetic switch sensor located above the magnetic steel is transmitted to the PIC microcontroller for processing according to the change of the magnetic field and the switching signal generated alternately. When the magnetic steel reverses, the pulse signal generated by the two magnetic switch sensors The order will be reversed, and the PIC microcontroller can collect these switching signals to realize forward and reverse flow counting and improve the monitoring effect of the smart water meter.

Description

一种基于单片机智能水表A kind of intelligent water meter based on single chip computer

技术领域technical field

本实用新型属于智能水表的技术领域,用于提高智能水表的水量监测精确度,尤其是涉及一种基于单片机智能水表。The utility model belongs to the technical field of intelligent water meters and is used for improving the water quantity monitoring accuracy of the intelligent water meters, in particular to an intelligent water meter based on a single-chip microcomputer.

背景技术Background technique

智能水表是一种利用现代微电子技术、现代传感技术、智能IC卡技术对用水量进行计量并进行用水数据传递及结算交易的新型水表;与传统水表一般只具有流量采集和机械指针显示用水量的功能相比,是很大的进步。智能水表除了可对用水量进行记录和电子显示外,还可以按照约定对用水量进行控制,并且自动完成阶梯水价的水费计算,同时可以进行用水数据存储的功能。现有的智能水表采用微处理器、阀门、流量传感器、IC卡读/写器、显示器、供电电源和集成在微处理器上的软件实现“先付费后用水”、持卡结算的理想管理模式,提供方便的统计查询功能,便于全面、及时地了解情况,为决策提供依据。但现有的智能水表在实际使用的过程中存在着功耗高、计量不精确的问题,在制造的过程中存在着成本高的问题,在特殊场合抗高温、抗振动能力较差的问题存在;尤其是所使用的流量传感器无法对逆流过水表的水流量进行有效监测。为了降低成本提高水表计量的准确性,本实用新型提供了一种基于单片机的智能水表。A smart water meter is a new type of water meter that uses modern microelectronics technology, modern sensing technology, and smart IC card technology to measure water consumption, transmit water data, and settle transactions. Compared with traditional water meters, it only has the functions of flow collection and mechanical pointer display. Compared with the volume function, it is a great improvement. In addition to recording and electronically displaying the water consumption, the smart water meter can also control the water consumption according to the agreement, and automatically complete the calculation of the water fee of the stepped water price, and can also store the water consumption data. Existing smart water meters use microprocessors, valves, flow sensors, IC card readers/writers, displays, power supplies and software integrated on microprocessors to realize the ideal management mode of "pay first and then use water" and card settlement , providing a convenient statistical query function, which is convenient for a comprehensive and timely understanding of the situation and provides a basis for decision-making. However, the existing smart water meters have the problems of high power consumption and inaccurate measurement in the process of actual use, the problem of high cost in the manufacturing process, and the problems of poor high temperature resistance and vibration resistance in special occasions. ; Especially the flow sensor used cannot effectively monitor the flow of water flowing backward through the water meter. In order to reduce the cost and improve the measurement accuracy of the water meter, the utility model provides an intelligent water meter based on a single-chip microcomputer.

实用新型内容Utility model content

本实用新型的目的在于提供一种基于单片机智能水表,以解决现有技术存在的监测效果欠佳的问题。The purpose of the utility model is to provide an intelligent water meter based on a single-chip microcomputer to solve the problem of poor monitoring effect existing in the prior art.

为了解决上述技术问题,本实用新型采用的技术方案是:一种基于单片机智能水表,包括壳体,所述壳体的两端分别设置有进水管和出水管,所述进水管上设置有智能控制机构,所述壳体内设置有水量监测机构,所述水量监测机构包括两个相对设置的叶轮和分别设置在两个所述叶轮的转轴顶端的磁钢以及分别设置在两个磁钢上方的磁性开关传感器,所述磁性开关传感器与所述智能控制机构电连接。In order to solve the above technical problems, the technical solution adopted by the utility model is: an intelligent water meter based on a single-chip microcomputer, including a housing, the two ends of the housing are respectively provided with a water inlet pipe and a water outlet pipe, and the water inlet pipe is provided with a smart meter. A control mechanism, the housing is provided with a water volume monitoring mechanism, the water volume monitoring mechanism includes two oppositely arranged impellers, magnetic steels respectively arranged at the top ends of the rotating shafts of the two impellers, and a magnetic steel respectively arranged above the two magnetic steels. A magnetic switch sensor, the magnetic switch sensor is electrically connected to the intelligent control mechanism.

所述壳体包括水表上盖和水表下盖,所述叶轮、进水管和出水管分别设置在所述水表下盖上,所述磁性开关传感器设置在所述水表上盖上。The housing includes a water meter upper cover and a water meter lower cover, the impeller, the water inlet pipe and the water outlet pipe are respectively arranged on the water meter lower cover, and the magnetic switch sensor is arranged on the water meter upper cover.

所述水表上盖和水表下盖之间设置有水玻璃,所述磁性开关传感器位于所述水玻璃上表面。Water glass is arranged between the water meter upper cover and the water meter lower cover, and the magnetic switch sensor is located on the upper surface of the water glass.

所述转轴的顶端上设置磁钢槽,所述磁钢安装在所述磁钢槽内。A magnetic steel groove is arranged on the top of the rotating shaft, and the magnetic steel is installed in the magnetic steel groove.

所述智能控制机构包括设置在所述进水管上的电磁阀、设置在电磁阀上方的控制单元,所述控制单元与所述电磁阀电连接。The intelligent control mechanism includes a solenoid valve arranged on the water inlet pipe and a control unit arranged above the solenoid valve, and the control unit is electrically connected with the solenoid valve.

所述控制单元包括PIC单片机、电源模块、IC模块、门阀驱动模块和LCD显示模块并相互电连接,所述门阀驱动模块与所述电磁阀连接。The control unit includes a PIC microcontroller, a power supply module, an IC module, a gate valve drive module and an LCD display module and are electrically connected to each other, and the gate valve drive module is connected to the electromagnetic valve.

所述控制单元还包括NB-IoT模块、远端服务器,所述NB-IoT模块与PIC单片机电连接,所述远端服务器与NB-IoT模块网络连接。The control unit also includes a NB-IoT module and a remote server, the NB-IoT module is electrically connected to the PIC microcontroller, and the remote server is connected to the NB-IoT module network.

本实用新型与现有技术相比具有以下优点:Compared with the prior art, the utility model has the following advantages:

本实用新型通过在壳体内相对设置两个叶轮,并在两个叶轮转轴的顶端上分别设置磁钢,并在磁钢的上方分别设置磁性开关传感器,水流穿过壳体并带动叶轮转动,同时两个叶轮在壳体内各自转动形成圆相切,进而带动磁钢转动,位于磁钢上方的磁性开关传感器根据磁场的变化和交替产生的开关信号传输至PIC单片机处理,当磁钢反转时,两个磁性开关传感器产生的脉冲信号的顺序会发生颠倒,PIC单片机通过采集这些开关信号,实现正、反流计数,提高智能水表的监测效果。In the utility model, two impellers are relatively arranged in the casing, and magnetic steels are respectively arranged on the top ends of the rotating shafts of the two impellers, and magnetic switch sensors are respectively arranged above the magnetic steels. The water flow passes through the casing and drives the impellers to rotate, and at the same time The two impellers rotate separately in the housing to form a circle tangent, and then drive the magnet to rotate. The magnetic switch sensor located above the magnet transmits the switching signal to the PIC microcontroller for processing according to the change of the magnetic field and the alternate generation. When the magnet reverses, The sequence of the pulse signals generated by the two magnetic switch sensors will be reversed, and the PIC microcontroller can collect these switch signals to realize forward and reverse flow counting and improve the monitoring effect of the smart water meter.

附图说明Description of drawings

图1为本实用新型的智能水表示意图。Fig. 1 is a schematic diagram of the smart water meter of the present invention.

图2为本实用新型的水玻璃与水表下盖连接示意图。Fig. 2 is the schematic diagram of connection between the water glass of the present invention and the lower cover of the water meter.

图3为本实用新型的水表下盖与叶轮连接示意图。Fig. 3 is a schematic diagram of the connection between the lower cover of the water meter and the impeller of the present invention.

图4为本实用新型智能水表的电连接示意图。Fig. 4 is a schematic diagram of the electrical connection of the smart water meter of the present invention.

图5为本实施例中磁钢与磁性开关传感器的工作原理示意图。Fig. 5 is a schematic diagram of the working principle of the magnetic steel and the magnetic switch sensor in this embodiment.

图中:1PIC单片机、2IC模块、3电源模块、4电池、5电磁阀、6磁钢、7叶轮、8水表腔体、9水玻璃、10磁钢槽、11磁性开关传感器、12天线、13主控制板、14NB-IoT模块、15LCD显示模块、16水表上盖、17水表下盖。In the figure: 1PIC microcontroller, 2IC module, 3 power module, 4 battery, 5 solenoid valve, 6 magnetic steel, 7 impeller, 8 water meter cavity, 9 water glass, 10 magnetic steel tank, 11 magnetic switch sensor, 12 antenna, 13 Main control board, 14NB-IoT module, 15LCD display module, 16 Water meter upper cover, 17 Water meter lower cover.

具体实施方式Detailed ways

下面将结合本实用新型实施例中的附图,对本实用新型实施例中的技术方案进行清楚、完整地描述。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

如图1和图2所示,一种基于单片机智能水表,包括壳体,所述壳体的两端分别设置有进水管和出水管,所述进水管上设置有智能控制机构,所述壳体内设置有水量监测机构,所述水量监测机构包括两个相对设置的叶轮7和分别设置在两个所述叶轮7转轴顶端的磁钢6以及分别设置在两个磁钢6上方的磁性开关传感器11,所述磁性开关传感器11与所述智能控制机构电连接;水流穿过壳体并带动叶轮7转动,同时两个叶轮7在壳体内各自转动形成圆相切,进而带动磁钢6转动,位于磁钢6上方的磁性开关传感器11根据磁场的变化和交替产生的开关信号传输至PIC单片机1处理,当磁钢6反转时,两个磁性开关传感器11产生的脉冲信号的顺序会发生颠倒,PIC单片机1采集这些开关信号,实现正、反流计数,提高智能水表的监测效果。As shown in Figure 1 and Figure 2, a smart water meter based on a single-chip microcomputer includes a housing, the two ends of the housing are respectively provided with a water inlet pipe and a water outlet pipe, the water inlet pipe is provided with an intelligent control mechanism, and the housing A water volume monitoring mechanism is provided in the body, and the water volume monitoring mechanism includes two oppositely arranged impellers 7, magnetic steels 6 respectively arranged at the tops of the rotating shafts of the two impellers 7, and magnetic switch sensors respectively arranged above the two magnetic steels 6 11. The magnetic switch sensor 11 is electrically connected to the intelligent control mechanism; the water flow passes through the casing and drives the impeller 7 to rotate, and at the same time, the two impellers 7 rotate in the casing to form a circle tangent, and then drive the magnetic steel 6 to rotate, The magnetic switch sensor 11 located above the magnetic steel 6 is transmitted to the PIC microcontroller 1 for processing according to the change of the magnetic field and the alternately generated switching signal. When the magnetic steel 6 is reversed, the order of the pulse signals generated by the two magnetic switch sensors 11 will be reversed. , PIC microcontroller 1 collects these switch signals, realizes forward and reverse flow counting, and improves the monitoring effect of the intelligent water meter.

如图2-图5所示,本实施例中,PIC单片机1采用Microchip公司的dsPIC30f4011控制芯片,磁性开关传感器11为TMR传感器,LCD显示模块采用采用IPSLCD,IC模块采用采用MF522-AN非接触式IC卡读写模块,该芯片是NXP公司针对“三表”应用推出的一款低电压、低成本、体积小的非接触式读写卡芯片,广泛应用于智能仪表中;NB-IOT模块采用EC-01的NB模组,并基于智能抄表控制管理系统实现远程抄表,电磁阀通过继电器来驱动实现启停,壳体采用金属件制成。具体安装时,壳体包括水表上盖16和水表下盖17,水表上盖16与水表下盖17通过密封圈和螺栓固定,其中水表下盖17的两端分别设置有进水管和出水管,进水管上设置智能控制机构,用于自动控制和检测水流量;水表下盖17的水表腔体8内并排设置有两个转轴,两个转轴的顶端分别设置有磁钢槽10,磁钢槽10与机构连接,两个磁钢槽10内分别且反向设置有磁钢7,两个叶轮7在水表下盖17内各自转动形成圆相切,水流流过叶轮7带动转轴和磁钢6在水表下盖17转动;水表下盖17上设置有水玻璃9,水玻璃9的外边缘与水表下盖17相匹配,并通过密封胶圈连接,水表上盖16上设置有两个安装孔,两个安装孔内分别设置磁性开关传感器11,其中磁性开关传感器11与磁钢6垂直设置,磁性开关传感器11与智能控制机构电连接,用于采集两个磁钢7磁场的变化和交替产生的开关信号,并传输至智能控制机构处理显示。As shown in Figure 2-Figure 5, in this embodiment, the PIC microcontroller 1 adopts the dsPIC30f4011 control chip of Microchip Company, the magnetic switch sensor 11 is a TMR sensor, the LCD display module adopts IPSLCD, and the IC module adopts MF522-AN non-contact type IC card read-write module, the chip is a low-voltage, low-cost, small-sized non-contact read-write card chip launched by NXP for the application of "three meters", which is widely used in smart meters; NB-IOT module adopts The NB module of EC-01 realizes remote meter reading based on the intelligent meter reading control management system. The solenoid valve is driven by a relay to start and stop, and the shell is made of metal parts. During specific installation, the housing includes a water meter upper cover 16 and a water meter lower cover 17, and the water meter upper cover 16 and the water meter lower cover 17 are fixed by sealing rings and bolts, wherein the two ends of the water meter lower cover 17 are respectively provided with water inlet pipes and water outlet pipes, An intelligent control mechanism is set on the water inlet pipe for automatic control and detection of water flow; two rotating shafts are arranged side by side in the water meter cavity 8 of the water meter lower cover 17, and the tops of the two rotating shafts are respectively provided with magnetic steel slots 10, and the magnetic steel slots 10 is connected with the mechanism, and the two magnetic steel grooves 10 are respectively and oppositely provided with magnetic steel 7, and the two impellers 7 rotate in the lower cover 17 of the water meter respectively to form a circle tangent, and the water flows through the impeller 7 to drive the rotating shaft and the magnetic steel 6 Rotate the water meter lower cover 17; the water meter lower cover 17 is provided with a water glass 9, the outer edge of the water glass 9 matches the water meter lower cover 17, and is connected by a sealing rubber ring; the water meter upper cover 16 is provided with two installation holes , magnetic switch sensors 11 are respectively arranged in the two mounting holes, wherein the magnetic switch sensors 11 and the magnetic steel 6 are vertically arranged, the magnetic switch sensors 11 are electrically connected with the intelligent control mechanism, and are used to collect the changes and alternate generation of the magnetic fields of the two magnetic steel 7 The switch signal is transmitted to the intelligent control mechanism for processing and display.

如图3-图5所示,智能控制机构包括设置在进水管上的电磁阀5、设置在电磁阀5上方的控制单元,控制单元与电磁阀5电连接,控制单元控制电磁阀5开启或关闭进水管;控制单元包括PIC单片机1主控模块、IC模块2、NB-IoT模块14、LCD显示模块15、门阀驱动模块、磁性开关传感器11、电源模块4并相互电连接,其中的PIC单片机1主控模块、IC模块2、NB-IoT模块14、LCD显示模块15、门阀驱动模块、电源模块、NB-IoT模块3、LCD显示模块15集成在主控制板13上,电池4与主控制板13电连接,并通过盒体安装在只能水表上,用于远程控制和检测水量;PIC单片机1型号为dsPIC30F4011,采用改进的哈佛结构,具备灵活寻址模式的C编译器优化指令集架构,PIC单片机由晶体振荡电路、电源滤波电路、复位电路构成,实现对外围电路的控制功能,使各模块电路能够正常有序工作;磁性开关传感器11采用TMR磁传感器,并采用双磁钢发讯指针配合两个TMR1208双极锁存型磁开关传感器计数方式,具有正反流计数功能,TMR1208系列磁开关芯片是集成了隧道磁通(TMR)传感器和CMOS电路的双极锁存型磁开关芯片,将变化的磁场信号转化为数字电压信号,以实现位置的精确检测;当双磁钢7正转时,两个TMR1208双极锁存型磁开关传感器会根据磁场的变化交替产生开关信号,形成01、00、10、11的脉冲信号,当双磁钢7反转,两个TMR1208双极锁存型磁开关传感器产生脉冲信号的顺序会发生颠倒,PIC单片及1通过采集这些脉冲信号实现正、反流计数;其中的两块TMR1208双极锁存型磁开关传感器信号输出引脚分别VOUT1和VOUT2分别接在PIC单片机1的RB4和RB5引脚上,PIC单片机1的RB4和RB5分别是ADC采集通道AN4和AN5通过AD采样读取TMR1208双极锁存型磁开关传感器传回的开关信号,从而进行计数,进一步换算成水的流量,进而达到测量水流量的效果;其中智能抄表控制管理系统的信号输出点连接到NB-IOT模块14,NB-IOT14模块采用EC-01的NB模组实现远程数据传输,其中NB部分采用的主芯片方案为EC616S,具备超高集成度的NB-IOTSoC,支持超低功耗,通过NB-IOT模块将水流量信息、余额信息、故障信息传递到远端服务器,远端服务器集中管理范围内若干智能水表的管理、抄表、充值等操作;上述中的智能水表选用技术较为先进的MF522-AN非接触式IC卡读写模块1,该芯片是NXP公司针对“三表”应用推出的一款低电压、低成本、体积小的非接触式读写卡芯片,智能水表的IC卡设计是为了不能远程操作的老年人设计的,该采用非接触式IC卡实现充值缴费功能;电磁阀5通过继电器来驱动,当水余额不足,PIC单片机会控制继电器闭合电磁阀,从而达到停水效果,同时通过NB-IOT模块将余额不足信息传递给远端服务器,远端服务器会将信息转发给用户,用户通过线上充值或IC充值的方式进行购水操作;显示部分采用IPSLCD液晶屏显示,其中将ST7735S作为驱动芯片,通过SPI的方式与PIC单片机进行通信,LCD的SCL连接到单片机的SCK1引脚,LCD的SDA连接到单片机的SDO1引脚,LCD的CS连接到单片机的SS1引脚,采用电池供电4,为降低功耗终端PIC单片机平时均处于睡眠模式,等待内部和外部中断事件进行唤醒,设定采集数据时间到后,PIC单片机被唤醒后通过TMR磁传感器模块对数据进行采集;设定传输数据时间到后,PIC单片机1唤醒激活NB-IOT传输模块开始通过NB-IOT网络进行数据传输,并通过远端服务器显示;本产品提供的智能水表,选用精简指令集,具有数据线和指令线各自独立、代码效率高、抗振动、耐高温的dsPIC30F4011单片机模块,PIC单片机模块是低功耗设计具有灵活的时钟设置功能,并且可以快速地从低功耗状态唤醒,可以分别在待机模式或者停机模式下运行,dsPIC30F4011单片机具有数据线和指令线各自独立、代码效率高等特点,PIC单片机模块设置在智能水表内部,也就是水表上盖16内部;流量检测机构采用TMR传感器电路,TMR传感器电路通过PIC单片机模块的AN4接口和AN5接口连接;主要是通过TMR磁传感器模块来实现的,通过双磁钢发讯指针配合两个TMR1208双极锁存型磁开关传感器计数方式可达到准确计数、正反计数的目的;液晶显示模块采用IPSLCD分别连接到PIC单片机的SCK1、SDO1和SS1接口,实现对已用水量和剩余水量的显示功能,集成LCD控制器也能够满足智能水表在不同情况下的显示需求;智能水表通过NB-IOT模块将水流量信息、余额信息、故障信息传递到远端服务器,远端服务器集中管理范围内若干智能水表的管理、抄表、充值等操作,NB-IOT模块采用EC-01的NB模组,其中NB部分采用的主芯片方案为EC616S,EC-01与PIC单片机电连接,智能水表选用技术较为先进的MF522-AN非接触式IC卡读写模块,该芯片是NXP公司针对“三表”应用推出的一款低电压、低成本、体积小的非接触式读写卡芯片,广泛应用于智能仪表中;智能水表的IC卡设计是为了不能远程操作的老年人和特殊人群设计的,能采用非接触式IC卡实现充值缴费功能,非接触式IC卡读写模块与PIC单片机电连接;本实施例中基于PIC单片机的智能水表采用了抗震动、耐高温、运算速度快、代码效率高的dsPIC30F4011的主控芯片,采用双磁钢的TMR传感器精确采集用户用水量,并且具有统计逆流的功能,通过NB-IOT上传已用水量、剩余水量信息上传至用户端;用户可通过远程充值和IC卡两种方式进行水费的缴纳。同时配备IPSLCD液晶显示器对已用水量和余额进行显示;主控PIC单片机平时均处于睡眠模式,等待内部和外部中断事件进行唤醒,在满足低功耗、低成本、抗震动、抗高温的技术要求。As shown in Figures 3-5, the intelligent control mechanism includes a solenoid valve 5 arranged on the water inlet pipe, a control unit arranged above the solenoid valve 5, the control unit is electrically connected to the solenoid valve 5, and the control unit controls the solenoid valve 5 to open or Close the water inlet pipe; the control unit includes PIC microcontroller 1 main control module, IC module 2, NB-IoT module 14, LCD display module 15, door valve drive module, magnetic switch sensor 11, power supply module 4 and are electrically connected to each other, wherein the PIC microcontroller 1 Main control module, IC module 2, NB-IoT module 14, LCD display module 15, gate valve drive module, power module, NB-IoT module 3, LCD display module 15 are integrated on the main control board 13, the battery 4 and the main control board The board 13 is electrically connected and installed on the smart water meter through the box body for remote control and detection of water volume; PIC microcontroller 1 model is dsPIC30F4011, which adopts an improved Harvard structure and a C compiler with flexible addressing modes to optimize the instruction set architecture , the PIC microcontroller is composed of a crystal oscillator circuit, a power supply filter circuit, and a reset circuit to realize the control function of the peripheral circuit, so that each module circuit can work normally and orderly; the magnetic switch sensor 11 adopts a TMR magnetic sensor, and uses double magnetic steel to send signals The pointer cooperates with two TMR1208 bipolar latch type magnetic switch sensor counting methods, with forward and reverse flow counting function, TMR1208 series magnetic switch chip is a bipolar latch type magnetic switch chip integrated with tunnel magnetic flux (TMR) sensor and CMOS circuit , to convert the changing magnetic field signal into a digital voltage signal to achieve accurate position detection; when the double magnet 7 rotates forward, the two TMR1208 bipolar latch type magnetic switch sensors will alternately generate switching signals according to the change of the magnetic field, forming For the pulse signals of 01, 00, 10, and 11, when the double magnetic steel 7 is reversed, the order of the pulse signals generated by the two TMR1208 bipolar latch type magnetic switch sensors will be reversed, and the PIC single chip and 1 are realized by collecting these pulse signals Forward and reverse flow counting; two of the TMR1208 bipolar latch type magnetic switch sensor signal output pins VOUT1 and VOUT2 are respectively connected to the RB4 and RB5 pins of the PIC microcontroller 1, and the RB4 and RB5 of the PIC microcontroller 1 are respectively The ADC acquisition channel AN4 and AN5 read the switch signal returned by the TMR1208 bipolar latch type magnetic switch sensor through AD sampling, so as to count, and further convert it into the flow of water, and then achieve the effect of measuring the flow of water; among them, the intelligent meter reading control The signal output point of the management system is connected to the NB-IOT module 14. The NB-IOT14 module uses the NB module of EC-01 to realize remote data transmission. IOTSoC supports ultra-low power consumption, and transmits water flow information, balance information, and fault information to the remote server through the NB-IOT module, and the remote server centrally manages the management, meter reading, and recharge of several smart water meters within the scope; the above The smart water meter in the water meter uses the more advanced MF522-AN non-contact IC card read-write module 1. This chip is a low-voltage, low-cost, small-sized non-contact read-write module launched by NXP for the application of "three meters". Write the card chip, the IC card design of the smart water meter is designed for the elderly who cannot operate remotely. The non-contact IC card should be used to realize the recharge and payment function; the solenoid valve 5 is driven by a relay. When the water balance is insufficient, the PIC single-chip opportunity control The relay closes the solenoid valve to achieve the effect of water cutoff. At the same time, the NB-IOT module transmits the insufficient balance information to the remote server, and the remote server will forward the information to the user. The user purchases water through online recharge or IC recharge. Operation; the display part adopts IPSLCD LCD display, in which ST7735S is used as the driver chip, and communicates with the PIC microcontroller through SPI. The SCL of the LCD is connected to the SCK1 pin of the microcontroller, and the SDA of the LCD is connected to the SDO1 pin of the microcontroller. The CS is connected to the SS1 pin of the single-chip microcomputer, and it is powered by a battery 4. In order to reduce power consumption, the terminal PIC single-chip microcomputer is usually in sleep mode, waiting for internal and external interrupt events to wake up. The data is collected through the TMR magnetic sensor module; after the set transmission data time is up, the PIC microcontroller 1 wakes up and activates the NB-IOT transmission module to start data transmission through the NB-IOT network and display it through the remote server; the intelligence provided by this product The water meter uses a simplified instruction set, with independent data lines and instruction lines, high code efficiency, anti-vibration, and high-temperature-resistant dsPIC30F4011 single-chip microcomputer module. The PIC single-chip microcomputer module is designed with low power consumption and has a flexible clock setting function. Wake up from a low-power consumption state, and can run in standby mode or stop mode respectively. The dsPIC30F4011 single-chip microcomputer has the characteristics of independent data lines and command lines and high code efficiency. The flow detection mechanism adopts the TMR sensor circuit, and the TMR sensor circuit is connected through the AN4 interface and the AN5 interface of the PIC microcontroller module; it is mainly realized through the TMR magnetic sensor module, and the double magnetic steel signaling pointer cooperates with two TMR1208 bipolar latch type The magnetic switch sensor counting method can achieve the purpose of accurate counting and positive and negative counting; the liquid crystal display module uses IPSLCD to connect to the SCK1, SDO1 and SS1 interfaces of the PIC microcontroller respectively to realize the display function of the used water volume and the remaining water volume, integrated LCD controller It can also meet the display requirements of smart water meters in different situations; the smart water meters transmit water flow information, balance information, and fault information to the remote server through the NB-IOT module, and the remote server centrally manages the management and copying of several smart water meters within the range The NB-IOT module adopts the NB module of EC-01, and the main chip solution used in the NB part is EC616S, and the EC-01 is connected with the PIC single-chip electromechanical. Contact IC card read-write module, the chip is a low-voltage, low-cost, small-sized non-contact read-write card chip launched by NXP for the application of "three meters", which is widely used in smart meters; smart water meters The IC card design is designed for the elderly and special groups who cannot operate remotely. It can use the non-contact IC card to realize the recharge and payment function. The non-contact IC card read-write module is electrically connected with the PIC microcontroller; in this embodiment, it is based on the PIC microcontroller The smart water meter adopts the dsPIC30F4011 main control chip with anti-vibration, high temperature resistance, fast operation speed and high code efficiency, and uses the TMR sensor of double magnetic steel to accurately collect the user's water consumption, and has the function of counting the reverse flow, and uploads it through NB-IOT The information of the water consumption and the remaining water volume is uploaded to the user terminal; the user can pay the water fee through remote recharging and IC card. At the same time, it is equipped with an IPSLCD liquid crystal display to display the water consumption and balance; the main control PIC microcontroller is usually in sleep mode, waiting for internal and external interrupt events to wake up, in order to meet the technical requirements of low power consumption, low cost, shock resistance and high temperature resistance .

以上所述,仅是本实用新型的较佳实施例,并非对本实用新型作任何限制,凡是根据本实用新型技术实质对以上实施例所作的任何简单修改、变更以及等效结构变化,均仍属于本实用新型技术方案的保护范围内。The above are only preferred embodiments of the present utility model, and are not intended to limit the present utility model. Any simple modifications, changes and equivalent structural changes made to the above embodiments according to the technical essence of the present utility model still belong to Within the scope of protection of the technical solution of the utility model.

Claims (7)

1.一种基于单片机智能水表,其特征在于,包括壳体,所述壳体的两端分别设置有进水管和出水管,所述进水管上设置有智能控制机构,所述壳体内设置有水量监测机构,所述水量监测机构包括两个相对设置的叶轮和分别设置在两个所述叶轮转轴顶端的磁钢以及分别设置在两个磁钢上方的磁性开关传感器,所述磁性开关传感器与所述智能控制机构电连接。1. A kind of intelligent water meter based on single-chip microcomputer, it is characterized in that, comprise housing, the two ends of described housing are respectively provided with water inlet pipe and water outlet pipe, described water inlet pipe is provided with intelligent control mechanism, is provided with in described housing A water volume monitoring mechanism, the water volume monitoring mechanism includes two oppositely arranged impellers, magnetic steels respectively arranged at the tops of the rotating shafts of the two impellers, and magnetic switch sensors respectively arranged above the two magnetic steels, the magnetic switch sensors and The intelligent control mechanism is electrically connected. 2.根据权利要求1所述的一种基于单片机智能水表,其特征在于:所述壳体包括水表上盖和水表下盖,所述叶轮、进水管和出水管分别设置在所述水表下盖上,所述磁性开关传感器设置在所述水表上盖上。2. A smart water meter based on a single-chip microcomputer according to claim 1, wherein the housing includes a water meter upper cover and a water meter lower cover, and the impeller, water inlet pipe and water outlet pipe are respectively arranged on the water meter lower cover Above, the magnetic switch sensor is arranged on the upper cover of the water meter. 3.根据权利要求2所述的一种基于单片机智能水表,其特征在于:所述水表上盖和水表下盖之间设置有水玻璃,所述磁性开关传感器位于所述水玻璃上表面。3. A smart water meter based on a single-chip microcomputer according to claim 2, characterized in that: water glass is arranged between the water meter upper cover and the water meter lower cover, and the magnetic switch sensor is located on the upper surface of the water glass. 4.根据权利要求1所述的一种基于单片机智能水表,其特征在于:所述转轴的顶端上设置磁钢槽,所述磁钢安装在所述磁钢槽内。4. The intelligent water meter based on a single-chip microcomputer according to claim 1, characterized in that: a magnetic steel groove is arranged on the top of the rotating shaft, and the magnetic steel is installed in the magnetic steel groove. 5.根据权利要求1所述的一种基于单片机智能水表,其特征在于:所述智能控制机构包括设置在所述进水管上的电磁阀、设置在电磁阀上方的控制单元,所述控制单元与所述电磁阀电连接。5. A kind of intelligent water meter based on single-chip microcomputer according to claim 1, characterized in that: the intelligent control mechanism includes a solenoid valve arranged on the water inlet pipe, a control unit arranged above the solenoid valve, and the control unit It is electrically connected with the solenoid valve. 6.根据权利要求5所述的一种基于单片机智能水表,其特征在于:所述控制单元包括PIC单片机、电源模块、IC模块、门阀驱动模块和LCD显示模块并相互电连接,所述门阀驱动模块与所述电磁阀连接。6. A kind of intelligent water meter based on single-chip microcomputer according to claim 5, characterized in that: said control unit includes PIC single-chip microcomputer, power supply module, IC module, door valve drive module and LCD display module and is electrically connected with each other, and said door valve drive A module is connected to the solenoid valve. 7.根据权利要求6所述的一种基于单片机智能水表,其特征在于:所述控制单元还包括NB-IoT模块、远端服务器,所述NB-IoT模块与PIC单片机电连接,所述远端服务器与NB-IoT模块网络连接。7. A kind of intelligent water meter based on single-chip microcomputer according to claim 6, characterized in that: the control unit also includes an NB-IoT module and a remote server, the NB-IoT module is electrically connected to a PIC single-chip microcomputer, and the remote The end server is connected to the NB-IoT module network.
CN202320396614.0U 2023-03-06 2023-03-06 A kind of intelligent water meter based on single chip computer Expired - Fee Related CN219368819U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202320396614.0U CN219368819U (en) 2023-03-06 2023-03-06 A kind of intelligent water meter based on single chip computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202320396614.0U CN219368819U (en) 2023-03-06 2023-03-06 A kind of intelligent water meter based on single chip computer

Publications (1)

Publication Number Publication Date
CN219368819U true CN219368819U (en) 2023-07-18

Family

ID=87146795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202320396614.0U Expired - Fee Related CN219368819U (en) 2023-03-06 2023-03-06 A kind of intelligent water meter based on single chip computer

Country Status (1)

Country Link
CN (1) CN219368819U (en)

Similar Documents

Publication Publication Date Title
CN202915962U (en) Water meter data collector
CN105488913A (en) One-card and multi-meter multi-mode charging radio frequency card prepaid intelligent water meter and charging method
CN110763292A (en) Novel ultrasonic intelligent water meter
CN107340021A (en) A kind of intelligent telemetering water meter system based on Zigbee network
CN106875577A (en) A kind of intellectual water meter with leakage proof function
CN1987180A (en) Diaphragm intelligent valve system
CN219368819U (en) A kind of intelligent water meter based on single chip computer
CN2618147Y (en) Intelligent water-saving telemetering watermeter
CN204270400U (en) A kind of intellectual water meter electronic module
CN203323808U (en) Water meter measurement module
CN205506140U (en) Stainless steel ultrasonic water meter
CN207231560U (en) Intelligent telemetering water meter system based on Zigbee network
CN201449641U (en) Remote prepaid water meter of solar centralized heating system
CN205318539U (en) Intelligence heat energy metering device based on singlechip
CN201778993U (en) Non-contact intelligent liquid flow instrument
CN2443334Y (en) IC card pay water-meter
CN202676326U (en) Low power consumption heat meter
CN221685594U (en) Remote control water meter
CN208335372U (en) The wireless intelligent water meter of counterflow-preventing
CN201945409U (en) Ultrasonic heat meter
CN102810226B (en) Low-power-consumption high-precision heat meter
CN2369221Y (en) Water meter with intellectual and for precharging
CN202189412U (en) IC (Integrated Circuit) card prepaid water meter with backward walking prevention function
CN111579006A (en) A non-magnetic sensor metering detection intelligent gas meter
CN201828310U (en) Tank-cover type fuel oil quantity tracker for engineering vehicle

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20230718