CN209117104U - Based on MSP430FW427 without magnetic low-power consumption water meter device - Google Patents
Based on MSP430FW427 without magnetic low-power consumption water meter device Download PDFInfo
- Publication number
- CN209117104U CN209117104U CN201821979714.1U CN201821979714U CN209117104U CN 209117104 U CN209117104 U CN 209117104U CN 201821979714 U CN201821979714 U CN 201821979714U CN 209117104 U CN209117104 U CN 209117104U
- Authority
- CN
- China
- Prior art keywords
- module
- capacitor
- water meter
- power consumption
- inductance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title claims abstract description 43
- 238000001514 detection method Methods 0.000 claims abstract description 13
- 239000004973 liquid crystal related substance Substances 0.000 claims abstract description 9
- 239000002184 metal Substances 0.000 claims abstract description 7
- 239000003990 capacitor Substances 0.000 claims description 37
- 238000005259 measurement Methods 0.000 abstract description 11
- 229910052755 nonmetal Inorganic materials 0.000 abstract description 4
- 238000013461 design Methods 0.000 description 10
- 238000000034 method Methods 0.000 description 7
- 230000010355 oscillation Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000013500 data storage Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000005284 excitation Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 235000001674 Agaricus brunnescens Nutrition 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013016 damping Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000012535 impurity Substances 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 229920006395 saturated elastomer Polymers 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Measuring Volume Flow (AREA)
Abstract
本实用新型涉及一种基于MSP430FW427的无磁低功耗水表装置。包括设于无磁水表内的MSP430FW427单片机模块及与该MSP430FW427单片机模块连接的流量检测模块、液晶显示模块、存储模块、电机模块、串口模块、用于为整个装置供电的供电模块,所述流量检测模块包括用于感应无磁水表的转轮金属片区及转轮非金属区经过时产生的振荡波形的LC传感器电路,该LC传感器电路通过MSP430FW427单片机模块的SCAN/IF接口与MSP430FW427单片机模块连接,所述电机模块包括阀门电机驱动电路及与该阀门电机驱动电路连接的阀门开关电机。本实用新型能够实现用水量计量的准确度,且能够实现电子阀门的控制,另外整个装置功耗低。
The utility model relates to a non-magnetic low-power consumption water meter device based on MSP430FW427. Including the MSP430FW427 single-chip microcomputer module set in the non-magnetic water meter and the flow detection module, liquid crystal display module, storage module, motor module, serial port module, and a power supply module for supplying power to the whole device connected to the MSP430FW427 single-chip microcomputer module. The flow detection module The module includes an LC sensor circuit for sensing the oscillating waveform generated when the runner metal area of the non-magnetic water meter and the non-metal area of the runner pass through. The LC sensor circuit is connected to the MSP430FW427 MCU module through the SCAN/IF interface of the MSP430FW427 MCU module. The motor module includes a valve motor drive circuit and a valve switch motor connected to the valve motor drive circuit. The utility model can realize the accuracy of water consumption measurement, and can realize the control of the electronic valve, and the power consumption of the whole device is low.
Description
技术领域technical field
本实用新型涉及一种基于MSP430FW427的无磁低功耗水表装置。The utility model relates to a non-magnetic low-power consumption water meter device based on MSP430FW427.
背景技术Background technique
随着电子科技不断发展,智能水表行业也如雨后春笋般,不断涌现,以往用水管理模式也发生了改变,智能水表的传感器类型也越来越丰富,例如:霍尔传感器、LC传感器、干簧管传感器等。然而一般的有磁传感器类型的水表容易受到磁场环境的干扰,出现计量误差、计量缺漏等情况,容易受到不诚信的人利用。而且随着使用时间的增长,有磁水表的永磁器件会吸引水中的金属杂质,不断的积累,最终造成计量的误差。而无磁水表正是为克服上述问题而设计出来的新一代智能水表。美国德州仪器公司的MSP430FW42X系列的单片机为无磁水表的设计提供了基础,片上集成SCAN/IF模块及96段液晶LCD驱动,为无磁水表提供了很大的方便,因此无磁水表的设计将引领智能水表行业走向一条新的道路。With the continuous development of electronic technology, the smart water meter industry has sprung up like mushrooms after a spring rain. sensors, etc. However, general water meters with magnetic sensors are easily disturbed by the magnetic field environment, resulting in metering errors and missing metering, and are easily used by dishonest people. Moreover, with the growth of the use time, the permanent magnet device with the magnetic water meter will attract the metal impurities in the water, which will accumulate continuously and eventually cause measurement errors. The non-magnetic water meter is a new generation of smart water meters designed to overcome the above problems. The MSP430FW42X series microcontroller from Texas Instruments provides the basis for the design of non-magnetic water meters. The integrated SCAN/IF module and 96-segment LCD driver on the chip provide great convenience for non-magnetic water meters. Therefore, the design of non-magnetic water meters will Leading the smart water meter industry to a new path.
本装置设计以MSP430FW427为主控芯片,接收传感器信号同时进行数据计算处理,接着对电子阀门进行控制,在段式LCD上显示计量结果等。用水量计量的准确度、电子阀门的控制、低功耗等问题是本设计主要研究和实现的功能。This device is designed with MSP430FW427 as the main control chip, receives sensor signals and performs data calculation and processing, then controls the electronic valve, and displays the measurement results on the segment LCD. The accuracy of water metering, electronic valve control, low power consumption and other issues are the main research and implementation functions of this design.
通过LC传感器,读取到转轮金属片区经过电感时产生的振荡波形以及转轮非金属区经过电感时产生的振荡波形,然后SCAN/IF接口接收振荡波形数据,通过与设置的参考电压比较,产生数字信号,从而使单片机得到并处理转轮转动圈数的数据,进而进行计数。Through the LC sensor, the oscillating waveform generated when the metal sheet area of the runner passes through the inductance and the oscillating waveform generated when the non-metallic area of the runner passes through the inductance are read, and then the SCAN/IF interface receives the oscillating waveform data, and compares it with the set reference voltage. A digital signal is generated, so that the single-chip microcomputer obtains and processes the data of the number of turns of the runner, and then counts.
使用段式LCD进行计量数据的显示,使计量数据更加直观明了,让使用者能方便直观的读取有效信息。The use of segment LCD to display measurement data makes the measurement data more intuitive and clear, allowing users to read effective information conveniently and intuitively.
电子阀门驱动以H桥电路来驱动电机,通过单片机输出的型号选择阀门的开关。通过程序预设的一个值,当用水计量超过这个值时,电机转动关闭阀门。The electronic valve drive uses the H bridge circuit to drive the motor, and selects the switch of the valve through the model output by the single-chip microcomputer. A value preset by the program, when the water metering exceeds this value, the motor turns to close the valve.
由于单片机断电时,测量所得到的用水量数据会因此丢失,所以本设计设计有用于存储数据的E2PROM模块,以保证电池在掉电后恢复供电时能读回之前所测量的用水量。Since the measured water consumption data will be lost when the microcontroller is powered off, this design has an E 2 PROM module for storing data to ensure that the previously measured water consumption can be read back when the battery restores power after a power failure. .
发明内容SUMMARY OF THE INVENTION
本实用新型的目的在于提供一种基于MSP430FW427的无磁低功耗水表装置,该装置能够实现用水量计量的准确度,且能够实现电子阀门的控制,另外整个装置功耗低。The purpose of the utility model is to provide a non-magnetic low-power consumption water meter device based on MSP430FW427, which can realize the accuracy of water consumption measurement, and can realize the control of electronic valves, and the whole device has low power consumption.
为实现上述目的,本实用新型的技术方案是:一种基于MSP430FW427的无磁低功耗水表装置,包括设于无磁水表内的MSP430FW427单片机模块及与该MSP430FW427单片机模块连接的流量检测模块、液晶显示模块、存储模块、电机模块、串口模块、用于为整个装置供电的供电模块,所述流量检测模块包括用于感应无磁水表的转轮金属片区及转轮非金属区经过时产生的振荡波形的LC传感器电路,该LC传感器电路通过MSP430FW427单片机模块的SCAN/IF接口与MSP430FW427单片机模块连接,所述电机模块包括阀门电机驱动电路及与该阀门电机驱动电路连接的阀门开关电机。In order to achieve the above-mentioned purpose, the technical scheme of the present utility model is: a non-magnetic low-power consumption water meter device based on MSP430FW427, comprising the MSP430FW427 single-chip microcomputer module arranged in the non-magnetic water meter and the flow detection module, the liquid crystal display module connected with the MSP430FW427 single-chip microcomputer module. A display module, a storage module, a motor module, a serial port module, a power supply module for supplying power to the entire device, and the flow detection module includes the oscillation generated when the metal sheet area of the runner and the non-metal area of the runner pass through the non-magnetic water meter. The waveform LC sensor circuit is connected with the MSP430FW427 single-chip microcomputer module through the SCAN/IF interface of the MSP430FW427 single-chip microcomputer module, and the motor module includes a valve motor drive circuit and a valve switch motor connected with the valve motor drive circuit.
在本实用新型一实施例中,所述液晶显示模块采用段式LCD。In an embodiment of the present invention, the liquid crystal display module adopts a segment LCD.
在本实用新型一实施例中,所述存储模块采用E2PROM存储模块。In an embodiment of the present invention, the storage module adopts an E 2 PROM storage module.
在本实用新型一实施例中,所述阀门电机驱动电路采用H桥式电路,以实现控制阀门开关电机的正反转。In an embodiment of the present invention, the valve motor drive circuit adopts an H-bridge circuit to control the forward and reverse rotation of the valve switch motor.
在本实用新型一实施例中,所述串口模块采用MAX232.In an embodiment of the present utility model, the serial port module adopts MAX232.
在本实用新型一实施例中,所述LC传感器电路包括第一电感、第二电感、第一至第五电容,第一电感的一端与第一电容的一端、第二电容的一端连接,且第一电感的一端还与所述SCAN/IF接口连接,第二电感的一端与第一电感的另一端、第一电容的另一端、第二电容的另一端、第三电容的一端、第四电容的一端、第五电容的一端连接,且第二电感的一端还与所述SCAN/IF接口连接,第二电感的另一端与第三电容的另一端、第四电容的另一端连接,第二电感的另一端还与所述SCAN/IF接口连接,第五电容的另一端连接至GND。In an embodiment of the present invention, the LC sensor circuit includes a first inductor, a second inductor, and first to fifth capacitors, one end of the first inductor is connected to one end of the first capacitor and one end of the second capacitor, and One end of the first inductor is also connected to the SCAN/IF interface, and one end of the second inductor is connected to the other end of the first inductor, the other end of the first capacitor, the other end of the second capacitor, one end of the third capacitor, and the fourth One end of the capacitor and one end of the fifth capacitor are connected, and one end of the second inductor is also connected to the SCAN/IF interface, and the other end of the second inductor is connected to the other end of the third capacitor and the other end of the fourth capacitor. The other end of the second inductor is also connected to the SCAN/IF interface, and the other end of the fifth capacitor is connected to GND.
相较于现有技术,本实用新型具有以下有益效果:本实用新型装置能够实现用水量计量的准确度,且能够实现电子阀门的控制,另外整个装置功耗低。Compared with the prior art, the utility model has the following beneficial effects: the device of the utility model can realize the accuracy of water consumption measurement, and can realize the control of the electronic valve, and the power consumption of the whole device is low.
附图说明Description of drawings
图1是本实用新型基于MSP430FW427的无磁低功耗水表装置系统结构框图。Fig. 1 is the system structure block diagram of the non-magnetic low power consumption water meter device based on MSP430FW427 of the present invention.
图2是本实用新型采用的MSP430FW427最小系统电路。Fig. 2 is the minimum system circuit of MSP430FW427 adopted by the utility model.
图3是本实用新型采用的LC传感器电路。Fig. 3 is the LC sensor circuit adopted by the present invention.
图4是本实用新型采用的段式LCD硬件线路。FIG. 4 is a segment LCD hardware circuit adopted by the present invention.
图5是本实用新型采用的H桥式电机驱动电路。FIG. 5 is the H-bridge motor drive circuit adopted by the present invention.
图6是本实用新型采用的E2PROM存储模块电路。Fig. 6 is the E 2 PROM storage module circuit adopted by the present invention.
图7是本实用新型SCAN/IF测量组成及工作流程示意图。7 is a schematic diagram of the SCAN/IF measurement composition and work flow of the present invention.
图8是本实用新型采用的串口模块电路。Fig. 8 is the serial port module circuit adopted by the present invention.
具体实施方式Detailed ways
下面结合附图,对本实用新型的技术方案进行具体说明。The technical solutions of the present utility model will be described in detail below with reference to the accompanying drawings.
本实用新型提供了一种基于MSP430FW427的无磁低功耗水表装置,包括设于无磁水表内的MSP430FW427单片机模块及与该MSP430FW427单片机模块连接的流量检测模块、液晶显示模块、存储模块、电机模块、串口模块、用于为整个装置供电的供电模块,所述流量检测模块包括用于感应无磁水表的转轮金属片区及转轮非金属区经过时产生的振荡波形的LC传感器电路,该LC传感器电路通过MSP430FW427单片机模块的SCAN/IF接口与MSP430FW427单片机模块连接,所述电机模块包括阀门电机驱动电路及与该阀门电机驱动电路连接的阀门开关电机。The utility model provides a non-magnetic low-power consumption water meter device based on MSP430FW427, which comprises a MSP430FW427 single-chip microcomputer module arranged in the non-magnetic water meter, a flow detection module, a liquid crystal display module, a storage module and a motor module connected with the MSP430FW427 single-chip microcomputer module. , a serial port module, a power supply module for powering the entire device, the flow detection module includes an LC sensor circuit for sensing the oscillating waveform generated when the non-magnetic water meter's runner metal area and the runner non-metal area pass through. The sensor circuit is connected to the MSP430FW427 single-chip microcomputer module through the SCAN/IF interface of the MSP430FW427 single-chip microcomputer module. The motor module includes a valve motor drive circuit and a valve switch motor connected to the valve motor drive circuit.
所述液晶显示模块采用段式LCD。所述存储模块采用E2PROM存储模块。所述阀门电机驱动电路采用H桥式电路,以实现控制阀门开关电机的正反转。所述串口模块采用MAX232.The liquid crystal display module adopts segment LCD. The storage module adopts E 2 PROM storage module. The valve motor drive circuit adopts an H bridge circuit to control the forward and reverse rotation of the valve switch motor. The serial port module adopts MAX232.
所述LC传感器电路包括第一电感、第二电感、第一至第五电容,第一电感的一端与第一电容的一端、第二电容的一端连接,且第一电感的一端还与所述SCAN/IF接口连接,第二电感的一端与第一电感的另一端、第一电容的另一端、第二电容的另一端、第三电容的一端、第四电容的一端、第五电容的一端连接,且第二电感的一端还与所述SCAN/IF接口连接,第二电感的另一端与第三电容的另一端、第四电容的另一端连接,第二电感的另一端还与所述SCAN/IF接口连接,第五电容的另一端连接至GND。The LC sensor circuit includes a first inductor, a second inductor, and first to fifth capacitors, one end of the first inductor is connected to one end of the first capacitor and one end of the second capacitor, and one end of the first inductor is also connected to the SCAN/IF interface connection, one end of the second inductor is connected to the other end of the first inductor, the other end of the first capacitor, the other end of the second capacitor, one end of the third capacitor, one end of the fourth capacitor, and one end of the fifth capacitor connected, and one end of the second inductor is also connected to the SCAN/IF interface, the other end of the second inductor is connected to the other end of the third capacitor and the other end of the fourth capacitor, and the other end of the second inductor is also connected to the The SCAN/IF interface is connected, and the other end of the fifth capacitor is connected to GND.
以下为本实用新型的具体实现过程。The following is the specific implementation process of the present invention.
本实用新型基于MSP430FW427的无磁低功耗水表装置,使用MSP430FW427为主控芯片,通过初始化设置后,使芯片工作在低功耗模式,外部设备可以脱离CPU从而能工作在低功耗模式。SCAN/IF模块在启动后,自动记录数据,再有需要时才唤醒CPU,让其处理所得数据。定时计数器3等待中断的发生,接收到中断信号后,接收串口数据,对数据进行处理,CPU根据接收到的数据做出响应,例如开关阀门、显示用水量等。The utility model is a non-magnetic low power consumption water meter device based on MSP430FW427, uses MSP430FW427 as the main control chip, after initial setting, the chip works in a low power consumption mode, and external devices can be separated from the CPU to work in a low power consumption mode. After the SCAN/IF module is started, it automatically records the data, and only wakes up the CPU when necessary to process the obtained data. The timer counter 3 waits for the occurrence of an interrupt. After receiving the interrupt signal, it receives the serial port data, processes the data, and the CPU responds according to the received data, such as switching valves, displaying water consumption and so on.
外部配有阀门的电机驱动、LC传感器、E2PROM数据存储模块、液晶显示模块,预留有串口通讯所需的接口,由上述模块构成无磁水表的整体设计,系统结构框图如图1所示。Externally equipped with valve motor drive, LC sensor, E 2 PROM data storage module, and liquid crystal display module, the interface required for serial communication is reserved. The above modules constitute the overall design of the non-magnetic water meter. The system structure diagram is shown in Figure 1. Show.
本实用新型装置采用的各硬件模块如下:Each hardware module adopted by the device of the present utility model is as follows:
1、主控芯片MSP430FW4271. Main control chip MSP430FW427
MSP430FW42x系列单片机是TI公司针对电子式流量与旋转运动检测最新开发的专用MCU芯片,它将超低功耗MCU、旋转扫描接口(SCAN IF)和液晶显示LCD驱动模块完美地结合在一起。该器件的超低功耗结构和流量检测模块不仅延长了电池寿命,同时还提高了仪表的精度与性能。MSP430FW42x的典型应用包括热量仪表、热水和冷水仪表、气体仪表和工业流量计、风力计以及其他旋转检测应用。MSP430FW427芯片是该系列其中一款芯片,其Flash存储器的大小为32KB,RAM的大小为1KB,价格便宜,能在满足功能需求的条件下进一步节约成本。其最小系统电路如图2所示。The MSP430FW42x series of microcontrollers are the latest special MCU chips developed by TI for electronic flow and rotational motion detection. The device's ultra-low power architecture and flow detection module not only extend battery life, but also improve the accuracy and performance of the meter. Typical applications for the MSP430FW42x include thermal meters, hot and cold water meters, gas meters and industrial flow meters, anemometers, and other rotational detection applications. MSP430FW427 chip is one of the chips in this series. The size of its Flash memory is 32KB, and the size of RAM is 1KB. It is cheap and can further save costs under the condition that it meets the functional requirements. Its minimum system circuit is shown in Figure 2.
2、LC传感器电路2. LC sensor circuit
LC传感器是由两套LC振荡电路构成的[10],在前文中已经介绍过了其原路和作用,这里我们详细介绍LC振荡回路所需的外围器件的搭建,图3中电感L1与电容C22并联,其中一端连接到MSP430FW427的SIFCOM引脚,另一端连接到SIFCH1;电感L2与电容C23并联,其中一个引脚连接到SIFCOM引脚,另一引脚连接到SIFCH0引脚。C24与C25位留空,做后期测试使用。电容C6一个引脚与SIFCOM引脚相连,另一引脚接地,起滤波作用。The LC sensor is composed of two sets of LC oscillation circuits [10] . The original circuit and function of the LC sensor have been introduced in the previous article. Here we will introduce the construction of the peripheral devices required for the LC oscillation circuit in detail. In Figure 3, the inductor L1 and the capacitor C22 is connected in parallel, one end is connected to the SIFCOM pin of MSP430FW427, and the other end is connected to SIFCH1; the inductor L2 is connected in parallel with the capacitor C23, one of the pins is connected to the SIFCOM pin, and the other pin is connected to the SIFCH0 pin. The C24 and C25 bits are left blank for later testing. One pin of capacitor C6 is connected to the SIFCOM pin, and the other pin is grounded for filtering.
LC传感器的电感与电容配值选择The selection of inductance and capacitance matching value of LC sensor
对于LC振荡电路的计算,因为频率引起的阻尼常熟变化基本可以忽略掉,所以得到如下的LC振荡公式:For the calculation of the LC oscillation circuit, because the damping change caused by the frequency can be basically ignored, the following LC oscillation formula is obtained:
其中,fr为振荡频率;L为电感;C为电容;在下列表3-1中,列出了使用不同电容和电感配值后所能测的的频率。通过不同组合参数的电感和电容在LC传感器上测量,并测试了其输出波形,经过数据对比,最终选择了140μH的大工字电感和820pF的电容组合。Among them, fr is the oscillation frequency; L is the inductance; C is the capacitance; in the following table 3-1, the frequencies that can be measured by using different capacitance and inductance values are listed. The inductance and capacitance of different combination parameters were measured on the LC sensor, and the output waveform was tested. After data comparison, the combination of a large I-shaped inductance of 140μH and a capacitance of 820pF was finally selected.
3、LCD液晶显示电路3. LCD liquid crystal display circuit
MSP430FW427单片机片上集成有能驱动96段液晶显示器的模块,其中COM0—COM3引脚为公共端,可以通过编程选择想要显示的段位。本设计使用了四个COM引脚,20个段位引脚,共使用单片机上24个IO口,其中公共端COM0—COM3分别连接单片机上的COM0—COM3,段位引脚S0—S19分别连接至单片机的S0—S19,原理图如图4所示。The MSP430FW427 single-chip microcomputer integrates a module that can drive a 96-segment liquid crystal display. The COM0-COM3 pins are the common terminals, and the segment you want to display can be selected by programming. This design uses four COM pins and 20 segment pins. A total of 24 IO ports on the microcontroller are used. The common terminals COM0-COM3 are respectively connected to COM0-COM3 on the microcontroller, and the segment pins S0-S19 are respectively connected to the microcontroller. S0-S19, the schematic diagram is shown in Figure 4.
4、阀门电机驱动电路4. Valve motor drive circuit
如图5所示,H桥式电机电路是一个成熟的直流电机驱动电路,它主要功能是使直流电机能够正反向转动,因为其电路结构形似英文字母“H”,所以被人们称之为H桥式电路。本设计就是使用H桥式电路来控制阀门开关电机转动,通过MCU上的IO口来控制MOS管的导通和截止,使之改变电流的极性从而改变电机转动方向。由于阀门开关不需要用到调速,所以只需IO输出高低电平信号即可,当K1输入信号1,K2输入信号0时,三极管Q5饱和截止,而Q6导通,此时Q4和Q3也相应导通,电流从J11流向J12;反之,Q5导通,Q6截止,此时Q1和Q2导通,电流从J12流向J11。As shown in Figure 5, the H-bridge motor circuit is a mature DC motor drive circuit. Its main function is to enable the DC motor to rotate forward and reverse. Because its circuit structure resembles the English letter "H", it is called "H". H-bridge circuit. This design is to use the H bridge circuit to control the rotation of the valve switch motor, and to control the on and off of the MOS tube through the IO port on the MCU, so that the polarity of the current can be changed to change the rotation direction of the motor. Since the valve switch does not need to use speed regulation, it only needs to output high and low level signals from IO. When K1 input signal 1, K2 input signal 0, the transistor Q5 is saturated and cut off, and Q6 is turned on. At this time, Q4 and Q3 are also Correspondingly, the current flows from J11 to J12; otherwise, Q5 is turned on and Q6 is turned off. At this time, Q1 and Q2 are turned on, and the current flows from J12 to J11.
5、E2PROM存储模块电路5. E 2 PROM memory module circuit
AT24C64是一种可以重复供电擦除的128字可设置只读存储器即E2PROM,使用串行口读写数据,外围电路少,保存数据稳定。图6中所示的点WP接到MCU的P6.7引脚,与AT24C01的VCC引脚相连,可以通过程序控制P6.7引脚输出高低电平来决定是使数据存储芯片工作,以达到降低功耗的目的。AT24C64 is a 128-word programmable read-only memory that can be erased repeatedly by power supply, namely E 2 PROM. It uses serial port to read and write data, with few peripheral circuits and stable data storage. The point WP shown in Figure 6 is connected to the P6.7 pin of the MCU, and is connected to the VCC pin of the AT24C01. The program can control the P6.7 pin to output high and low levels to determine whether to make the data storage chip work, so as to achieve The purpose of reducing power consumption.
6、串口模块电路6. Serial port module circuit
如图8所示,本实用新型的串口模块电路,通过MAX232芯片完成电平的转化,与外部其它装置进行信息的交互As shown in Figure 8, the serial port module circuit of the present invention completes the level conversion through the MAX232 chip, and exchanges information with other external devices
本实用新型SCAN/IF测量组成及工作流程如下:The SCAN/IF measurement composition and workflow of the present utility model are as follows:
SCAN/IF测量原理框图如图7所示,机械转动信号经过LC传感器,将转动转化 电信号送给MSP430FW427内部的SCAN/IF。The block diagram of the SCAN/IF measurement is shown in Figure 7. The mechanical rotation signal passes through the LC sensor, and the rotation converts the electrical signal to the SCAN/IF inside the MSP430FW427.
单片机MSP430FW427内部集成的流量检测模块SCAN/IF可以在低功耗下识别转动装置的转动,SCAN/IF模块有三个部分:模拟前端(AFE)、信号处理状态机(PSM)、定时状态机(TSM)。SCAN/IF接口利用这三个部分,通过激励、延时、检测、计数这四个过程完成一次旋转量的测量。激励所用的时间很短,SCAN/IF模块充当LC振荡电路中的电源给电容充电,然后又立马断开,让LC振荡电路起振,因为涡电流,产生衰减的振荡正弦波形。由于衰减信号的出现需要一段的时间,因此需要延时一段时间才能测得衰减的波形。接着模块检测到衰减波形,根据波形的衰减情况可以判断出电感是否处于转动装置的金属区域或非金属区域,从而通过与电感上一位置对比,就测的了转动装置的转动方向和圈数了。The flow detection module SCAN/IF integrated in the microcontroller MSP430FW427 can identify the rotation of the rotating device under low power consumption. The SCAN/IF module has three parts: Analog Front End (AFE), Signal Processing State Machine (PSM), Timing State Machine (TSM) ). The SCAN/IF interface uses these three parts to complete the measurement of one rotation through the four processes of excitation, delay, detection and counting. The excitation time is very short, the SCAN/IF module acts as a power supply in the LC oscillator circuit to charge the capacitor, and then immediately disconnects, allowing the LC oscillator circuit to vibrate, resulting in a damped oscillating sinusoidal waveform due to eddy currents. Since it takes a period of time for the decaying signal to appear, it needs a delay to measure the decaying waveform. Then the module detects the attenuation waveform. According to the attenuation of the waveform, it can be judged whether the inductance is in the metal area or non-metal area of the rotating device. By comparing with the previous position of the inductor, the rotation direction and the number of turns of the rotating device can be measured. .
在实际硬件的开发与设计过程中,通常要考虑硬件的整体功耗是否得到要求,尤其对于水表这种与生活相关的产品,其功耗越低就越符合用户利益且能提高设计竞争力。硬件的功耗一般与MCU本身、程序的编写设计、外部功能电路的多少等有关。一般我们通过降低MCU的工作频率、降低MCU的工作电压、减少不必要的外部电路、设置没使用到的GPIO为输出模式、选择合适的单片机工作模式等方式,来降低产品的功耗。In the process of actual hardware development and design, it is usually necessary to consider whether the overall power consumption of the hardware is required, especially for life-related products such as water meters, the lower the power consumption, the better the interests of users and the improvement of design competitiveness. The power consumption of the hardware is generally related to the MCU itself, the programming and design of the program, and the number of external functional circuits. Generally, we reduce the power consumption of the product by reducing the working frequency of the MCU, reducing the working voltage of the MCU, reducing unnecessary external circuits, setting the unused GPIO as the output mode, and selecting the appropriate working mode of the microcontroller.
以上是本实用新型的较佳实施例,凡依本实用新型技术方案所作的改变,所产生的功能作用未超出本实用新型技术方案的范围时,均属于本实用新型的保护范围。The above are the preferred embodiments of the present utility model, all changes made according to the technical solutions of the present utility model, when the resulting functional effects do not exceed the scope of the technical solutions of the present utility model, belong to the protection scope of the present utility model.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201821979714.1U CN209117104U (en) | 2018-11-29 | 2018-11-29 | Based on MSP430FW427 without magnetic low-power consumption water meter device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201821979714.1U CN209117104U (en) | 2018-11-29 | 2018-11-29 | Based on MSP430FW427 without magnetic low-power consumption water meter device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN209117104U true CN209117104U (en) | 2019-07-16 |
Family
ID=67206968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201821979714.1U Active CN209117104U (en) | 2018-11-29 | 2018-11-29 | Based on MSP430FW427 without magnetic low-power consumption water meter device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN209117104U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111324068A (en) * | 2020-02-29 | 2020-06-23 | 成都易信达科技股份有限公司 | Control circuit for non-magnetic water meter and control method thereof |
CN113503933A (en) * | 2021-08-04 | 2021-10-15 | 上海朝辉压力仪器有限公司 | Hall flowmeter with current output function |
-
2018
- 2018-11-29 CN CN201821979714.1U patent/CN209117104U/en active Active
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111324068A (en) * | 2020-02-29 | 2020-06-23 | 成都易信达科技股份有限公司 | Control circuit for non-magnetic water meter and control method thereof |
CN113503933A (en) * | 2021-08-04 | 2021-10-15 | 上海朝辉压力仪器有限公司 | Hall flowmeter with current output function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN211877146U (en) | Non-magnetic intelligent water meter based on EFM32 single-chip microcomputer | |
CN202422270U (en) | Intelligent water meter controller with IC (intelligent circuit) card | |
CN209117104U (en) | Based on MSP430FW427 without magnetic low-power consumption water meter device | |
CN205785367U (en) | Electromagnetism water meter | |
CN106441479A (en) | Counting device for automatically controlling sampling detection of two magnetic sensors with low power consumption | |
CN206146465U (en) | Box transformer monitoring device | |
CN105675025B (en) | Multipurpose Hall Transducer module | |
CN102255317B (en) | Earthquake alarm household electronic power saver | |
CN106940915B (en) | High-frequency M1 card intelligent water meter with wake-on-touch function | |
CN206574646U (en) | A kind of dial-up type time relay | |
CN202102006U (en) | Device for measuring rotating speed of air conditioner fan | |
CN205507046U (en) | Lithium ion battery electric quantity monitoring system | |
CN206019666U (en) | A kind of Multifunction code table system | |
CN205121374U (en) | Heat dissipation control system based on singlechip | |
CN210954125U (en) | Simple signal generating circuit based on AD9833 | |
CN102810226B (en) | Low-power-consumption high-precision heat meter | |
CN202676326U (en) | Low power consumption heat meter | |
CN203231739U (en) | Irregular area automatic measuring device | |
CN2891117Y (en) | Intelligent IC card water meter controller | |
CN219416320U (en) | Water meter with wireless charging and power supplying functions | |
CN219391017U (en) | Novel water meter for generating and supplying power through water flow | |
CN206281486U (en) | A new ultra-low power consumption inclinometer | |
CN105091961A (en) | An electromagnetic flow meter characterized by power supply optimization | |
CN204830672U (en) | Be used for many mode control of cooling water set system | |
CN2251713Y (en) | Ultra-low power dissipation operation display device for flow meter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211028 Address after: 519000 room 3507, northeast of the third floor of international trade exhibition, Zhuhai Free Trade Zone, Zhuhai City, Guangdong Province Patentee after: Zhuhai Baoli Software Development Co.,Ltd. Address before: No. 2, xiyuangong Road, new campus of Fuzhou Regional University, Minhou County, Fuzhou City, Fujian 350108 Patentee before: FUJIAN JIANGXIA University |