CN101964075A - Portable scribing electric counter and counting control chip - Google Patents

Portable scribing electric counter and counting control chip Download PDF

Info

Publication number
CN101964075A
CN101964075A CN2009100420238A CN200910042023A CN101964075A CN 101964075 A CN101964075 A CN 101964075A CN 2009100420238 A CN2009100420238 A CN 2009100420238A CN 200910042023 A CN200910042023 A CN 200910042023A CN 101964075 A CN101964075 A CN 101964075A
Authority
CN
China
Prior art keywords
counting
control chip
counter
module
signal
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.)
Pending
Application number
CN2009100420238A
Other languages
Chinese (zh)
Inventor
梁志辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN2009100420238A priority Critical patent/CN101964075A/en
Publication of CN101964075A publication Critical patent/CN101964075A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)

Abstract

The invention relates to a portable scribing electric counter and a counting control chip, which can count the number of audio signals and pulse signals, can be used for counting the number of flat overlapped objects such as cards, and can be applied to different counting environments after the counter is externally connected with various types of sensors. The counter mainly comprises a counting control chip, an audio signal generating and acquiring unit, an input pulse level conversion unit, a RS232 level conversion unit and a computer terminal serving unit. The counting control chip is a core part of the invention, completes the functions of audio signal processing, counting, display controlling and data transmitting of the counter, wherein the display control module directly drives the section type liquid crystal display. The counting control chip processes and counts the audio signals acquired by the audio signal generating and acquiring unit so as to complete the number statistic work of the flat overlapped objects, and the counting result is transmitted to the computer data statistic platform through the RS232 level conversion unit and the computer serving unit.

Description

A kind of portable scribing electronic counter and counting control chip
Technical field
The present invention relates to be used for for example counter field of card of straight overlapping article, mainly be a kind of portable scribing electronic counter and counting control chip, the present invention can count sound signal and pulse signal, but the same time can only count a kind of signal, can be used for the quantity statistics work of straight overlapping article, external dissimilar sensor can be applicable to different counting environment.
Background technology
Counter is one of instrument commonly used in production and the research work, is widely used in the quantity statistics work of different occasions.The method of counting and the device that are applicable to the article of placing with the form of piling up (for example security, banknote, card etc.) are known in this area.
Publication number is that the patent of invention of CN1284690A has disclosed a kind of counter that depends on the probe stretching motion, probe or the movable part that links to each other with probe, be in the sensor sensing scope or and link to each other with sensor, the action of the stretching motion of sensor sensing probe or the movable part that links to each other with probe, so the work effect of counter depends on the speed and the amplitude of the stretching motion of probe, the work effect that wearing and tearing will have a strong impact on counter takes place in probe and associated components thereof, and this counter exists in addition needs manually count results to be input to the shortcoming that computing machine carries out statistical work.
Publication number is that the utility model patent of CN2083308U has disclosed a kind of paper class paddling counter, the sensor of this counter is a vibration transducer, sensor links to each other with the counter feeler lever, feeler lever streaks the step generation vibration that paper forms, receive through sensor and to become electric signal, again with electric signal filtering, count after amplifying, be shaped to electric pulse.The sensor of this counter is connected with feeler lever, when feeler lever deforms, in the time of can not keeping well contacting with sensor, vibration can not be intactly to sensor passes, cause miscount, and this counter exists equally needs manually count results to be input to the shortcoming that computing machine carries out statistical work.
Publication number is that the patent of invention of CN1781116A has disclosed a kind of method of counting and device of being applied to pile up planar substrates based on graphical analysis, it is by taking pictures to being counted object, then the image information that obtains is analyzed, finally calculated count results.It is complicated that the top relatively two kinds of technology of this invention realization technology are wanted, and product is difficult to microminiaturization.
In sum, be used at present straight overlapping article for example card counter or strong to the probe dependence, can not link to each other with computing machine, perhaps realize technical sophistication, be difficult to microminiaturization.
Summary of the invention
The present invention will solve the above-mentioned shortcoming of present existence, a kind of portable, the electronic counter that can count straight overlapping article is provided, this counter sensor is not connected with probe, sensor and probe do not have the relative position requirement, count results can be transmitted to computing machine.
The present invention adopts following technical scheme.Counter mainly is made up of counting control chip, sound signal generation and collecting unit, push-button unit, input pulse level conversion unit, RS232 level conversion unit, power supply unit, computer terminal servo unit, active crystal oscillator, segmentation LCDs.The counting control chip is the core of this counter, and this part comprises audio-frequency signal processing module, counting module, display control module, data transmission blocks, frequency division module.Wherein audio-frequency signal processing module judges whether sound signal is effective count signal, count results is counted and preserved to counting module, display control module drives the segmentation LCDs, data transmission blocks sends count results to computing machine, frequency division module provides each module work required clock signal.
Sound signal produce and collecting unit by scriber 1., the pickup circuit forms.1. scriber is the probe of this counter, is made up of strip thin slice and anchor clamps thereof, and anchor clamps are clipped in the centre position on the thin slice length direction, insert again in the counter shell, promptly the strip thin slice half in the counter outside, half is in counter inside; The pickup circuit is made up of microphone, amplifying circuit, and effect is to change acoustical signal into corresponding electric signal, is about to the sound that 1. scriber produce and is transformed into the sound signal that is input to the counting control chip.For the straight overlapping article of different-thickness, material, can regulate the pickup circuit sensitivity and strengthen pickup effect.
Push-button unit produces the required control signal of counter works, is made up of scribing counting start button, data transmission button, manual count button, reset button.
When pressing scribing counting start button, counting control chip sound intermediate frequency signal processing module is started working, before beginning to carry out the scribing counting, need and to tilt a little with the object that is counted that the form of piling up is placed, make it form a serrated face 2., 1. scriber is streaked the sound that 2. this serrated face just can produce " rattling away ... ", the pickup circuit is transformed into sound signal with the sound of these " rattling away ... " and sends into the audio-frequency signal processing module of counting control chip and handle, the sound that 1. scriber streaks " rattling away ... " that 2. serrated face produce has specific waveform characteristics, when the sound signal of input meets these waveform characteristics, audio-frequency signal processing module judges that it is effective count signal, and exports a counting module in the pulse signal driving counting control chip and carry out counting work.Counting module is by adding up to the input pulse signal and storing and finish tally function, its input pulse signal be input to the counting control chip the pulse signal negate after again with the audio-frequency signal processing module output signal mutually or the result, it is effective to be set to high level, so can carry out counting work to two paths of signals, this counting module stores count results with bank of latches, decimal system meter digital of every group of latch record, the data in the bank of latches continue to output to data bus.Display control module in the counting control chip, data transmission blocks is obtained count results from data bus, when count results changes, display control module is reacted immediately, upgrade the display message of segmentation LCDs, display control module adopts 1/2 bias voltage type of drive to drive the segmentation liquid crystal display, combined by extreme mouthful of state " high level; low level " of public pole port status " high level; low level; high-impedance state " and section, realize the driving of segmentation liquid crystal display, when the public pole port is " high-impedance state ", its peripheral circuit will make this port level remain half of high level, realize 1/2 bias voltage.When pressing data transmission button, the data transmission blocks response button incident in the counting control chip, will encoding according to the RS232 standard for serial communication from the data that data bus receives, the back is outside to be sent.Because the level of RS232 standard for serial communication regulation logical one be-3V~-level of 15V, logical zero is+3V~+ 15V, and the counting control chip can't be exported this level signal, so need to carry out level conversion to the output signal of counting control chip, could realize communicating by letter of counter and computing machine by the RS232 level conversion unit.The on-off circuit that the RS232 level conversion unit is made up of triode and resistance, utilize that serial ports of computers provides ± the 12V signal level counts the conversion of control chip output level to the RS232 level.The computer terminal servo unit is the backstage service routine in the terminal operation, do corresponding simulating keyboard input by the satisfactory data that serial ports is received, typing rolling counters forward result is to preceding computer terminal platform application program, and this processing mode can adapt to various data statistics platform.When pressing reset button, all the latch zero clearings of counting control chip, chip reset.
Power supply unit is taked battery, serial ports of computers duplex feeding, when counter is connected with serial ports of computers, power by serial ports of computers, otherwise it is battery-powered, during the serial ports of computers power supply, change by energy, obtain the work energy of counter the signal of communication of serial ports of computers output.
This counter can carry out manual count by pressing the manual count button, also can count by transmitting pulse signal to pulse signal input terminal, the signal of pulse signal input terminal input can be expanded the scope of application of this counter whereby easily through the counting module work in the level conversion rear drive counting control chip.
The invention has the beneficial effects as follows: because this counter only uses chip piece to finish the logic control function, do not need complicated filtering shaping circuit, so peripheral components is few, the counter volume can narrow down to 100mm * 16mm * 8mm, is convenient for carrying.This counter has reached the purpose of straight overlapping article being carried out quantity statistics by generation, collection, processing, counting to sound signal; Because this counter adopts the sound sensor technology, so do not need to be connected between the thin slice of sensor and scriber, there is not the relative position requirement yet, the thin slice that needs only scriber can also be sounded, and counter just can operate as normal; This counter can also be sent to count results computer data statistics platform.
Description of drawings
The present invention will be further described below in conjunction with drawings and Examples.
Fig. 1 is a structural representation of the present invention;
Fig. 2 is the counter head synoptic diagram of the embodiment of the invention;
Fig. 3 is the synoptic diagram of the serrated face of the straight overlapping article formation of inclination;
Fig. 4 is the circuit theory synoptic diagram of the embodiment of the invention;
Fig. 5 is the top layer design concept figure of counting control chip of the present invention;
Fig. 6 is the workflow diagram of computer terminal servo unit of the present invention.
Among the figure: 1. scriber; 2. serrated face; 3. push-button unit; 4. input pulse level conversion unit; 5. pickup circuit; 6. RS232 level conversion unit; 7. power supply unit.
Embodiment
Portable scribing electronic counter of the present invention mainly by counting control chip, sound signal generation and collecting unit, push-button unit 3., the input pulse level conversion unit 4., the RS232 level conversion unit 6., power supply unit 7., computer terminal servo unit, active crystal oscillator, segmentation LCDs form.The circuit theory diagrams of the embodiment of the invention as shown in Figure 4,7. 6. present embodiment reach power supply unit to be connected to example design RS232 level conversion unit with computing machine 9 needle serial ports (DB9), the function of each main modular and the course of work are described below among the figure:
Power supply unit is 7.: power supply unit obtains electric energy from battery or serial ports of computers, the electric energy voltage stabilizing that battery or serial ports of computers is provided by voltage stabilizing chip VR1 is to 1.8V, offering this counter other parts uses, voltage stabilizing chip VR1, adopt the XC6202P182 of TOREX company, this voltage stabilizing chip input voltage is 2V~20V, output 1.8V.When counter is connected with serial ports of computers, the connection of 2,3 pin of interface J1 open circuit, battery BT1 loses the loop, and this hour counter provides electric energy by serial ports of computers 3 (TXD), 4 (DTR), 5 (GND) pin.When counter does not connect serial ports of computers, the connection short circuit of 2,3 pin of interface J1, this hour counter provides electric energy by battery BT1.
The RS232 level conversion unit is 6.: this unit is by resistance R 10, R1, R2, triode Q1, diode D1, D2 form, when computer terminal servo unit of the present invention normally moves on terminal, serial ports of computers 7 (RTS) pin level will remain on+12V, serial ports of computers 3 (TXD), 4 (DTR) pin level will remain on-12V, and under this state, serial ports of computers 2 (RXD) pin level will change with the level of this cells D ATA end.When the computer terminal servo unit of the present invention of off-duty on the computing machine, serial ports of computers 3 (TXD), 4 (DTR), 7 (RTS) pin level will remain on-12V.Under this state, the RS232 level conversion unit is not worked, but counter can normally obtain electric energy from serial ports of computers, keeps work.
Active crystal oscillator Y1: it is the clock source of the active crystal oscillator of 1MHz as the counting control chip that this counter adopts frequency.
Sound signal produces and collecting unit: this unit by scriber 1., 5. the pickup circuit form.Wherein 1. scriber is made up of strip thin slice and anchor clamps thereof, and anchor clamps are clipped in the centre position on the thin slice length direction, insert again in the counter shell, promptly the strip thin slice half in the counter outside, half is in counter inside, thin slice will be sounded after by paddling; The pickup circuit is 5. by microphone MK1, resistance R 16, R14, R13, capacitor C 8, C9, triode Q3 forms, the sound that 1. microphone MK1 equivalent resistance is produced by scriber influences and changes, respective change also takes place in the electric potential difference at capacitor C 8 two ends, and then influence triode Q3 base current, so the fluctuation of the sound that 1. triode Q3 collector electromotive force will produce with scriber is fluctuateed, be about to sound and be transformed into sound signal.
The counting control chip: the counting control chip is the core of this counter, adopt the CoolRunner-II series CPLD of Xilinx company, model is XC2C512-10PQ208C, and this resources of chip is abundant, 512 logical blocks, 173 I/O ports are arranged, can satisfy requirement of the present invention fully.This counting control chip is finished Audio Signal Processing, counting, demonstration control, the data sending function of this counter, its top layer design concept figure such as Fig. 5.Among Fig. 5, module " ain " is an audio-frequency signal processing module, Enable Pin is " CountEn ", low level is effective, this module will detect the sound signal of input, when the sound signal of input meets specific waveform characteristics, audio-frequency signal processing module judges that this time the sound signal of input is effective count signal, and export a counting module in the pulse signal driving counting control chip and carry out counting work, the method that the sound signal of importing is detected has comparison of wave shape, spectrum analysis, crest accumulative total etc., present embodiment adopts crest accumulative total to be detection method, when the crest number of a section audio signal is in a specific scope, judge that this sound signal is effective count signal; Module " coms " is a data transmission blocks, it is effective that its transmission Enable Pin " SendEn " is set to low level, when transmission enables when effective, after this module will be encoded according to the RS232 standard for serial communication from the data that data bus receives, outwards send by data sending terminal " Txd "; Module " display " is a display control module, this module is according to the demonstration of the Data Control segmentation liquid crystal display on the data bus, when changing, the data on the data bus change display message immediately, because the counting control chip can only be exported height, low two kinds of level, so display control module adopts 1/2 bias voltage type of drive to drive the segmentation liquid crystal display, combined by extreme mouthful of state " high level; low level " of public pole port status " high level; low level; high-impedance state " and section, realize the driving of segmentation liquid crystal display, when the public pole port is " high-impedance state ", its peripheral circuit will make this port level be high level half, realize 1/2 bias voltage; Module " timer " is a frequency division module, and it is 2 of source clock signal that this module is converted to frequency with the source clock signal nSignal doubly offers each module of this counting control chip and uses; Module " count " is a counting module, this module adds up by pulse signals and stores and finish tally function, its input pulse signal for the pulse signal negate of counting control chip " PulseIn " pin input after again with the output signal of audio-frequency signal processing module " ain " mutually or the result, it is effective to be set to high level, so can carry out counting work to two paths of signals, this module has 5 groups of latchs, decimal system meter digital of every group of latch record, so the present embodiment counting region is 0~99999, enlarging counting region can realize by increasing bank of latches, should be when increasing bank of latches to the data transmission blocks " coms " of counting control chip, display control module " display " is done expansion accordingly, and the data in the counting module bank of latches continue to output to data bus.It is effective that counting control chip reset terminal " Rst " is set to low level, when " Rst " is effective, and all the latch zero clearings of counting control chip, chip reset.
The computer terminal servo unit: this unit is the backstage service routine in the terminal operation, and major function is that the mode that the satisfactory data that serial ports of computers receives are imported by simulating keyboard is passed to foreground application.This unit adopts Microsoft Visual C++ exploitation, and workflow as shown in Figure 6.Will be after this backstage service routine starts according to the configuration information initialization serial ports and the simulating keyboard input format of configuration file record, then default default value initialization serial ports and the simulating keyboard input format of service routine if reading configuration file information is failed, initialization finishes promptly to change over to waiting status, wait for that the serial ports incident takes place or user operation case, when serial ports receives satisfactory data, the backstage service routine will be given the terminal foreground application data transfer that receives by the mode of simulating keyboard input; User operation case comprises to be revised configuration and closes the backstage service routine, when being connected with of counter and serial ports changes or during simulating keyboard input format incompatibility current computer terminal foreground application, the user can by revise the serial ports configuration, the simulating keyboard input format make the backstage service routine adapt to the work at present environment.After the user's modification configuration, the backstage service routine will reconfigure serial ports and simulating keyboard input format immediately.The mode of operation of this unit can adapt to various data statistics platform, and versatility is good.

Claims (8)

1. portable scribing electronic counter, it is characterized in that: this counter comprises that mainly counting control chip, sound signal produce and collecting unit, wherein count control chip and finish Audio Signal Processing, counting, demonstration control, data sending function, sound signal produces and collecting unit produces the sound signal of counting usefulness for the counting control chip.
2. portable scribing electronic counter according to claim 1, it is characterized in that: described sound signal produces and collecting unit is made up of scriber [1.], pickup circuit, and the sound that the pickup circuit produces scriber [1.] is transformed into the sound signal that is input to the counting control chip.
3. portable scribing electronic counter according to claim 2, it is characterized in that: described scriber [1.] is made up of strip thin slice and anchor clamps thereof, anchor clamps are clipped in the centre position on the thin slice length direction, insert again in the counter shell, be the strip thin slice half in the counter outside, half is in counter inside.
4. count control chip for one kind, it is characterized in that: this counting control chip mainly comprises audio-frequency signal processing module, counting module, display control module, data transmission blocks, frequency division module, wherein audio-frequency signal processing module judges whether sound signal is effective count signal, count results is counted and preserved to counting module, display control module drives the segmentation LCDs, data transmission blocks sends count results to computing machine, frequency division module provides each module work required clock signal.
5. counting control chip according to claim 4, it is characterized in that: described audio-frequency signal processing module, when it detects sound signal and meets specific waveform characteristics, this audio-frequency signal processing module judges that this sound signal is effective count signal, and exports a counting module in the pulse signal driving counting control chip and carry out counting work.
6. counting control chip according to claim 4, it is characterized in that: described counting module is by adding up to the input pulse signal and storing and finish tally function, its input pulse signal be input to the counting control chip the pulse signal negate after again with the audio processing modules output signal mutually or the result, it is effective to be set to high level, so can carry out counting work to two paths of signals, this counting module stores count results with bank of latches, decimal system meter digital of every group of latch record, the data in the bank of latches continue to output to data bus.
7. counting control chip according to claim 4, it is characterized in that: described display control module is according to the demonstration of the Data Control segmentation liquid crystal display on the data bus, when changing, the data on the data bus change display message, this display control module adopts 1/2 bias voltage type of drive to drive the segmentation liquid crystal display, combined by extreme mouthful of state " high level; low level " of public pole port status " high level; low level; high-impedance state " and section, realize the driving of segmentation liquid crystal display, when the public pole port is " high-impedance state ", its peripheral circuit will make this port level remain half of high level, realize 1/2 bias voltage.
8. counting control chip according to claim 4, it is characterized in that: described data transmission blocks, when its transmission enables when effective, the data that this data transmission blocks will receive from data bus outwards send according to the RS232 standard for serial communication back of encoding.
CN2009100420238A 2009-08-21 2009-08-21 Portable scribing electric counter and counting control chip Pending CN101964075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100420238A CN101964075A (en) 2009-08-21 2009-08-21 Portable scribing electric counter and counting control chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100420238A CN101964075A (en) 2009-08-21 2009-08-21 Portable scribing electric counter and counting control chip

Publications (1)

Publication Number Publication Date
CN101964075A true CN101964075A (en) 2011-02-02

Family

ID=43516940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100420238A Pending CN101964075A (en) 2009-08-21 2009-08-21 Portable scribing electric counter and counting control chip

Country Status (1)

Country Link
CN (1) CN101964075A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830872A (en) * 2018-06-23 2018-11-16 昆山瑞琪信息科技有限公司 One kind being used for paper number of pages method of counting
CN110263903A (en) * 2019-07-30 2019-09-20 南通理工学院 Produce line traffic control and counting device and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830872A (en) * 2018-06-23 2018-11-16 昆山瑞琪信息科技有限公司 One kind being used for paper number of pages method of counting
CN110263903A (en) * 2019-07-30 2019-09-20 南通理工学院 Produce line traffic control and counting device and method

Similar Documents

Publication Publication Date Title
CN105302373A (en) Method and system for achieving operation of mobile terminal according to touch signals and mobile terminal
CN201638148U (en) Glove-type virtual input device
CN103440076A (en) Three-dimensional multiple-point type touch screen based on thin film pressure sensors and triaxial accelerometer
CN102063825A (en) Sign language recognizing device based on data gloves
CN201532310U (en) Complete automobile road-test testing device
CN105011486A (en) Smart bracelet and terminal equipment unlocking method thereof
US8713235B2 (en) Low latency interrupt collector
CN106664492A (en) Smart sensor for always-on operation
CN201698606U (en) Point reading machine
CN107894854A (en) Stylus is modeled as to the touch-control electronic system, touch-control processing unit and method of rocking bar
CN1987762B (en) Input method and device for determining hand writing track by ultrasonic wave
CN206062353U (en) Bracelet with paying with motor function
CN101964075A (en) Portable scribing electric counter and counting control chip
CN202126679U (en) Embedded multimedia auxiliary demonstrator
CN203038229U (en) Mouse special for disabled person
CN107395910A (en) A kind of incoming call notifying method and mobile terminal
CN112782962A (en) Mechanical intelligent watch
CN201364568Y (en) Electronic whiteboard system adopting multifunctional digital keyboard
CN202758323U (en) Touch-control pen and touch-control device
CN208128280U (en) A kind of KIU keyboard interface unit for radio station traffic communication
CN1304932C (en) U disk notepad based on wireless positioning
CN106648138B (en) A kind of virtual typing control system in computer field under human-computer interaction
CN201623786U (en) Fitness exercise type portable digital mobile television
CN205514676U (en) Polyembryony child heart fetal movement monitor based on wireless agreement
CN206136061U (en) Mobile terminal with front camera and large LCD

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110202