Paper counting equipment and method
By combining the electrode plate and the Wien bridge circuit, the structure of the paper counting device is simplified, the problem of complex structure and easy failure in the prior art is solved, and a low-cost and easy-maintenance paper counting effect is achieved.
Patent Information
- Application Number
- CN202510832934.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-09-12
Smart Images

Figure CN120633700A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation technology, and in particular to a paper counting device and method. Background Art
[0002] In fields such as office automation and finance, paper counters play a crucial role in daily work, serving as essential tools for measuring paper consumption and managing banknotes. Currently, commonly used paper counters primarily consist of optical sensors combined with motors and other mechanical structures. These complex structures are prone to failure due to aging and inadequate maintenance, leading to high failure rates. This not only impacts customer service but also increases maintenance complexity and costs. Summary of the Invention
[0003] In view of the above problems, this application provides a paper counting device and method to achieve the purpose of reducing maintenance costs and difficulty. The specific solution is as follows:
[0004] A first aspect of the present application provides a paper counting device, comprising: a first electrode plate, a second electrode plate, a Wien bridge circuit, a shaping circuit, and a main control unit;
[0005] The first electrode plate and the second electrode plate constitute a counting capacitor which replaces the first capacitor or the second capacitor and is connected to the Wien bridge circuit. The first capacitor is the capacitor in the series branch of the resistor and the capacitor in the Wien bridge circuit, and the second capacitor is the capacitor in the parallel branch of the resistor and the capacitor in the Wien bridge circuit.
[0006] The shaping circuit is used to convert the resonant signal generated by the Wien bridge circuit into a first square wave signal;
[0007] The main control unit is used to determine the resonant frequency of the Wien bridge circuit based on the duration of the high-level portion of the first square wave signal, and to determine the number of papers placed between the first electrode plate and the second electrode plate based on the corresponding relationship between the resonant frequency and the number of papers.
[0008] In one possible implementation, the paper counting device further includes: a phase-locked loop circuit, which is arranged between the shaping circuit and the main control unit, and the phase-locked loop circuit is used to lock the first square wave signal, output a second square wave signal synchronized with the first square wave signal, and input the second square wave signal to the main control unit.
[0009] In a possible implementation, the main control unit includes: a main controller and a prompter and a display screen respectively connected to the main controller;
[0010] The main controller is used to determine the resonant frequency of the Wien bridge circuit based on the duration of the high-level portion of the first square wave signal, and determine the number of papers placed between the first electrode plate and the second electrode plate based on the corresponding relationship between the resonant frequency and the number of papers, and control the display screen to display the number, and control the prompter to broadcast the counting completion and the voice representing the number.
[0011] In a possible implementation, the main control unit further includes: a button, which is connected to the main controller and is used to perform counting start control and counting calibration control.
[0012] In a possible implementation, the shaping circuit includes at least one Schmitt trigger, an input end of the at least one Schmitt trigger is connected to an output end of the Wien bridge circuit, and an output end of the at least one Schmitt trigger is connected to the main control unit.
[0013] In a possible implementation, the paper counting device further includes: an A-type tool clamp made of insulating material, and the first electrode plate and the second electrode plate are respectively arranged on two movable ends of the A-type tool clamp.
[0014] In a possible implementation, both the first electrode plate and the second electrode plate are solid metal plates made of metal material.
[0015] A second aspect of the present application provides a paper counting method, which is applied to a main control unit in the paper counting device described in the first aspect, comprising:
[0016] Determining the resonant frequency of the Wien bridge circuit according to the duration of the high level portion of the first square wave signal;
[0017] According to the resonant frequency, a target resonant frequency closest to the resonant frequency is determined from the record table, and the target number corresponding to the target resonant frequency in the record table is used as the number of papers placed between the first electrode plate and the second electrode plate.
[0018] In a possible implementation, the paper counting method further includes:
[0019] In response to a single-point calibration signal, obtaining the number of sheets of paper placed between the first electrode plate and the second electrode plate each time;
[0020] The average value of the resonant frequency of the Wien bridge circuit within the first preset time period after each insertion is collected, and the number of sheets of paper and the average value are stored in the record table in correspondence.
[0021] In a possible implementation, the paper counting method further includes:
[0022] In response to the fitting calibration signal, obtaining the number of papers placed between the first electrode plate and the second electrode plate each time;
[0023] A curve function is fitted based on the resonant frequency of the Wien bridge circuit collected within a preset time after each insertion, and the curve function and the number of sheets of paper are stored in the record table.
[0024] A third aspect of the present application provides a computer program product comprising computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the paper counting method of the second aspect or any implementation of the second aspect.
[0025] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0026] The memory is used to store computer programs;
[0027] The processor is configured to execute the computer program so that the electronic device can implement the paper counting method of the second aspect or any implementation of the second aspect.
[0028] In a fifth aspect, the present application provides a computer storage medium carrying one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the paper counting method according to the second aspect or any implementation of the second aspect.
[0029] Based on the above technical solution, the present application provides a paper counting device comprising: a first plate, a second plate, a Wien bridge circuit, a shaping circuit, and a main control unit. The first plate and the second plate form a counting capacitor, which replaces the first capacitor or the second capacitor and is connected to the Wien bridge circuit. The first capacitor is the capacitor in the series branch of the resistor and capacitor in the Wien bridge circuit, and the second capacitor is the capacitor in the parallel branch of the resistor and capacitor in the Wien bridge circuit. The shaping circuit is used to convert the resonant signal generated by the Wien bridge circuit into a first square wave signal. The main control unit is used to determine the resonant frequency of the Wien bridge circuit based on the duration of the high-level portion of the first square wave signal, and to determine the number of sheets of paper placed between the first plate and the second plate based on the corresponding relationship between the resonant frequency and the number of sheets of paper. This paper counting device does not require complex mechanical devices; it only requires two plates forming the technical capacitor and a subsequent processing circuit to count sheets of paper. Its simple structure and easy maintenance ensure normal business operations while effectively reducing maintenance difficulty and costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0031] Figure 1 A structural diagram of a paper counting device provided in this application;
[0032] Figure 2 A structural diagram of an RC series-parallel network in a Wien bridge provided in this application;
[0033] Figure 3 A structural diagram of a Wien bridge circuit provided in this application;
[0034] Figure 4 A structural diagram of a shaping circuit provided in this application;
[0035] Figure 5 Another structural diagram of a paper counting device provided by this application;
[0036] Figure 6 A structural diagram of the phase-locked loop circuit provided in this application;
[0037] Figure 7 Another structural diagram of a paper counting device provided by this application;
[0038] Figure 8 A flowchart of a paper counting method provided in this application;
[0039] Figure 9 Another flow chart of a paper counting method provided by the present application;
[0040] Figure 10 This is a structural diagram of an electronic device provided in this application. DETAILED DESCRIPTION
[0041] The following describes the embodiments of the present application in conjunction with the accompanying drawings. The terms used in the implementation methods of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application.
[0042] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0043] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is merely a way of distinguishing the objects of the same attributes when describing them in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0044] In order to solve the above problems, the present invention provides a paper counting device. The paper counting device of the present invention is described in detail below with reference to the accompanying drawings.
[0045] Reference Figure 1 , Figure 1 A schematic diagram of the structure of a paper counting device provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, a paper counting device provided in an embodiment of the present application may include:
[0046] A first electrode plate, a second electrode plate, a Wien bridge circuit 101 , a shaping circuit 102 and a main control unit 103 .
[0047] The first electrode plate and the second electrode plate constitute a counting capacitor that replaces the first capacitor or the second capacitor and is connected to the Wien bridge circuit 101. The first capacitor is the capacitor in the series branch of the resistor and the capacitor in the Wien bridge circuit 101, and the second capacitor is the capacitor in the parallel branch of the resistor and the capacitor in the Wien bridge circuit 101.
[0048] The shaping circuit 102 is used to convert the resonant signal generated by the Wien bridge circuit 101 into a first square wave signal.
[0049] The main control unit 103 is used to determine the resonant frequency of the Wien bridge circuit according to the duration of the high level portion of the first square wave signal, and determine the number of papers placed between the first plate and the second plate according to the corresponding relationship between the resonant frequency and the number of papers.
[0050] Specifically, refer to Figure 2 The Wien bridge circuit shown is mainly composed of RC series-parallel networks. In the circuit structure diagram, the impedance of the RC series arm is represented by Z1, and the impedance of the RC parallel arm is represented by Z2.
[0051]
[0052] The feedback coefficient F is: (1)
[0053] Amplitude-frequency characteristics (2)
[0054] Phase-frequency characteristics (3)
[0055] Reference Figure 3 The specific structure diagram of the Wien bridge circuit shown in the figure, the R2C2 series branch of the frequency selection network, the R1C1 parallel branch, the resistors R3 and R in the basic amplifier circuit f (R f =R5+R4 / / R6) forms a four-arm Wien bridge.
[0056] Voltage amplification factor of basic amplifier circuit =1+R f / R1. , then the oscillation condition of the circuit is
[0057] R f >2R1, (4)
[0058] Take R3=1KΩ, R5=2KΩ, R4=4KΩ to meet the oscillation conditions.
[0059] The oscillation frequency is changed by adjusting the values of R1, C1, R2, and C2. R1=180KΩ, R2=380KΩ, and C1=40pF are taken. The variable capacitor is a counting capacitor composed of the first plate and the second plate, which replaces the capacitor C2 in the series branch of the resistor and capacitor in the Wien bridge circuit. Of course, it also replaces the capacitor C1 in the parallel branch of the resistor and capacitor in the Wien bridge circuit. There is no limitation here.
[0060] R1, R5, C1, and C2 form an RC series-parallel frequency-selective network, a positive feedback network. In the actual circuit, C2 is replaced by a variable capacitor formed by plates A and B. Changes in capacitance cause frequency changes in the output waveform. The operational amplifier, R3, R2, R4, R6, D1, and D2 form a negative feedback network. When the circuit's amplification factor is less than 3, the negative feedback branch dominates, and the circuit does not oscillate. When the amplification factor is greater than 3, the positive feedback branch dominates, and the circuit begins to oscillate.
[0061] Here, a counting capacitor is used instead of varying the number of sheets of paper between the two plates to change the capacitance value, thereby varying the oscillation frequency. When the voltage and current at the input are in the same direction, the circuit resonates, meaning that equation (1) is a real number and the imaginary part is 0. By setting the imaginary part of equation (1) to 0, the resonant frequency can be calculated.
[0062] Resonant frequency (5)
[0063] From the above formula (5), it can be seen that for the resonant frequency of the Wien bridge circuit, when the capacitance C1 or capacitance C2 changes, the resonant frequency of the Wien bridge circuit will change. When using a counting capacitor composed of two plates to replace capacitance C1 or capacitance C2, when paper, banknotes, etc. are placed between the two plates, the capacitance value will change, and thus the resonant frequency of the Wien bridge circuit will change. The corresponding relationship between the resonant frequency and the number of paper sheets can be used to determine the corresponding number of paper sheets.
[0064] To facilitate paper placement, an A-type tool clamp made of insulating material can be used. The first and second plates are positioned at the movable ends of the A-type tool clamp, creating two parallel clamping surfaces that fit snugly with the plates, minimizing errors caused by loose clamping mechanisms. This facilitates both plate securement and paper placement. The operational amplifier requires a positive and negative 5V power supply. Using a switching power supply can introduce significant switching interference. Furthermore, since the switching power supply's oscillator lacks the isolation of a power-frequency transformer, this interference can be transmitted into the circuit and affect it. Using a 5V power supply can reduce this interference and eliminate the effects of harmonic components.
[0065] Because the resonant waveform output by a Wien bridge circuit is typically a sine wave, a shaping circuit is used to detect its frequency. This converts the Wien bridge circuit's output into a square wave represented by high and low levels. The frequency of the Wien bridge circuit's sine wave is indirectly determined by determining the duration of the high level in the square wave. The main control unit determines the number of sheets of paper output based on the corresponding relationship between the frequency and the number of sheets.
[0066] As can be seen from the above, this paper counting device only requires two plates and corresponding processing circuits to count paper, without the need for complex mechanical mechanisms. This reduces maintenance difficulty and can effectively lower maintenance costs and the overall equipment purchase cost. This ensures that business operations can continue normally while reducing maintenance costs and difficulty.
[0067] In some specific implementations, based on the aforementioned paper counting principle of determining the corresponding number of sheets based on changes in oscillation frequency caused by changes in capacitance, a multivibrator composed of a 555 timer can be used as the resonant signal generator circuit when the number of sheets to be counted is relatively small. Plates A and B are connected between the THR and CON pins of the NE555 chip as a variable capacitor. The capacitance changes caused by the number of sheets between the plates, resulting in the 555 timer outputting square waves of varying frequencies.
[0068] In a specific embodiment, in order to ensure the stability of the square wave signal light input to the subsequent main control unit, and thus ensure the accuracy and reliability of the paper counting result, refer to Figure 5 The paper counting device further includes a phase-locked loop (PLL) circuit 104, which is disposed between the shaping circuit 102 and the main control unit 103. The PLL circuit 104 is configured to lock the first square wave signal, output a second square wave signal synchronized with the first square wave signal, and input the second square wave signal to the main control unit. This allows the main control unit 103 to obtain a more accurate paper counting result based on the locked square wave signal.
[0069] In specific implementation, according to the principle of stable oscillation, it is necessary to maintain the stability of the square wave input to the main control unit. The main function of the phase-locked loop circuit is to achieve phase synchronization of two electrical signals. It is widely used in fields such as automatic control, clock synchronization, and broadcast communications. It is an automatic control closed-loop system that can achieve phase synchronization of two electrical signals. Its core function is to ensure that the frequency and phase of the output signal are consistent with the input signal. It mainly consists of three parts: a phase comparator (PC), a voltage-controlled oscillator (VCO), and a low-pass filter. The working principles of each part are as follows:
[0070] Phase comparison: The output signal of the voltage controlled oscillator is compared with the input signal to generate an error voltage.
[0071] Low-pass filtering: The error voltage is filtered through a low-pass filter to remove high-frequency components and obtain an average voltage.
[0072] VCO Adjustment: This average voltage controls the VCO so that its output frequency gradually adjusts to match the input signal frequency, thus achieving phase lock.
[0073] Specifically, refer to Figure 6 The figure shows a phase-locked loop circuit using a 74HC4046 chip. With the Wien bridge circuit's positive feedback loop gain fixed at 3x, the values of the various electronic components in the positive feedback loop can be determined and fine-tuned using simulation software. The accuracy of the subsequent paper count determination by the main control unit is primarily determined by the phase-locked loop circuit, achieved by adjusting resistors R8 and R9 and capacitor C3.
[0074] In another specific embodiment, the shaping circuit includes at least one Schmitt trigger, the input end of the at least one Schmitt trigger is connected to the output end of the Wien bridge circuit, and the output end of the at least one Schmitt trigger is connected to the main control unit.
[0075] Specifically, refer to Figure 4As shown in the figure, a shaping circuit consisting of two Schmitt triggers is used. A Schmitt trigger has two stable states and is potential-triggered, with its state maintained by the input signal potential. For input signals with different changing directions (negatively decreasing and positively increasing), the Schmitt trigger has different threshold voltages, referred to as the positive threshold voltage and the negative threshold voltage, respectively. When the input voltage increases from low to high and reaches V+, the output voltage undergoes a sudden change. Similarly, when the input voltage Vi changes from high to low and reaches V-, the output voltage undergoes a sudden change. By connecting two Schmitt triggers in series, the resulting square wave waveform is more stable and reliable.
[0076] Alternatively, a zero-crossing comparator can be used to reshape a sine wave into a square wave. The zero-crossing comparator circuit is simple to implement; simply connect one input of an integrated op amp to ground and the other to the input signal. For an inverting input zero-crossing comparator, when Vi < 0, Vo = +Vomax; when Vi > 0, Vo = -Vomin.
[0077] A hysteresis comparator can also be used as a shaping circuit. The advantage of a hysteresis comparator is that it gives the circuit a certain inertia, that is, the output voltage remains unchanged within a certain range of input voltage changes.
[0078] Compared to the two aforementioned methods, a Schmitt trigger 74HC14 is used for shaping. The Schmitt trigger circuit has two threshold voltages and forms a hysteresis region, which prevents noise within the hysteresis from interfering with the normal operation of the circuit, improving anti-interference capabilities. It can also shape the input signal into a rectangular pulse with sharp edges. The square wave shaped by the Schmitt trigger has sharp edges, making it easier for subsequent microcontroller processing.
[0079] It is understandable that those skilled in the art may also adopt other shaping schemes to shape the sine wave, and select and adjust them according to the needs of actual applications, which is not limited here.
[0080] In some specific embodiments, referring to Figure 7 As shown, the main control unit 103 includes: a main controller 1031 and a prompter 1033 and a display screen 1032 respectively connected to the main controller 1031.
[0081] The main controller 1031 is used to determine the resonant frequency of the Wien bridge circuit based on the duration of the high-level part in the first square wave signal, and determine the number of papers placed between the first electrode plate and the second electrode plate based on the correspondence between the resonant frequency and the number of papers, and control the display screen 1032 to display the said number, and control the prompter 1033 to broadcast the counting completion and the voice representing the number.
[0082] The main control unit 103 further includes a button 1034 , which is connected to the main controller 1031 and is used for starting and calibrating the count.
[0083] Specifically, the main controller can be a control chip such as a single-chip microcomputer. After the user places the paper between the two plates, he controls the main controller to count by selecting the count start button. When the counting is completed, the main controller controls the display screen to display the corresponding counting result, and can control prompters such as buzzers and speakers to prompt that the counting is completed, and can broadcast the counting results, thereby realizing the role of prompting the user auditorily and visually.
[0084] In other embodiments, to further improve the accuracy of counting results, both the first and second plates are solid metal plates. Compared to copper-clad plate structures, plates made of solid metal provide more stable frequency values, thereby improving the accuracy of subsequent counting results.
[0085] In addition, considering that the wires connecting the first electrode plate and the second electrode plate are easily affected by external interference and thus affect the circuit, the wires can be fixed with tools such as insulating tape to reduce interference.
[0086] Based on the same design idea, refer to Figure 8 As shown, an embodiment of the present application further provides a paper counting method, which is applied to the main control unit of the paper counting device described in the above embodiment, and specifically may include the following steps:
[0087] 801. Determine a resonant frequency of a Wien bridge circuit according to a duration of a high-level portion of the first square wave signal.
[0088] 802. Determine a target resonant frequency closest to the resonant frequency from the record table according to the resonant frequency, and use the target number corresponding to the target resonant frequency in the record table as the number of papers placed between the first electrode plate and the second electrode plate.
[0089] Specifically, the main controller in the main control unit uses its built-in timer to time the high-level part of the received square wave, and then obtains the corresponding resonant frequency based on the timing result. According to the resonant frequency, the target resonant frequency with the smallest error with the resonant frequency is found from the recording table, and then the target number corresponding to the target resonant frequency when recording the table is used as the obtained counting result.
[0090] To further increase the flexibility of paper counting, in some embodiments, the paper counting method may further include the following processing steps:
[0091] In response to the single-point calibration signal, the number of sheets of paper placed between the first electrode plate and the second electrode plate is obtained.
[0092] The average value of the resonant frequency of the Wien bridge circuit within the first preset time period after each insertion is collected, and the number of papers and the average value are stored in a record table in correspondence.
[0093] Specifically, users can press a button to enter single-point calibration mode. In this mode, the MCU removes the maximum and minimum values from the sampled signal and calculates the average value, minimizing signal variations caused by external interference. For example, when counting, sampling 500 signals, removing the extreme values due to interference, and taking the average value can effectively reduce errors when determining the number of sheets of paper. The number of sheets of paper and the corresponding resonant frequency values are then recorded in a table.
[0094] In addition, considering the accuracy of paper counting, in other embodiments, calibration can be performed by using a fitting curve, for example:
[0095] In response to the fitting calibration signal, obtaining the number of papers placed between the first electrode plate and the second electrode plate each time;
[0096] According to the resonant frequency of the Wien bridge circuit collected within a preset time after each insertion, a curve function is fitted, and the curve function and the number of papers are stored in a record table.
[0097] Specifically, when calibrating the fitting curve, an exponential fitting method can be used to fit the collected multiple signals to obtain a fitting curve of logT=A+B×N, and then the curve function and the corresponding paper quantity are stored in a record table for search and use.
[0098] In addition, random sampling can also be used to take the average of several collected points, and then calibrate by making an interval estimate between the average of the first point and the second point. There is no restriction here.
[0099] As a specific implementation of the above paper counting method, refer to Figure 9 As shown, the following processes may be specifically included:
[0100] After the microcontroller is powered on, it performs initialization operations, controls the display screen to display the corresponding function selection menu, and performs the corresponding processing flow according to the key value recognition selected by the user:
[0101] During single-point calibration of the key-value meter, different numbers of papers placed between the two plates can be measured to obtain measurement calibration information, and the corresponding number of papers and frequency characteristic values can be stored accordingly.
[0102] When the key value represents the paper counting, it is first determined whether there is a short circuit between the two plates. When there is no short circuit, the corresponding frequency value is obtained by reading the value of the timer. Then, the closest target frequency is obtained from the record table based on the frequency, and the number of papers corresponding to the target frequency is used as the counting result.
[0103] During the key-value characterization curve fitting calibration, the curve function is fitted in sections, and then the curve function and the corresponding paper quantity are stored.
[0104] This paper counting device and method utilizes a variable capacitor consisting of two plates connected to the frequency-selective network of a Wien bridge circuit, replacing the series capacitor. When a sheet of paper is placed between the two plates, the dielectric constant and the distance between them change, causing the capacitance to change, resulting in a change in the frequency of the oscillation waveform. The output waveform is shaped into a square wave by a shaping circuit, then frequency-multiplied by a phase-locked loop circuit and input into a single-chip microcomputer for processing. The capacitance is calculated based on the relationship between frequency and capacitance, and the number of sheets of paper can be determined. The device can detect over a hundred sheets of paper, offering advantages such as a simple structure and ease of maintenance.
[0105] An electronic device is also provided in an embodiment of the present application. Figure 10 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include but is not limited to a single chip microcomputer, an FPGA (Field-Programmable Gate Array), and the like. Figure 10 The electronic device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0106] like Figure 10 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1008 into a random access memory (RAM) 1003. When the electronic device is powered on, the RAM 1003 also stores various programs and data required for the operation of the electronic device. The processing device 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0107] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a memory card, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Figure 10 The electronic device is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.
[0108] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the paper counting methods provided in the embodiments of the present application.
[0109] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any paper counting method provided in the embodiment of the present application.
[0110] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
[0111] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special circuits, etc. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a number of instructions to enable a computer device (which can be a personal computer, training equipment, or network equipment, etc.) to execute the methods described in each embodiment of the present application.
[0112] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0113] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website, a computer, a training device or a data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
Claims
1. A paper counting device, characterized in that: include: A first electrode plate, a second electrode plate, a Wien bridge circuit, a shaping circuit and a main control unit; The first electrode plate and the second electrode plate constitute a counting capacitor which replaces the first capacitor or the second capacitor and is connected to the Wien bridge circuit. The first capacitor is the capacitor in the series branch of the resistor and the capacitor in the Wien bridge circuit, and the second capacitor is the capacitor in the parallel branch of the resistor and the capacitor in the Wien bridge circuit. The shaping circuit is used to convert the resonant signal generated by the Wien bridge circuit into a first square wave signal; The main control unit is used to determine the resonant frequency of the Wien bridge circuit based on the duration of the high-level portion of the first square wave signal, and to determine the number of papers placed between the first electrode plate and the second electrode plate based on the corresponding relationship between the resonant frequency and the number of papers.
2. The paper counting device according to claim 1, characterized in that Also includes: A phase-locked loop circuit is arranged between the shaping circuit and the main control unit, and is used to lock the first square wave signal, output a second square wave signal synchronized with the first square wave signal, and input the second square wave signal to the main control unit.
3. The paper counting device according to claim 1, characterized in that The main control unit includes: a main controller and a prompter and a display screen respectively connected to the main controller; The main controller is used to determine the resonant frequency of the Wien bridge circuit based on the duration of the high-level portion of the first square wave signal, and determine the number of papers placed between the first electrode plate and the second electrode plate based on the corresponding relationship between the resonant frequency and the number of papers, and control the display screen to display the number, and control the prompter to broadcast the counting completion and the voice representing the number.
4. The paper counting device according to claim 3, characterized in that The main control unit further includes: a button, which is connected to the main controller and is used for performing count start control and count calibration control.
5. The paper counting device according to claim 1, characterized in that The shaping circuit includes at least one Schmitt trigger, the input end of the at least one Schmitt trigger is connected to the output end of the Wien bridge circuit, and the output end of the at least one Schmitt trigger is connected to the main control unit.
6. The paper counting device according to any one of claims 1 to 5, characterized in that: Also includes: An A-type tool clamp is made of insulating material, wherein the first electrode plate and the second electrode plate are respectively arranged on two movable ends of the A-type tool clamp.
7. The paper counting device according to any one of claims 1 to 5, characterized in that: The first electrode plate and the second electrode plate are both solid metal plates made of metal materials.
8. A paper counting method, applied to a main control unit of a paper counting device according to any one of claims 1 to 7, characterized in that: include: Determining the resonant frequency of the Wien bridge circuit according to the duration of the high level portion of the first square wave signal; According to the resonant frequency, a target resonant frequency closest to the resonant frequency is determined from the record table, and the target number corresponding to the target resonant frequency in the record table is used as the number of papers placed between the first electrode plate and the second electrode plate.
9. The paper counting method according to claim 8, characterized in that: Also includes: In response to a single-point calibration signal, obtaining the number of sheets of paper placed between the first electrode plate and the second electrode plate each time; The average value of the resonant frequency of the Wien bridge circuit within the first preset time period after each insertion is collected, and the number of sheets of paper and the average value are stored in the record table in correspondence.
10. The paper counting method according to claim 8, characterized in that: Also includes: In response to the fitting calibration signal, obtaining the number of papers placed between the first electrode plate and the second electrode plate each time; A curve function is fitted based on the resonant frequency of the Wien bridge circuit collected within a preset time after each insertion, and the curve function and the number of sheets of paper are stored in the record table.