Character wheel code disc optoelectronic digital intelligent sensor
The utility model relates to a kind of device that character wheel formula mechanical counter non electrical quantity data presented in the instrument that is measured is carried out electric weight digitizing conversion.
The technical field of the utility model subordinate comprises:
1. the synchronous carry character wheel of mechanical drive counting technology;
2. code disc optoelectronic digital conversion technique;
3. the microcontroller Based Intelligent Control and the communication technology.
The utility model can be widely used in all kinds of measuring instruments, is particularly useful for the direct dimension of all kinds of non electrical quantities
Transmit in the instrument of metering.
The sensor that is used for measuring instrument such as water meter, watt-hour meter, gas meter, flow meter at present, substantially belong to physics instantaneous value conversion and represent with the form of electric weight, so that the transmission of value, conversion storage and calculating, if measure, then need to carry out long-term continual monitoring and accumulation calculating, say that in a sense computing machine and measuring instrument have the place of a lot of repetitions on task with the low speed pulse of serial.
Because the professional of many subjects fails to understand in depth metrological singularity, think with new and high technology and can substitute traditional measuring instrument arbitrarily, ignored the legal system of metering, the characteristic of amount biography, traceability and pressure periodic calibration.It is in the simulation and alternative measuring instrument of agent technology that a large amount of work is used in the computer technology; only utilized the primary transducer of original instrument; do not utilize the accumulating function of former instrument; thereby make additional electronic circuit require reliablely and stablely to work year in year out; and then to power consumption; power down protection data and continuous electricity work and maintainable, aspects such as cost have proposed strict requirement.
Along with the development of technology, metering and managerial demand are transformed to electric weight in Physical layer to dissimilar dimension unifications, according to this requirement, electric weight or non electrical quantity are measured the character wheel vision numerical value that has produced directly read with machinery, photoelectricity, microcontroller technology.Make the process of computer simulation measuring instrument become the process that simulation is manually tabled look-up, making the online in real time control procedure become off line random data exchange process is crucial purpose of the present invention.
The utility model can be thought the secondary sensor of measuring instrument from application point, and it utilizes the mature technology design.The character wheel display technique is that physical quantity converts displacement and corner to through mechanical gear, characterize the technology of the semi-invariant of value with this, the digital quantization that utilizes infrarede emitting diode and phototriode to carry out corner and displacement is based on the technology with character wheel code-disc code conversion, utilizes single chip microcontroller MCU to carry out intelligentized optoelectronic scanning, data-switching, information processing and communicates by letter.
The purpose of this utility model provides a kind of secondary sensor of measuring instrument, with accumulative total the metering result with random challenge, the coded data exchanged form offers computing machine, and the online in real time monitoring working method that changes system is off line random data exchange working method.
The utility model constitutes mechanical part by three essential parts; Photoelectricity part: microcontroller part.
Fig. 1 is dynamo-electric assembly relation front view, (a) front view, (b) vertical view, (c) A-A sectional view.
Fig. 2 is character wheel code-disc figure, Fig. 2 (p) code-disc front view (FV), Fig. 2 (n) code-disc back view, Fig. 2 (b) code-disc B-B sectional view.
Fig. 3 is coding and numerical value corresponding diagram, Fig. 3 (a) code-disc front view, Fig. 3 (b) code-disc side view.
Fig. 4 is 4-8 gear wheel figure, Fig. 4 (a) front view, Fig. 4 (b) 1-1 sectional view.
Fig. 5 is photoelectricity plug-in card figure, Fig. 5 (a) front view, Fig. 5 (b) plate B face figure, Fig. 5 (c) plate side view.
Fig. 6 is a bus type plug-in unit frame grafting graph of a relation, Fig. 6 (a) front view, Fig. 6 (b) side view.
Fig. 7 is the bus board synoptic diagram, Fig. 7 (a) plate A face figure, and Fig. 7 (b) is plate B face figure.
Fig. 8 is a microcontroller mount board synoptic diagram, Fig. 8 (a) front view, Fig. 8 (b) side view.
Fig. 9 is mount board support frame figure, Fig. 9 (a) front view, and Fig. 9 (b) is the B-B sectional view.
Figure 10 is system's electrical schematic diagram.
Figure 11 pedal system workflow diagram.
1. character wheel code-discs among the figure, 2.4-8 gear wheel, 3 electro-optical packages, 4. photoelectricity card bus framework, 5. character wheel counter framework, 6. mount board support frame, 7. mount board, the 8. base plate of former instrument, 9. visual window, 10. code-disc transmission photoelectricity hole, 11. photoelectric codings, 12. infrarede emitting diodes, 13. phototriode, 14. photoelectricity bus boards, 15. communication T type sockets, 16. the microcontroller integrated circuit, 17. driver ICs.
The purpose of this utility model is achieved in that the thickness of each character wheel outer rim reduces, reserve the insertion gap of photoelectricity plug-in card, be not less than 0.5MM, the structure of tooth is constant, character wheel radially is divided into ten five equilibrium sectors and corresponding ten numerals, process the photoelectric code disk of corresponding character in each sector, cooperate for the ease of electromechanics, photoelectric code disk is processed into the coaxial arc strip, see Figure 11, owing between every character wheel, insert photoelectricity plug-in card, Fig. 3 and Fig. 5, the character wheel code-disc that changes thin edges uses synchronous carry driven wheel 4--8 gear wheel, among the figure 2 and Fig. 4, just may mesh character wheel, so need the long tooth of 4--8 gear wheel and lack tooth and extend in the low level points in axial direction less than a high position, do not insert electro-optical package as the first place, then the first gear wheel can be without this mode correction.Adding the I-beam wheel code-disc is also can make normal engaged between the gear that draws back the interval in order to guarantee not increase when every bit-interleaved is gone into electro-optical package to contact or rub with revising the 4--8 gear wheel.
One of photoelectric conversion section structure from character wheel show end in the face of patch into the photoelectricity card cage, among the figure 4 and Fig. 6, the space between the character wheel code-disc is inserted at plug-in unit front end ligulate position, Fig. 1 plug-in card simultaneously is 1 to 2 infrarede emitting diode, another side is 4 phototriodes, the transmission photoelectricity hole, 4 road of 12,13 aligning character wheel code-discs among Fig. 5, fit dimension guarantees not influence the operate as normal of mechanical part.A first plug-in unit and position, an end plug-in unit have only a component side, and the position that the plug-in unit frame inserts plug-in unit is bus structure, and among Fig. 6 14, drawing to microcontroller also is bus structure, and black is that the grafting pad connects with black pad among Fig. 8 among Fig. 7.Utilize what bus structure that photosignal is drawn from the character wheel code-disc, using the welding bus structure is to deliver to microcontroller MCU owing to can't draw too many signal with the wire bonds mode, bus structure also make the word length of character wheel code-disc select arbitrarily simultaneously, can select between 2~16 decimal system word lengths the instrument of difference metering value.
In the microcontroller partial graph 16, plan is selected the microcontroller MCU of MOTOROLA company for use, optional scope is big, the system of being convenient to expands or upgrades, the peripheral chip holding power is strong, and packaged type is flexible, and software development is convenient, low price, the multiple read-only Chu of the depositing device ROM type of a kind of model are convenient to the system development typing.Use MC68HC05XXX micro controller system chip, packaged type is not less than 13MM * 11MM * 3MM by bulk decision in the table.In order to communicate by letter with the machine of performing conveniently, microcontroller MCU will have serial port SCI or general-purpose serial bus USB function and can make between system hardware adaptive through patching controller HUB.
Figure 10 is the electrical schematic diagram of the utility model system, and the hardware that it has described system constitutes.One or two light emitting diode Di and four phototriode Tj constitute the photoreader of a certain position wheel digitals, the arrangement of pressing among the figure constitutes the sensor matrix that a capable j of i is listed as, i=n, j=4, corresponding all every character wheels, because optical diode Di work that each has only constantly that riches all the way, other port high resistant, so can a shared resistance R d current limliting, each only gets the photosignal of a phototriode Tij constantly, and other pipe has only very little dark current, so but the shared resistance R ij of people having a common goal's phototriode, the increase and decrease of character wheel figure place does not influence load capacity, only depends on the quantity of microcontroller parallel port.The matrix of this dynamic scan itself just has physics and the logical organization that suitable bus is confluxed.When the machine that performs starts native system work, by microcontroller MCU control the entry of a matrix element is traveled through, then can obtain total data.Microcontroller MCU adopts minimum system J, the K series of the MC68HCO5 single chip microcontroller of MOTOROLA company, can on function and speed, meet the demands, there is the JB series of general-purpose serial bus USB to be suitable for the system that the machine of performing has the general-purpose serial bus USB communication function, J, K series is not owing to there being serial communication port SCI available software simulation SCI communication, and whether look the transmission square must increase the non-equilibrium driver of RS--423 from decision.General-purpose serial bus USB through patch controller HUB can with 126 various peripheral communications, thereby be particularly suitable for increasing and decreasing at random equipment will enter comprehensive home automation in future field.
No matter be that serial port SCI or general-purpose serial bus USB communication mode the utility model are all started by the data acquisition system (DAS) power supply of performing, so wireless mode is not adopted in communication.
Figure 11 is system works flow process figure, and variables L ED=A represents that light emitting diode is an address code among the figure, and corresponding is the numerical digit of character wheel, and what variable SENSOR=D represented that phototriode reads is data.BUFF represents the data buffer.
When management system need be gathered continuous data, the machine that performs of the present utility model is given system power-up, serial port SCI communication mode can be cut downwards after the voltage stabilizing+the 5V power supply, the general-purpose serial bus USB communication mode loads downwards via patching controller HUB, automatically enter the self check break in service behind the power-on reset, whether the check system hardware environment is in shape, can peek the system variable assignment as no problem.Data are read and can be begun also can only need self-defined traversal direction and order from low level from a high position.
Each character wheel code-disc has 4 binary codings, can represent 16 kinds of states, consider that 4 complete " 0 " or complete " 1 " may be that the probability that disturbs is big, this two numerals have been abandoned in the coding, " 8 ", " 4 ", " 2 ", " 1 " these 4 numerals are owing to " a 1 " code only occurs in corresponding four of code-disc, also make mistakes easily and be difficult for verification, six altogether of these sign indicating numbers, it just in time is metric redundanat code, so it is not selected entirely, be defined as unused code, system is driving the i light emitting diode, when reading this position 4 road phototriodes, if above-mentioned redundanat code represents that system breaks down, should get rid of, system enters the fault interruption subroutine, as endless loop occurs, the timer of system forces system to jump out endless loop in some cycle dominant frequency after the time, the retrieval system initialization is reworked, as not finishing the work then behind the software cycles several times to the machine main system application fault Interrupt Process that performs.
If system is when reading certain, not having illegal code reads, just the read bit data being sent into buffer zone gives address code A+1 and returns i+1 capable of being listed as the data of reading next bit, after the value of the A decimal system figure place just total greater than constant, system will apply for interrupting, in the machine response of performing, have no progeny, emulation serial port SCI or press the general-purpose serial bus USB agreement and send data, sending data and appraising and deciding when errorless, the application shutdown, the machine that performs is after thinking that task is finished, through the relay parts or patch controller HUB and go electricity shutdown to system, the implementation method of this groundwork process has many variations at source program and target program level, but basic process be by system design thought and hardware environment standard get up similar.
Characteristics of the present utility model are that this device does not power up when the machine of performing does not fetch data, and working method is a batch (-type).It needn't overemphasize reliability; low-power consumption; power-down data protection, technical indicators such as continuous electricity work, the work of its totally enclosed type; but still can see the visual data on the former character wheel simultaneously; the high reliability and the intrinsic safety of the utility model self help the comparison of data, owing to can use it in many places; it has only increased partial function on former measuring instrument but superseded measuring instrument and meter through the CMC China Metrology Accreditation has never seen such sensor before this.
The utility model production is simple, and is convenient cheap.Framed structure, the character wheel code-disc, the 4--8 gear wheel is processed with Shooting Technique, and material is opaque high density polyethylene.Electro-optical package and bus board and mount board are used two and printed board processing.Photoelectric device is the naked correspondence position that is welded in electro-optical package of chip-scale gold ball bonding, and element surface light encapsulates thoroughly.The non-dress weldering part of plate applies teflon and reduces the friction that may occur, and ligulate insertion end surface chamfer prevents to block the motion of character wheel.Print the processing bus board and constitute framework, the mount board installation and processing is debugged, software development, operation simulation, typing batch product.
Owing to adopted above-mentioned technology and embodiment, can make various dependences or not rely on civil power or instrument that continuous electricity measures, when not powering up, be in any self-duty, system only takes the data that need away in the moment of being concerned about, the monitor procedure that makes juice calculate machine falls back on the last interface of former measuring instrument function, not only cancelled on the function and the redundancy on the equipment, and only changed the mode of operation of last file management system.Employing machine, light, electric skill originally make the utility model reach the good ratio of performance to price, it is little to be issued to volume in this scheme, power consumption is minimum, separate with original instrument function electromechanics, do not disturb the operation mechanism and the measuring accuracy of former table, owing to adopted the technology of photoelectricity and microcontroller that scheme is implemented.
Embodiment of the present utility model is based on the domestic meter consideration, and the volume of domestic meter and inside can utilize the space very little, and the enforcement under this condition can guarantee also can implement in watt-hour meter and gas meter, flow meter.Different is that water meter will be considered moistureproof problem, and watt-hour meter is considered anti-electromagnetic interference problem, and gas meter, flow meter is considered explosion-proof security issues.
Can divide because the conversion system of table and gear counting system are independent, revise gear wheel and character wheel code-disc after, insert the photoelectricity card cage in dial plate panel direction, seal repacking or remodeling that the panel outgoing cable has then been finished measuring instrument.Also can integrated consideration in the production of table.Size by its structural change gear wheel and character wheel, adjust the size of plug-in unit and bus plug-in unit frame, the figure place of adjusting plug-in unit and bus by the word length of character wheel counter is controlled between the decimal system 2--16 position, according to the panel construction of different instrument, the connecting bus between plug-in unit frame and the microcontroller MCU can increase one-level or be flexible coupling to change microcontroller MCU board space assembly relation.Satisfy Structural Design Requirement.Panel should be according to the reality of various instrument, installs additional visible transparent but the sealing decorative panel of infrared resistant at virtual location.To microcontroller MCU output plug seat integral sealing, glue seals behind the grafting T type quad from character wheel.
The photoelectricity of character wheel code-disc is read can be without photo amplifier as the employing transmission-type, reduce the components and parts on the plug-in card as far as possible, except that the electro-optical package of first and last position, because direction of scanning and the order of microcontroller MCU are any, every two-sided electro-optical package promptly is the dash receiver at one's own department or unit, be again the luminous plaque at phase ortho position, the light-emitting component infrared type is for anti-interference.The code value of character wheel code-disc and tens digit corresponding can be selected completely.Each microcontroller MCU can regard the code value of character wheel code-disc as an address code, this yard and the synthetic mapping storage of the optoelectronic scanning bit address sign indicating number that generates by microcontroller MCU address, and the sign indicating number of reading in the memory cell generates at random, again with the random code definition that generates or calculate unique character wheel and show numerical value, the result who does like this makes just the surface copy character wheel and photoelectricity read-out system debug difficulties may to occur or read mess code or problem such as system's self-locking.
Being connected between photoelectricity plug-in unit and frame-type bus and the microcontroller MCU also is design main points, calculates 5 to 16 as every minimum seven leads and will draw very bad doing from the space that is not more than 2mc by 35 to 112 leads.Photovalve requires the nude film dress to be welded on the plug-in card, does not have professional equipment not process.The design makes the lead-in wire of element import bus onboard, is connected with the parallel port of microcontroller MCU by space break-in several times again.
The design of native system is independent mutually on electromechanical structure based on the metering process and the sensor-based system of measuring instrument, only table look-up, the not dried metering process that gives table, the once task of just having finished of start when microcontroller MCU needs in system, its design feature concentrates on and changes mode of operation and be suitable for utilizing the existing network aspect, because the very most of support of the technology communications field of MOTOROLA company selects for use MC68HC05XXX Series of MCU MCU to be convenient to utilize these technical supports.
The utility model adopts serial port SCI or general-purpose serial bus USB communication mode to realize going up company's machine between the lower gear machine, the no electric power system of this machine self, the machine that performs when starting native system by the relay parts or patch to dig and make device HUB and power downwards.For reaching the driving force in 30 meters, to select to have used the non-equilibrium driver that carries voltage pump, the machine that performs also needs correspondence to select for use.
The utility model is applicable to the measuring control and the Fare Collection System of water meter, watt-hour meter, gas meter, flow meter etc., its design makes the very flexible of management system change, it is particularly useful for not relying in the measuring instrument that electricity measures, and realizes the robotization of measuring control and charge.