Background technology:
Because conventional water meter needs tap water enterprise manual the checking meter of regularly dispatching officers, not only handling cost is big, and whether the user also can dispute with the meter reading personnel owing to checking meter accurately to wait, and all brings more trouble to enterprise, meter reading personnel and user.In order to solve the existing problem of conventional water meter, existing long-range water meter, intellectual water meter and IC-card water meter etc. are come out one after another at present.
Long-range water meter, intellectual water meter all need to pass the signal along to collector by circuit, and then by telephone wire or industrial siding with the data transfer that collects to the tap water department of enterprise organization, examine receipts water rate according to the data of being received to the user by the tap water department of enterprise organization.This kind table exists following problem:
1. data transmission system is huge, and facility investment is higher;
2. automatic controls is not set, when needs switching water, can only have improved the burden of enterprise administrator, and be in arrears with water rate person with opportunity by manually finishing;
3. anti-" stealing " circuit is not set, only just can showing the water that does as usual under the state of not counting, bring convenience, bring bigger economic loss to enterprise to stealing the water user with a magnet;
4. exist the dispute that is occurred with regard to water yield accuracy rate between user and the enterprise equally.
The IC-card water meter has contact card or contactless card and nearest " need not the working power prepayment meter " of passing through Bluetooth remote control input data of releasing etc. such as TM card, RE radio-frequency card, contactless card, encrypted card.The IC-card water meter writes on " money " number in the IC-card by reading, and finishes the control to water meter, exists following problem:
1. window is continued in set opening, very easily is subjected to external interference, poor anti jamming capability;
2. after interference caused control system to lose efficacy, evidence obtaining assert that difficulty is bigger, easily produces water use disputes;
3. product price height, poor reliability;
4. The whole control system is difficult to adapt to the requirement of water price change.
Summary of the invention:
The utility model is in order to solve the existing in prior technology problems, but provide a kind of can pay in advance water rate and attack protection, anti-tampering, decode and duplicate difficulty, stop the code type pre-payment water meter of water phenomenon steathily.
Technical solution of the present utility model is: a kind of code type pre-payment water meter, data acquisition circuit that is arranged in the table body and the topworks of joining with the table body are arranged, and data acquisition circuit joins by pulse input circuit and microprocessor; Be connected to the actuating mechanism controls circuit with microprocessor, the output and the topworks of actuating mechanism controls circuit join; Also be connected to code keyboard input circuit, storer, undervoltage detection circuit and digital display circuit with microprocessor; Data acquisition circuit, undervoltage detection circuit, actuating mechanism controls circuit, microprocessor, storer and display circuit all join with power supply.
Described microprocessor, storer, digital display circuit are all joined by power control circuit and power supply, and the output and the power control circuit of data acquisition circuit, code keyboard input circuit and microprocessor join.
Be connected to state detection sensor with described topworks, the output and the microprocessor of state detection sensor join.
Be connected to state detection sensor with described topworks, the output and the status monitor circuit of state detection sensor join, and the output of status monitor circuit and actuating mechanism controls circuit join.
Described data acquisition circuit is tongue tube GH1 and the GH2 that is located in the table body, and tongue tube GH1 and GH2 join with power supply respectively; Described pulsing circuit is to be provided with capacitor C in parallel 2, the resistance R 7A that joins with tongue tube GH1, is connected to resistance R 40A, the triode Q11 that is in series with capacitor C 2, resistance R 7A in parallel; Also be provided with the capacitor C in parallel 3, the resistance R 9A that join with tongue tube GH2, be connected to resistance R 39A, the triode Q12 that is in series with capacitor C 3, resistance R 9A in parallel; The collector of triode Q11, triode Q12 joins with tongue tube GH2 and GH1 respectively.
Described power control circuit is to be provided with the filter rectifier that is made of capacitor C 13, resistance R 34A, diode D6 that joins with tongue tube GH1; Be provided with the filter rectifier that constitutes by capacitor C 12, resistance R 35A, diode D5 that joins with tongue tube GH2; The output of diode D5, D6 is joined by the base stage of resistance R 36A and triode Q2, also is connected to resistance R 3A with the base stage of triode Q2; The collector of triode Q2 joins by the base stage of resistance R 2A and triode Q1, and the collector of triode Q1 is connected to capacitor C 4, resistance R 5A, R8A.
Described undervoltage detection circuit is connected to capacitor C 1, diode D1 and resistance R 6A for being provided with stabilivolt U1 with stabilivolt U1.
Described actuating mechanism controls circuit is for being provided with triode Q6, Q8, is connected to resistance R 23A, R22A respectively with the base stage of triode Q6, Q8, is connected to triode Q5 with the collector of triode Q6, and the base stage of triode Q5 and resistance R 20A, R18A join; Be connected to triode Q7 with the collector of triode Q8, the base stage of triode Q7 and resistance R 21A, R19A join.
Described status monitor circuit is to be provided with the sensor that detects topworks's state, be connected to resistance R 32A, R28A and the resistance R 31A that is in parallel, the R29A that is in parallel respectively with sensor, be connected to triode Q9, be connected to triode Q10 with the resistance R 31A, the R29A that are in parallel with the resistance R 32A that is in parallel, R28A.
The utility model is compared with prior art, has following advantage:
1. antijamming capability is strong
The table body is a full-enclosed structure, can prevent effectively that the people from infiltrating and interference such as static, strong magnetic, vibration by force for causing water;
2. easy and simple to handle
Because the no datat carrier, the user can buy code in issuing department, also can buy by call voice or internet, and the code input table body of being bought is quantity purchase through deciphering, and is easy to operate;
3. data security is reliable
10,000,000,000 groups of passwords are arranged in the table, and the code of each input is different in the same table, and the code in the different table is also inequality;
4. low-power consumption, long service life
Total system is by data acquisition unit control energising, and static working current is zero substantially, and i.e. outage is finished in counting work, and power consumption is lower, and the life-span is long;
5. prevent " stealing " water
Set data acquisition circuit and pulse input circuit can guarantee to show runner in the body under the situation of rotating counting, and topworks can normal switch otherwise will be in closed condition, can effectively prevent the phenomenon generation that " stealing " water uses;
6. more easily adapt to the water price change
The code of being bought is that the consumption number of water is not an amount, and when water price changed, only the conversion relation that needs tap water enterprise (code issuing department) to change the money and the water yield got final product.
Embodiment:
Below in conjunction with description of drawings embodiment of the present utility model.As shown in Figure 1: a kind of code type pre-payment water meter, data acquisition circuit that is arranged in the table body and the topworks of joining with the table body are arranged, data acquisition circuit joins by pulse input circuit and microprocessor; Be connected to the actuating mechanism controls circuit with microprocessor, the output and the topworks of actuating mechanism controls circuit join; Also be connected to code keyboard input circuit, storer, undervoltage detection circuit and digital display circuit with microprocessor; Data acquisition circuit, undervoltage detection circuit, actuating mechanism controls circuit, microprocessor, storer and display circuit all join with power supply.
Preferably described microprocessor, storer, digital display circuit are all joined by power control circuit and power supply, and the output of data acquisition circuit, code keyboard input circuit and microprocessor control power control circuit, to reach the purpose of low-power consumption.
Execution architecture can be used solenoid valve etc., promptly available software control solenoid valve open valve, closing valve time, also can be connected to the switch valve state detection sensor with described topworks, the output and the microprocessor of switch valve state detection sensor join.Status monitor circuit can also be set in circuit, the output and the status monitor circuit of state detection sensor joined, the output of status monitor circuit and actuating mechanism controls circuit join.
Physical circuit is shown in Fig. 2,3: microprocessor IC1 can select any one model for use, and present embodiment is selected EM78P447S for use, its pin function and connect as follows:
1,2 pin join with the power lead of being controlled by power control circuit.
3,4 pin join with ground, are connected to capacitor C 7 between ground and the power lead by power control circuit control.
5 pin are empty pin.
6,7 pin and actuating mechanism controls circuit join; The actuating mechanism controls circuit can have various ways, gets final product as the circuit that constitutes with photoelectrical coupler and other elements etc.The utility model embodiment is for being provided with triode Q6, Q8, is connected to resistance R 23A, R22A respectively with the base stage of triode Q6, Q8, is connected to triode Q5 with the collector of triode Q6, and the base stage of triode Q5 and resistance R 20A, R18A join; Be connected to triode Q7 with the collector of triode Q8, the base stage of triode Q7 and resistance R 21A, R19A join, and resistance R 18A and 6 pin join, and resistance R 19A and 7 pin join.
8,9 pin and memory IC 3 (24LC02B) are joined, and are connected to capacitor C 8 with memory IC 3.
10,11,12,13,14,15,16,17 pin join with the code keyboard input circuit of being made up of button S1, S2, S3, S4, S5, S6, S7, S8, S9, S0, QC, CX, SZ, QR, QD, startup button QD one end wherein joins with ground by resistance R 15A, the other end and power control circuit join, and are connected to resistance R 14A, R13A, R12A, R11A respectively with 14,15,16,17 pin.
18,19 and pulse input circuit join.The data acquisition circuit that joins by plug-in unit J2 and pulse input circuit as shown in Figure 3, tongue tube GH1 and GH2 in the table body, tongue tube GH1 and GH2 join with power supply respectively.As shown in Figure 2: be connected to resistance R 38A, capacitor C 14, the resistance R 37A that is in series, the capacitor C 15 that is in series respectively with tongue tube GH1 and GH2, to prevent the surge current of moment.The process of data acquisition circuit image data is basic identical with prior art, and a magnetic patch both has been set on runner, and after runner rotated, magnetic patch made reed switch conduction; Different is in the both sides of runner tongue tube GH1 and GH2 to be set respectively for present embodiment and prior art, and magnetic patch makes tongue tube GH1 and GH2 conducting successively on the runner.Pulsing circuit is to be provided with capacitor C in parallel 2, the resistance R 7A that joins with tongue tube GH1, is connected to resistance R 40A, the triode Q11 that is in series with capacitor C 2, resistance R 7A in parallel; Also be provided with the capacitor C in parallel 3, the resistance R 9A that join with tongue tube GH2, be connected to resistance R 39A, the triode Q12 that is in series with capacitor C 3, resistance R 9A in parallel; The collector of triode Q11, triode Q12 joins with tongue tube GH2 and GH1 respectively.Capacitor C 3, resistance R 9 and 18 pin in parallel join, and capacitor C 2, resistance R 7A and 19 pin in parallel join.
20 pin join by resistance R 4A and power control circuit, and power control circuit is to be provided with the filter rectifier that is made of capacitor C 13, resistance R 34A, diode D6 that joins with tongue tube GH1; Be provided with the filter rectifier that constitutes by capacitor C 12, resistance R 35A, diode D5 that joins with tongue tube GH2; The output of diode D5, D6 is joined by the base stage of resistance R 36A and triode Q2, also is connected to resistance R 3A with the base stage of triode Q2; The collector of triode Q2 joins by the base stage of resistance R 2A and triode Q1, and the collector of triode Q1 is connected to capacitor C 4, resistance R 5A, R8A.Ground connection after resistance R 4A and resistance R 3A join.
21 pin and digital display circuit IC3 (H71621B) join, and digital display circuit IC3 joins by the collector of resistance R 30A and triode Q1.
22 pin and undervoltage detection circuit join, and undervoltage detection circuit is connected to capacitor C 1, diode D1 and resistance R 6A for being provided with stabilivolt U1 with stabilivolt U1.
23 pin and digital display circuit IC3 join, and join with initialization button KO simultaneously, and button KO is by resistance R 33A ground connection.
24,25 pin and topworks's detecting sensor are joined, and topworks's detecting sensor can be in the prior art any one, to detect the actual state that solenoid valve opens or closes.
26, the crystal oscillator operating circuit of 27 pin and crystal oscillator elements T X, capacitor C 5, C6 formation joins.
28 pin and power control circuit join.
In order to ensure correct to the detection of the actual operating state of topworks and can realize direct control to topworks being provided with status monitor circuit in the circuit.Status monitor circuit is connected to triode Q9, is connected to triode Q10 with the resistance R 31A, the R29A that are in parallel with the resistance R 32A that is in parallel, R28A for to be connected to resistance R 32A, R28A and the resistance R 31A that is in parallel, the R29A that is in parallel respectively with state detection sensor.The collector of triode Q9 and resistance R 21A join, and the collector of triode Q10 and resistance R 20A join.
Entire circuit is by the power Vcc power supply of joining by plug-in unit J1.Topworks's (solenoid valve) can join by plug-in unit J3 and control section.
Using method and principle of work:
1. program initialization
Short circuit initialization button KO presses start key QD, digital display circuit full screen display this moment.Press any key, promptly demonstrate " residue OE0001.0m
3", 7 pin output signals of microprocessor are in out the valve state by actuating mechanism controls circuit control executing mechanism (solenoid valve) simultaneously.In opening the valve process, the numerical key input is invalid.Can pass through the program setting duration of valve opening, also can detection signal be sent into 25 pin of microprocessor or send into topworks's status monitor circuit by state detection sensor, with the control executing mechanism control circuit, thus the control duration of valve opening.After opening valve events and finishing, the numerical key input effectively, at this moment, can be by following two-way table number:
(1). the off-balancesheet input.Can be by start key, again by key (SZ) input table number is set.The method can only be imported table number one time.
(2). input in the table.Short circuit initialization button KO presses start key QD, by confirming (QR) key, imports a table number again by acknowledgement key behind the input table number.The method not only adapts to first table number input, also is adapted to the modification to table number.
2. code input
Press start key QD, press 8 figure place keyboards again, and then press acknowledgement key QR, the water yield code of be about to buying is imported in the table.
3. power supply control
After the energized, data acquisition circuit, undervoltage detection circuit and actuating mechanism controls circuit, direct and power supply joins, and microprocessor, storer, digital display circuit all join by triode Q1 and power supply in the power control circuit, after pressing the startup button, triode Q1 conducting can energized.And data display circuit is only when 20 pin have signal output and data acquisition circuit to collect signal, display digit, otherwise, then be in electricity-saving state.
4. step-by-step counting (subtrahend)
(1). when the magnetic patch on the runner in the table goes to tongue tube GH2, tongue tube GH2 conducting, by 18 pin of pulsing circuit input signal to microprocessor, and in storage and the storer; When the magnetic patch on the runner in the table went to tongue tube GH1, tongue tube GH1 conducting was by 19 pin of pulsing circuit input signal to microprocessor; Microprocessor 18 pin, 19 pin more successively has signal when input, and counting once (subtracts 0.1m
3); Circulation so repeatedly.
(2). after the water yield of being bought uses up (no surplus water in the table), the 6 pin output of microprocessor is closed valve signal and is closed the valve solenoid valve.Can press start key QD, enter the overdraw program, when surplus is-3.0m
3The time, solenoid valve cuts out once more.If do not buy the water yield (no code input), even then press start key QD, solenoid valve is also no longer opened.
(3) if. microprocessor 18,19 pin receive signal (improper use is as stealing water etc.) simultaneously, and then digital display circuit shows " shutoffs ", and valve signal pass valve solenoid valve is closed in 6 pin output simultaneously.Pending fault is got rid of, and need press start key, and microprocessor could be exported and open threshold voltage, makes the valve opening solenoid valve.
5. under-voltage detection
If undervoltage detection circuit detects supply voltage in good time, and detection signal is delivered to 22 pin of microprocessor, when detecting voltage less than setting, digital display circuit is reminded " battery shutoff ", threshold voltage is closed in 6 pin of microprocessor output simultaneously, close solenoid valve, it is all invalid that press any button this moment; If the replacing battery makes voltage exceed setting value, can start button QD restarting systems by pressing, threshold voltage is opened in the 7 pin output of microprocessor, and solenoid valve is opened.