Summary of the invention
A kind of non-transformer water meter wireless kilowatt meter reading-out system that the present invention proposes, it is possible to resolve Traditional Man meter reading efficiency is low, work
Measure big technical problem.
For achieving the above object, present invention employs techniques below scheme:
A kind of non-transformer water meter wireless kilowatt meter reading-out system, including the data of water meter acquisition module being sequentially connected with, data transmission mould
Block and receiver module, described data of water meter acquisition module is arranged on water meter code-disc side, also includes self power generation module, described from
Electricity generation module is connected with data of water meter acquisition module;Wherein, described self power generation module uses Miniature flow generator, is arranged on water
Guan Zhong;Also include power management module, described power management module respectively with self power generation module, data of water meter acquisition module and number
Connect according to transport module;
Described data of water meter acquisition module obtains data of water meter the process of the completeest paired data;
Described data transmission module realizes wireless transmit and the wireless receiving of data;
Described receiver module realizes the reception of data of water meter, stores and show;
Described self power generation module is transformed into electric energy current, it is achieved the self-produced electric energy of system.
Further, described data of water meter acquisition module includes that photocell pickoff module and data process harvester, institute
Stating photoelectric sensor module and include four groups of photocells, photocell is arranged on water meter code side, and the code-disc of water meter code arranged light
Hole, often group photocell includes five infrared transmitting tubes and five infrared receiving tubes.
Further, described data transmission module includes wireless transmitter module and wireless receiving module, data transmission module
Use E32-TTL-100 type ultra-low power consumption wireless serial port module.
Further, described data process harvester and include harvester minimum system, and harvester minimum system uses
ATmege8 single-chip microcomputer, also includes rc reset circuit that the RESET port with ATmege8 single-chip microcomputer is connected and mono-with ATmege8
The crystal oscillating circuit that the port x TAL of sheet machine is connected, ATmege8 single-chip microcomputer RXD port and TXD port respectively with wireless serial
Module is connected, and the D port of described ATmege8 single-chip microcomputer is made as photocell emission control end, the B port of ATmege8 single-chip microcomputer
Test side is received for photocell.
Further, described power management module also includes DC-DC booster circuit, and described DC-DC booster circuit uses
XL6009 Boost DC power conversion chip, described DC-DC booster circuit input voltage range is 3-32V, 3.7V accumulator
The voltage of output inputs as DC-DC boost module, and output voltage is adjusted according to variable resistance;Port 2 is by external circuit
Controlling to determine the enable of chip, port 3 exports the square-wave signal of certain frequency, and this signal inputs letter as the switch of peripheral circuit
Number;Inductance L plays energy storage effect, and D 1 ends under conditions of port 3 output low level, inductance L and electric capacity C12, R2 and R1 composition
Loop discharge circuit, inductance L is to charge to electric capacity in the case of D1 turns on, and D1 is to turn on when port 3 exports high level, when
When electric capacity both end voltage increases, chip output voltage raises, the negative-feedback circuit of R2 Yu R1 compositing chip, controls output voltage and puts
Big multiple, stablizes chip output voltage.
Further, described self power generation module uses mag-dynamo.
Further, described receiver module also includes DS1302 clock module, AT24C16 data access module,
LCD12864 LCD MODULE and key-press module.
Further, described AT24C16 data access module is used for obtaining data of water meter row write of going forward side by side and enters and read, built-in
2048 8 bit data memory blocks, data capacity is 16K.
Further, described key-press module includes six Independent keys, and different numbering button corresponding A Tmege8 single-chip microcomputers are not
With I/O port.
Current can be converted to, by Miniature permanent magnet type DC generator, the electric energy that the system that is available for uses by the present invention, the most not
Only make up electronic water meter powerup issue or error in dipping that battery failures causes, be greatly reduced the later stage of electronic water meter simultaneously
Maintenance work.Electronic circuitry part uses the mode of character wheel coding, obtains by the way of the most position encoded to machinery code-disc
Data of water meter.Program built-in computer chip, circuit complexity is low, and without externally fed, stability is high, compatible good, can
To be conveniently suitable for any place.The present invention will be substantially reduced manual work's amount, improve meter reading efficiency, saving water resource.With
Time, wireless kilowatt meter reading-out system universal, also meet people to the convenient and simple requirement of community service department, be also beneficial to public clothes
Business department cuts down expenses, and saves manpower, improves work efficiency.
As shown from the above technical solution, the non-transformer water meter wireless kilowatt meter reading-out system of the present invention has the advantages that this
Inventing content to be studied is the collection utilizing electronic circuit to realize data of water meter, processes, transmits and manage.This present invention relates to
And to electronic measurement technique, Digital Signal Processing, computer data management technology, wireless data transmission technology.The present invention
Innovative point as follows:
(1) system is without externally fed, by current by the electric energy needed for Miniature permanent magnet type DC generator generation system;
(2) based on ATmega8 super low power consuming single chip processor, use photocell electronic circuit water-meter reading encoder digital corresponding
Data of water meter;
(3) data of water meter is wirelessly transferred, and meter reading personnel only just need to can obtain water meter by receiver device near water meter
Data currency and history value;
(4) data of water meter automatic input management system, it is not necessary to artificial loaded down with trivial details typing.
Detailed description of the invention
The present invention will be further described below in conjunction with the accompanying drawings:
As it is shown in figure 1, the present embodiment is mainly wirelessly transferred by system self power generation, data of water meter collection, data and is shown three
Major part composition.Miniature permanent magnet type brushed DC electromotor completion system self-produced electric energy part;Control chip ATmega8 is by inspection
Light-metering fulgurite obtains data of water meter the process of the completeest paired data, wireless transmit;433MHz serial port module completes data
It is wirelessly transferred.Receiver realizes the reception of data of water meter, stores and shows.
As Fig. 2 four groups of photocells of the present embodiment overall structure block diagram are fixedly mounted on water meter code-disc both sides, often organize photocell
It is made up of five pairs of infrared transmitting tubes.Code-disc deflection angle determines photocell conducting quantity.Atmega8 enters according to photocell conducting quantity
Row coding, determines data of water meter and is launched.Data of water meter is solved by receiver ATMEGA16 by wireless receiving module
Code storage.
LCD12864 display water-meter data and clock.Button adjusts clock and transfers water meter historical data.
Current self power generation scheme, this part mainly realizes current can arrive electric energy conversion.Miniature permanent magnet type water flow generator
Principle is that the impeller of electromotor fixing flow direction in water pipe rotates under the impact force action that current produce, thus drives electromotor to send out
Electricity, makes current can be converted into electric energy.
For structure, electromotor is divided into magneto-electric generator and excitation-type electromotor.Magneto-electric generator magnetic field is by sending out
Motor internal fixed magnet provides.Construction itself is simple relative to excitation-type electromotor, and stability is high, and low speed power generation performance is good.
For Miniature water flow, electromotor has magneto alternator and mag-dynamo available.System needs directly
Work under the conditions of stream voltage stabilizing, select magneto alternator to need external circuit that it is carried out rectification, voltage stabilizing, so can significantly drop
The efficiency of low generating.Therefore, mag-dynamo is selected in generating.Mag-dynamo device, can be through test of many times
Low rate start export bigger torque under relatively low current.
Power management scheme, the electric energy size that permanent-magnet type DC generator produces is by the rate of change of magnetic of its Inside coil
Determine.Under conditions of generator coil and magnetic field are fixing, the electric energy of electromotor generation and the rotating speed positive correlation of rotor.At water
Flowing less, under the conditions of generator operation is relatively slow, the voltage of its output cannot meet lithium cell charging voltage request, and generating effect is low.
To this end, employing DC-DC booster circuit.Booster circuit uses XL6009 Boost DC power conversion chip.This built-in chip type N ditch
The power MOSFET in road and fixed oscillator, overcharge, and crosses stream, excess temperature, high reliability feature module, level of integrated system
Height, high efficiency, low cost.The low-voltage that power management chip makes the electromotor under low-speed running produce is reached by booster circuit
Lithium cell charging voltage, provides+5V supply voltage for system simultaneously.
Data of water meter acquisition scheme, data of water meter collection refers to the code-disc display number utilizing electronic circuit to obtain current water meter
Value.Realizing this purpose and need to consider three big factors: 1) circuit structure do not affects the water meter metering to discharge;2) circuit mechanism
Possesses good capacity of resisting disturbance;3) Circuits System low-power consumption.Require that proposing following three kinds of data of water meter adopts according to above 3
Collection scheme.
Scheme one: CCD camera gathers formula.The program can accurately obtain the code-disc data of water meter, and system can interval
Work.Scheme weak point is that circuit is complicated, and cost is high, and poor anti jamming capability, under conditions of being unsuitable to apply to bad environments.
Scheme two: electromagnetic pulse formula.According to character wheel rotating cycle metering water meter data.Program circuit structure is succinct, takes
With low, weak point is that system needs not discontinuous operation.System work continuously can enable the system to consumption to be increased, and also reduces self simultaneously
Capacity of resisting disturbance.Under outage condition occurs in system, data of water meter obtains and will make a mistake.So the program is not suitable for low
Power consumption place uses.
Scheme three: photocell direct-reading.The coding principle utilizing one group of infrared photocell obtains data of water meter.This scheme electricity
Line structure is simple, and the mechanical part of original water gauge will not be impacted by low cost, simultaneously because system uses photocell direct-reading
Formula, system is only waken up, so greatly reducing the power consumption of system under the conditions of receiving acquisition data of water meter instruction.This system
Capacity of resisting disturbance is strong, can work long hours the most continuously.
In sum, from circuit structure, cost, the stability of system three conveniently considers, selection scheme three.
Data processing controller, data of water meter acquisition controlling chip Main Function is that the conducting state to four groups of photocells is entered
Row detection, five bits that then code detection arrives, finally use the mode of wireless serial to send data.So control core
The factor of sheet primary concern is power consumption, capacity of resisting disturbance, the driving force of I/O port and chip price.To this end, propose following two
The scheme of kind.
Scheme one: MSP430149 single-chip microcomputer.This single-chip microcomputer has five kinds of low energy consumption operation modes, and internal resource enriches, and runs
Stable.But I/O port output electric current maximum only has 6mA, and driving force is poor, so can increase the complexity of peripheral circuit.By
Relatively easy in data of water meter Acquisition Circuit, it is only necessary to 14 I/O pins, and this single-chip microcomputer has six groups of 48 I/O pins to make
With, therefore use this single-chip microcomputer can be substantially reduced the utilization rate of its internal resource, the price of this single-chip microcomputer is the most simultaneously.
Scheme two: ATmege8 single-chip microcomputer.This single-chip microcomputer uses 5V to power, and has five kinds of low energy consumption operation modes, power consumption equally
Extremely low.It addition, ATmege8 single-chip microcomputer has 25 I/O ports able to programme, user can arbitrarily define the input/output side of I/O
To.When I/O port is set to recommend output, output electric current reaches as high as 40mA, and driving force is strong, can directly drive LED etc.
Large current load.So can reduce the complexity of photocell detection circuit.This single-chip microcomputer price is medium, is suitable for making on a large scale
With.
In sum, from the power consumption of data of water meter acquisition controller, the driving force of I/O port, capacity of resisting disturbance and valency
Comparing on lattice, scheme two is more suitable for.
Data of water meter wireless transmission scheme, wireless chip has CC1100, CC2500, NRF2401, NRF905, NRF24L01
Etc. available.Data of water meter uses the mode being wirelessly transferred.Transmission means requires that data transmission is stable, and error correcting capability is strong, passes
The features such as defeated distance is remote, and penetration capacity is strong, low in energy consumption.To this end, propose following two alternative.
Scheme one: nRF24L01 radio receiving transmitting module.This module volume is little, and price is low, and interface circuit is complicated, at severe ring
Under the conditions of border, data transmission does not have stability.It addition, data are transmitted without error correcting capability.
Scheme two: E32-TTL-100 type ultra-low power consumption wireless serial port module.This module is a based on SX1278
The wireless data transmission module of 100mW.Module carrier frequency is 410-441MHz frequency range, and data transmit-receive uses wireless serial transparent transmission mode, carries
Rise the application market of wireless technology.This module power density is high, and signal identification rate is strong.There is the most autonomous error correction energy simultaneously
Power, under conditions of interference burst, can quickly identify disturbed data and correct it, well ensure that data long distance passes
Reliability during defeated.
In sum, in terms of the requirement that data are wirelessly transferred, selection scheme two is as data of water meter wireless transport module.
Data of water meter receiver, Data processing of receiver MCU uses AVR series monolithic, and display interface uses
LCD12864 liquid crystal display screen.Single-chip microcomputer receives data of water meter by wireless module, stores to EEPROM after data decoding.Receiver
It is provided with six Independent keys, the current data of water meter of water meter and history data of water meter can be checked according to button.Display interface is simultaneously
Current time can be shown.
Data of water meter harvester circuit
Data of water meter harvester minimum system designs
Data of water meter harvester minimum system Main Function is four groups of photocell conducting states of detection, turns on according to photocell
State encoding data of water meter value.Numerical value after coding uses bus serial mode to be sent to data of water meter receiver terminal.Therefore,
Harvester minimum system is the core devices of this problem.
ATmege8 single-chip minimum system ancillary hardware simple circuit is understandable, mainly has and is connected with single-chip microcomputer RESET port
The crystal oscillating circuit being connected with port x TAL by rc reset circuit constitute.Single-chip microcomputer RXD port and TXD port are with wireless
Serial ports is connected, and D port receives test side as photocell emission control end, B port as photocell.This problem is by circuit board face
Long-pending restriction, selects chip internal 8MHz crystal oscillator.Monolithic uses ISP mode to download, and supports online programming.Data of water meter is adopted
Storage minimum system peripheral circuit such as Fig. 3.
Data of water meter Acquisition Circuit designs
The advantage that water meter code-disc data acquisition uses infrared emission photocell maximum is that circuit structure is simple, reading code accuracy rate
Height, measuring accuracy and mechanical performance on former mechanical water meter are without impact.Photocell gathers the operation principle of code-disc deflection angle:
1 group of infrared photocell of each self installation in both sides of each code-disc of data of water meter every, often group infrared photocell is by 5 infrared transmitting tubes
Pipe composition is received with 5.Code-disc intermediate fabrication goes out the unthreaded hole excessively of 3 certain angles, and Infrared can be from code by crossing unthreaded hole
The side of dish is transmitted to the opposite side of code-disc.Infrared receiver photocell is fixing with the installation site of infrared emission closed tube.When
Current rotate through water meter, code-disc, and the angle crossing unthreaded hole produces change, and the light that corresponding luminous tube sends passes through code-disc light excessively
Hole is irradiated to the quantity of code-disc opposite side and position changes.I.e. encode out code-disc each numerical value of corresponding 0-9.Four groups of photoelectricity
Transmitting tube designs circuit such as Fig. 4 with photoelectric receiving tube.
The transmission port of four groups of infrared emission pipes and receiving port bus-sharing.Five I/O port controlling of single-chip microcomputer four groups
Red transmitting tube, the conducting state of four groups of infrared receiving tubes of 5 I/O Port detectings, four I/O ports are to four groups of infrared emission pipes
Duty carry out position choosing, to determine the encoded radio that single-chip microcomputer reads.
Wireless communication module circuit design
E32-TTL-100 is URAT interface half-duplex wireless transparent transmission module.Module carrier frequency is 410-441MHz frequency range, data
Transmitting-receiving uses wireless serial transparent transmission mode, improves the application market of wireless technology.This module power density is big, signal identification rate
High.
Functions of modules feature is as follows:
(1) module uses fully transparent transmission means;
(2) multiple baud rate is supported;
(3) up to 3000 meters under the conditions of data transmission distance spaciousness;
(4) possesses autonomous error correcting capability;
(5) under battery saving mode, power consumption is only tens milliamperes;
(6) module 2.3-5.5V is powered, and meets battery power demands.Module maximum transmission power is up to 100mW.
Serial port module port and single-chip microcomputer are electrically connected such as Fig. 5.
E32-TTL-100 serial ports wireless module port is described as follows table 1.
Table 1 serial ports wireless module pin explanation
Data of water meter harvester power circuit designs
Data of water meter harvester power circuit, has miniature for water pipe current, the feature of orientation.Use Low ESR, effect
Rate is high, has the permanent-magnet type DC generator that low speed generating is effective.The unstable electric energy that magneto-electric generator produces is first
Being stored in battery, the burning voltage of battery output is increased to the supply voltage of system by DC-DC boost module.DC-DC boosts
Circuit such as Fig. 6.Booster circuit input voltage range is 3-32V.3.7V the voltage of accumulator output is defeated as DC-DC boost module
Entering, output voltage is adjusted according to variable resistance.Port 2 is controlled to determine the enable of chip by external circuit, and port 3 exports one
Determining the square-wave signal of frequency, this signal is as the switch input signal of chip periphery circuit.Inductance L plays energy storage effect, and D1 is at end
End under conditions of mouth 3 output low levels, inductance L and electric capacity C12With R2 and R1 composition loop discharge circuit, chip output voltage
Decline.Inductance L is to charge to electric capacity in the case of D1 turns on, and D1 is to turn on, when electric capacity two ends when port 3 exports high level
When voltage increases, chip output voltage raises.The negative-feedback circuit of R2 Yu R1 compositing chip, controls output voltage amplification,
Stablize chip output voltage.
Data of water meter receiver circuit designs, and data of water meter receiver circuit comprises control chip AVR series monolithic,
E32-TTL-100 type is wireless connection module, DS1302 clock module, AT24C16 data access module, LCD12864 liquid
Brilliant display module and key-press module.Groundwork has the wireless receiving of data of water meter, decoding, stores and shows.
Receiver minimum system, receiver minimum system peripheral circuit is more succinct, mainly by with single-chip microcomputer RESET pin
The resistance-capacitance type reset circuit being connected and the passive crystal oscillating circuit being connected with XTAL pin composition.System sets high at reset pin
Under conditions of restart.Oscillating circuit connects electric capacity and the 12MHz crystal oscillator of two 30pF on running clock pin.Receiver core
Heart external circuit such as Fig. 7.
Receiver display circuit, water flow data display interface use LCD12864 LCDs, this display screen can 8 also
Row is connected with MCU with 2 line serials.Module interface flexible working mode is various, and operational order is the most understandable, by different fingers
Order can realize multiple man-machine interactive interface.Built-in 8192 the simplified form of Chinese Character character libraries of module and 128 ascii character-sets.Can show
Show the Chinese character of 8 × 4 row 16 × 16 dot matrix.Module has the feature of low-power consumption simultaneously.Meanwhile, this module is in peripheral circuit structure letter
Clean, driver is understandable.And the moderate cost of this module.LCD12864 periphery pin such as Fig. 8.
Receiver data of water meter storage circuit
Data of water meter storage chip uses AT24C16, and the data of water meter that hand receiver obtains every time can be entered by this chip
Row write enters and reads.Built-in 2048 the 8 bit data memory blocks of AT24C16, data capacity is 2K.Advanced CMOS technology makes
The power consumption of device is preferably minimized.AT24C16 has 8 byte page write buffers.This device has independent writing protection function, uses
I2C bus protocol operates.I2C bus only has two bidirectional signal lines: one is data wire SDA;Another root is clock line
SCL[4].AT24C16 peripheral circuit such as Fig. 9.
AT24C16 pin illustrates such as table 2.
Table 2 AT24C16 pin explanation
Receiver clock circuit, DS1302 can accurately calculate time, month, the date, week, little under external crystal-controlled oscillation assists
Time, minute, second, and recognizable leap year independently compensating.Chip data transmission uses serial mode, can be closed by instruction
Close stand-by power supply charge function.Chip uses common 32.768kHz crystal oscillator.The most external extraneous power supply of chip and button power supply two
Individual pin.So can ensure that receiver system clock in the case of without externally fed normally shows.DS1302 clock module
By the connecting line of three data line Yu CPU, i.e. SCLK, I/O, CE.DS1302 clock chip peripheral circuit such as Figure 10.
DS1302 pin illustrates such as table 3.
Table 3 DS1302 pin explanation
Receiver key circuit
This circuit is made up of six Independent keys, different numbering button correspondence single-chip microcomputer difference I/O ports.MCU is by right
The identification of I/O port low and high level realizes the manipulation of display interface.
Key circuit such as Figure 11.
By key text such as table 4.
Key text pressed by table 4
Data of water meter gathers program design
Mono-group of five I/O port of ATmega8 arrange output mode, and its output electric current is maximum up to 40mA, series connection current limliting electricity
Red emission diode can be directly driven after resistance.One group of five I/O port is set to input pattern, and detection receives the conducting shape of pipe
State.One group of four I/O port is set to output mode, it is achieved the order of four data of water meter reads.Data of water meter gathers main journey
Sequence flow process such as Figure 12.
Single-chip microcomputer the most in a dormant state, is asked when meter reading personnel sends acquisition data of water meter by wireless launcher
Time, single-chip microcomputer will be waken up, then the scanning of actuating code plate-like state, coding, send.After data succeed in sending up, system is entered automatically
Enter low power consumpting state.So, total system power consumption is the lowest, only just work in the case of receiving request.
Data of water meter receiver programming
Data of water meter receiver program design
Data of water meter receiver is grasped by one-chip computer module, data memory module, clock module, data disaply moudle, button
Make module composition.Receiver program circuit such as Figure 13.
Receiver is the storage of complete paired data after being properly received data, display.Display interface increases clock display simultaneously
Function, can be adjusted the time by button.
The display programming of data of water meter receiver
Single-chip microcomputer by void write_com (uchar com) function in a serial fashion to LCD12864 write instruction,
Determining address and display effect that data show, by void write_date (uchar date), function is in a serial fashion
Data are write to LCD12864.LCD12864 completes the write of elementary instruction at initial phase, the write that cursor switch instructs,
The write of cls instruction, needs suitable time-delay, to guarantee that instruction is written efficiently into during every instruction write.
Data of water meter receiver data recording program designs
Data of water meter storage chip AT24C16 storage volume is 16K, and data transfer protocol uses I2C bus type.I2C bus
Agreement is to operate between data receiver device and data transmitter part, it is stipulated that data transmitter part transfers data to always
Line, data receiver device is reception data from bus.Transmitters and receivers are without particular provisions, and the two is interchangeable.AT24C16
There are three bit address lines, most eight devices can be realized and be connected in bus.This problem has only to a device, selects address wire
It is connected to Vcc, the read-write of chip can be realized by reference address 0xfa.AT24C16 operating process such as Figure 14.
Data of water meter receiver clock programming
The depositor of the built-in multiple difference in functionalitys of DS1302 clock chip, has seven to calendar, depositor that clock is relevant,
Data Storage Format is the form of binary-coded decimal.Additionally, DS1302 built-in date, feature operation, power management, clock are anti-interference etc.
Other function register.DS1302 clock chip operational flowchart such as 15.
DS1302 clock chip operating process first has to close write-protect, to the variable pre-set in initialization procedure
It is written in calendar and clock register.After variable has write, draw high reset terminal, read it according to calendar and clock register
In binary-coded decimal data.
Keyboard program designs
Six Independent keys complete the adjustment of clock, the acquisition of data of water meter and checking.Use I/O port real time scan
Mode.Button 1 performs time_buf1 [4] ++ statement, time unit raise;Button 2 performs time_buf1 [4]--statement, Shi Dan
Position is lowered;Button 3 performs time_buf1 [5] ++ and statement, point unit raises;Button 4 performs time_buf1 [5] statement, point
Unit is lowered;Button 5 performs void Currentdata () function, and current data of water meter obtains;Button 6 performs void
Historydata () function, searches history data of water meter.
Embodiment described above is only to be described the preferred embodiment of the present invention, the not model to the present invention
Enclose and be defined, on the premise of designing spirit without departing from the present invention, the those of ordinary skill in the art technical side to the present invention
Various deformation that case is made and improvement, all should fall within the scope of protection of the present invention.