CN110598829A - Paper quantity detection method and device - Google Patents

Paper quantity detection method and device Download PDF

Info

Publication number
CN110598829A
CN110598829A CN201910869606.1A CN201910869606A CN110598829A CN 110598829 A CN110598829 A CN 110598829A CN 201910869606 A CN201910869606 A CN 201910869606A CN 110598829 A CN110598829 A CN 110598829A
Authority
CN
China
Prior art keywords
pin
value
frequency
paper
chip
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
CN201910869606.1A
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.)
Xian University of Science and Technology
Original Assignee
Xian University of Science and Technology
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 Xian University of Science and Technology filed Critical Xian University of Science and Technology
Priority to CN201910869606.1A priority Critical patent/CN110598829A/en
Publication of CN110598829A publication Critical patent/CN110598829A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M7/00Counting of objects carried by a conveyor
    • G06M7/02Counting of objects carried by a conveyor wherein objects ahead of the sensing element are separated to produce a distinct gap between successive objects
    • G06M7/06Counting of flat articles, e.g. of sheets of paper

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

The invention discloses a paper quantity detection method and a device, when paper to be detected is placed between an anode plate and a cathode plate, a frequency value between the anode plate and the cathode plate is obtained; calculating the number of the paper sheets to be detected according to the frequency value; wherein, the calculation method is a pre-stored calculation method; according to the device, according to the measurement of the capacitance values of different amounts of paper placed between the positive pole plate and the negative pole plate, the capacitance values are converted into frequency values through the LC oscillating circuit in the FDC2214 capacitance detection sensor and are output, and the amount of the paper to be measured is calculated according to a pre-stored calculation method.

Description

Paper quantity detection method and device
[ technical field ] A method for producing a semiconductor device
The invention belongs to the technical field of paper quantity detection, and particularly provides a paper quantity detection method and device.
[ background of the invention ]
Paper is a generic term for paper, and is counted in sheets. The paper is typically letterpress, newsprint, offset, coated, book cover, dictionary, copy, board, etc. In any type of paper, the measurement of the number of sheets is required in actual production.
The existing paper quantity detection device mostly adopts a camera to collect and process images, and in the paper counting detection device, the processing speed of a processor is generally high, so that the paper quantity can be quickly measured. However, in such a mode, the processor cost is high, the power consumption of the camera is high, and the paper detection device is complex in structure, large in size, high in manufacturing cost, not beneficial to daily maintenance and overhaul, not beneficial to environmental protection and energy conservation.
[ summary of the invention ]
The invention aims to provide a paper quantity detection method and a paper quantity detection device.
The invention adopts the following technical scheme: the paper quantity detection method comprises the following steps:
when the paper to be detected is placed between the positive pole plate and the negative pole plate, obtaining a frequency value between the positive pole plate and the negative pole plate;
calculating the number of the paper sheets to be detected according to the frequency value; the calculation method is a pre-stored calculation method, and the pre-stored calculation method specifically comprises the following steps:
comparing the frequency value with a prestored frequency value in a prestored frequency comparison table; wherein, the frequency values in the frequency comparison table are sorted according to the magnitude sequence;
when the frequency value is more than or equal to the smaller value of the two adjacent frequency values in the prestored frequency comparison table and is less than or equal to the larger value of the two adjacent frequency values, acquiring a numerical value corresponding to the smaller value and the larger value; wherein, the smaller value corresponds to two values, and the larger value corresponds to two values;
and selecting two values corresponding to the smaller value and the repetition value of the two values corresponding to the larger value to obtain the number of the paper to be detected.
Further, the generation method of the pre-stored frequency comparison table comprises the following steps:
respectively obtaining frequency values between the positive pole plate and the negative pole plate for N times when different amounts of paper are put between the positive pole plate and the negative pole plate;
calculating a first average value of N times of frequency values obtained when the same number of paper sheets to be detected are placed between the positive pole plate and the negative pole plate;
calculating two first mean values when the difference between the number of the paper sheets to be detected is 1 to obtain a second mean value;
generating a fitting function according to the second mean value, and generating a prestored frequency comparison table according to the fitting function; the pre-stored frequency comparison table comprises a plurality of groups of data, and each group of data comprises a frequency value and two paper quantity values.
The other technical scheme of the invention is as follows: a paper quantity detection device comprising:
the first acquisition module is used for acquiring a frequency value between the positive pole plate and the negative pole plate when the paper to be detected is placed between the positive pole plate and the negative pole plate;
the first calculation module is used for calculating the number of the paper to be detected according to the frequency value; wherein, the calculation method is a pre-stored calculation method; the calculation module comprises:
the comparison unit is used for comparing the frequency value with a prestored frequency value in a prestored frequency comparison table; wherein, the frequency values in the frequency comparison table are sorted according to the magnitude sequence;
the acquiring unit is used for acquiring a numerical value corresponding to a smaller value and a larger value when the frequency value is greater than or equal to the smaller value of the two adjacent frequency values in the prestored frequency comparison table and is less than or equal to the larger value of the two adjacent frequency values; wherein, the smaller value corresponds to two values, and the larger value corresponds to two values;
and the selection unit is used for selecting the repetition number value of the two values corresponding to the smaller value and the two values corresponding to the larger value to obtain the number of the paper to be detected.
Further, the generating device of the pre-stored frequency comparison table is as follows:
the second acquisition module is used for respectively acquiring frequency values between the positive pole plate and the negative pole plate for N times when different numbers of paper are respectively put between the positive pole plate and the negative pole plate;
the second calculation module is used for calculating a first average value of N frequency values obtained when the same number of paper sheets to be detected are placed between the positive pole plate and the negative pole plate;
the third calculation module is used for calculating two first mean values when the difference between the number of the paper sheets to be measured is 1 to obtain a second mean value;
the generating module is used for generating a fitting function according to the second average value and generating a pre-stored frequency comparison table according to the fitting function; the pre-stored frequency comparison table comprises a plurality of groups of data, and each group of data comprises a frequency value and two paper quantity values.
The other technical scheme of the invention is as follows: the paper quantity detection device comprises two oppositely arranged polar plates for accommodating a plurality of pieces of paper to be detected, the two polar plates are respectively connected to two ends of the same capacitance sensor, and the data of the capacitance sensor is connected to the processor; the processor is used for running a program, and when the program runs, the paper quantity detection method is executed;
the capacitance sensor is used for measuring the frequency value between the two polar plates when the paper to be measured is placed between the positive polar plate and the negative polar plate, and sending the frequency value to the processor;
the processor is used for acquiring a frequency value between the positive electrode plate and the negative electrode plate and calculating the number of the paper to be detected according to the frequency value; wherein, the calculation method is a pre-stored calculation method.
Further, the processor comprises an STM32F103RET6 chip and peripheral circuits thereof, and fifty-eight pins and fifty-nine pins of the STM32F103RET6 chip are connected with the data output section of the capacitive sensor.
Further, the capacitive sensor includes an FDC2214 signal conversion chip and peripheral circuits thereof;
the first pin of the FDC2214 signal conversion chip is connected with the fifty-eighth pin of the STM32F103RET6 chip;
the second pin of the FDC2214 signal conversion chip is connected with the fifty-ninth pin of the STM32F103RET6 chip;
a third pin of the FDC2214 signal conversion chip is connected with an output pin of a crystal oscillator with the frequency of 40 MHz;
the seventh pin of the FDC2214 signal conversion chip is connected with + 3.3V;
the eighth pin and the seventeenth pin of the FDC2214 signal conversion chip are grounded;
the ninth pin and the tenth pin of the FDC2214 signal conversion chip are ports of a channel 0, two groups of two capacitors connected in series are firstly connected in parallel between the two ports, then connected with an inductor L4 in parallel, and then connected with a capacitor C17 in parallel;
the ninth pin of the FDC2214 signal conversion chip is also connected with the positive electrode plate, and the tenth pin of the FDC2214 signal conversion chip is also connected with the negative electrode plate;
the eleventh pin and the twelfth pin of the FDC2214 signal conversion chip are ports of a channel 1, two groups of capacitors connected in series are connected in parallel between the two ports, then the two groups of capacitors are connected with an inductor L3 in parallel, and then the two groups of capacitors are connected with a capacitor C15 in parallel;
the thirteenth pin and the fourteenth pin of the FDC2214 signal conversion chip are ports of a channel 2, two groups of capacitors connected in series are connected in parallel between the two ports, then the two groups of capacitors are connected with an inductor L2 in parallel, and then the two groups of capacitors are connected with a capacitor C10 in parallel;
the fifteenth pin and the sixteenth pin of the FDC2214 signal conversion chip are ports of a channel 3, two groups of two capacitors connected in series are connected in parallel between the two ports, and then the two groups of capacitors are connected with an inductor L1 in parallel and then connected with a capacitor C7 in parallel.
Further, the STM32F103RET6 chip is also connected with a display circuit, and the display circuit is used for displaying the number of the paper sheets to be tested; the display circuit comprises an OLED12864 display chip and peripheral circuits thereof;
the eighteenth pin of the OLED12864 display chip is connected with the thirty-fourth pin of the STM32F103RET6 chip;
the nineteenth pin of the OLED12864 display chip is connected with the thirty-sixth pin of the STM32F103RET6 chip;
the fourteenth pin of the OLED12864 display chip is connected with the twenty-fifth pin of the STM32F103RET6 chip;
the fifteenth pin of the OLED12864 display chip is connected with the thirty-seventh pin of the STM32F103RET6 chip;
the thirteenth pin of the OLED12864 display chip is connected with the thirty-eighth pin of the STM32F103RET6 chip;
further, the STM32F103RET6 chip is also connected with a key circuit, which includes keys S1 and S2 connected to the fifteenth pin and the sixteenth pin of the STM32F103RET6 chip, respectively.
The invention has the beneficial effects that: according to the device, according to the measurement of the capacitance values of different amounts of paper placed between the positive pole plate and the negative pole plate, the capacitance values are converted into frequency values through the LC oscillating circuit in the FDC2214 capacitance detection sensor and are output, and the amount of the paper to be measured is calculated according to a pre-stored calculation method.
[ description of the drawings ]
FIG. 1 is a schematic diagram of a sheet counting apparatus in an embodiment of the present invention;
FIG. 2 is a circuit schematic of a processor in an embodiment of the invention;
FIG. 3 is a schematic circuit diagram of an FDC2214 signal conversion module in an embodiment of the invention;
FIG. 4 is a schematic diagram of the peripheral circuitry of the FDC2214 signal conversion module in an embodiment of the present invention;
FIG. 5 is a schematic circuit diagram of a display circuit according to an embodiment of the present invention;
FIG. 6 is a schematic circuit diagram of a keyboard module in an embodiment of the present invention;
FIG. 7 is a flowchart illustrating operation of the sheet counting device in an embodiment of the present invention;
FIG. 8 is a flow chart of sheet counting according to an embodiment of the present invention;
FIG. 9 is a generated data statistical chart of a pre-stored frequency comparison table according to an embodiment of the present invention;
FIG. 10 is a graph of the data measured in FIG. 9 after fitting.
[ detailed description ] embodiments
The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention discloses a paper quantity detection method, which comprises the following steps as shown in figure 8:
when paper to be detected is placed between the positive pole plate and the negative pole plate, the frequency value between the positive pole plate and the negative pole plate is obtained, because the FDC2214 capacitance sensor is adopted in the embodiment of the invention, the inside of the sensor is based on the LC oscillation circuit principle, when the paper approaches a pole plate sensing plane, the capacitance value detected by the sensor changes, the LC oscillation frequency changes, and further the frequency value is obtained, and the frequency value can be specifically usedThe formula is converted. Calculating the number of the paper sheets to be detected according to the frequency value; wherein, the calculation method is a pre-stored calculation method.
According to the embodiment, according to the measurement of the capacitance values of different amounts of paper placed between the positive electrode plate and the negative electrode plate, the capacitance values are converted into frequency values through the LC oscillating circuit in the FDC2214 capacitance detection sensor and are output, and the amount of the paper to be detected can be calculated according to a pre-stored calculation method.
During testing, after the tested number of paper sheets is put in, the one-key test key is pressed, and the number of the test paper sheets is displayed by the OLED after the test prompt is finished.
The calculation method pre-stored in the embodiment of the invention specifically comprises the following steps:
comparing the frequency value with a prestored frequency value in a prestored frequency comparison table; wherein, the frequency values in the frequency comparison table are sorted according to the magnitude sequence.
When the frequency value is more than or equal to the smaller value of the two adjacent frequency values in the prestored frequency comparison table and is less than or equal to the larger value of the two adjacent frequency values, acquiring a numerical value corresponding to the smaller value and the larger value; wherein, the smaller value corresponds to two values, and the larger value corresponds to two values.
And selecting two values corresponding to the smaller value and the repetition value of the two values corresponding to the larger value to obtain the number of the paper to be detected.
By the calculation method, the frequency values in the pre-stored frequency comparison table are obtained by calculating the average value corresponding to the adjacent frequency values, and the frequency values are compared with the measured frequency values, so that the comparison result is more accurate.
In addition, the calculation may be performed by other calculation methods, for example, by directly comparing the measurement frequency value with the frequency value corresponding to each paper sheet number, and selecting the paper sheet number corresponding to the closest frequency value as the paper sheet number to be measured.
The generation method of the pre-stored frequency comparison table in the embodiment of the invention comprises the following steps:
respectively obtaining frequency values between the positive pole plate and the negative pole plate for N times when different amounts of paper are put between the positive pole plate and the negative pole plate;
calculating a first average value of N times of frequency values obtained when the same number of paper sheets to be detected are placed between the positive pole plate and the negative pole plate;
calculating two first mean values when the difference between the number of the paper sheets to be detected is 1 to obtain a second mean value;
generating a fitting function according to the second mean value, and generating a prestored frequency comparison table according to the fitting function; the pre-stored frequency comparison table comprises a plurality of groups of data, and each group of data comprises a frequency value and two paper quantity values.
By the method for generating the pre-stored frequency comparison table, frequency values corresponding to each paper quantity are not required to be acquired, only frequency values corresponding to part of the paper quantities are required to be acquired, fitting is carried out through the frequency values to generate a fitting function, and according to the function, a corresponding value of any frequency and the paper quantity can be obtained, so that the corresponding pre-stored frequency comparison table can be obtained. The method can reduce the measurement times of generating the pre-stored frequency comparison table, and can enable the obtained frequency value and the corresponding paper quantity to be more accurate through a scientific fitting function.
In this embodiment, as shown in fig. 9, the x-axis is the number of acquisitions and the y-axis is the frequency value of the acquisitions. In the series 1, the frequency values of 0-10 sheets of paper are tested, after each sheet of paper is placed, the single chip microcomputer is controlled to acquire 18 times of data and calculate the average value, and the capacitance value of 0 sheet of paper is the minimum according to the calculation formula of the resonance frequency, so that the resonance frequency change caused by the capacitance value change along with the increase of the number can be obtained from the graph. The principle of the series 2 is the same as that of the series 1, and the only difference is that the collection times are more when one piece of paper is put into the series 2; by comparison, the series 1 has better effect, so the scheme of the series 1 is adopted.
From the above measurement data, a fitting curve as shown in fig. 10 is generated, in which the x-axis is the number of sheets and the y-axis is the corresponding average value of the frequency. When in testing, the measured frequency value is calculated according to an algorithm, and then the current paper quantity can be obtained.
For example: when 5 sheets of paper are tested, the calculated frequency value is a, the frequency value of 4 sheets of paper can be obtained according to the fitting curve and is m, the frequency value of 5 sheets of paper can be learned is n, and the frequency value of 6 sheets of paper can be learned is o. If: (m + n)/2. ltoreq. a.ltoreq.n + o)/2, and the number of 5 sheets placed at this time is judged.
In this embodiment, the number of the paper sheets put in the pre-stored frequency comparison table is 1-30 °, a one-key learning key is pressed after each time of putting, the next paper sheet is put in after the completion of the prompt learning, and the pre-stored frequency comparison table can be generated by the method after the completion of all the 30 paper sheets.
It should be noted that, in the embodiment of the present invention, the measured frequency value is filtered, the processed data is sampled after the varied and abnormal data is removed, and then the sampled data is filtered again, and then the optimal curve fitting is performed. And a real variation difference value optimization algorithm is adopted, and the algorithm filters out the value with larger deviation in the measured data, so that the residual values are analyzed and processed, the system error is prevented, the precision is improved, and the interference of the noise is reduced. After self-calibration, the capacitance value of each test is in an interval, certain errors can be generated after function fitting, and the least square method is adopted for processing.
Another embodiment of the present invention discloses a paper quantity detection apparatus, including:
the first acquisition module is used for acquiring the frequency value between the positive pole plate and the negative pole plate when the paper to be detected is placed between the positive pole plate and the negative pole plate.
The first calculation module is used for calculating the number of the paper to be detected according to the frequency value; wherein, the calculation method is a pre-stored calculation method. The calculation module comprises:
the comparison unit is used for comparing the frequency value with a prestored frequency value in a prestored frequency comparison table; wherein, the frequency values in the frequency comparison table are sorted according to the magnitude sequence.
The acquiring unit is used for acquiring a numerical value corresponding to a smaller value and a larger value when the frequency value is greater than or equal to the smaller value of the two adjacent frequency values in the prestored frequency comparison table and is less than or equal to the larger value of the two adjacent frequency values; wherein, the smaller value corresponds to two values, and the larger value corresponds to two values.
And the selection unit is used for selecting the repetition number value of the two values corresponding to the smaller value and the two values corresponding to the larger value to obtain the number of the paper to be detected.
In the embodiment of the invention, the detection of the number of the paper sheets to be detected can be realized through the first acquisition module and the first calculation module, the device is simple, excessive hardware support is not required, the cost of the device is reduced, and the volume of the device is reduced.
In addition, the generating device of the pre-stored frequency comparison table in the embodiment is as follows:
and the second acquisition module is used for respectively acquiring the frequency values between the positive polar plate and the negative polar plate for N times when different amounts of paper are put between the positive polar plate and the negative polar plate.
And the second calculation module is used for calculating a first average value of N times of frequency values obtained when the same number of paper sheets to be detected are placed between the positive electrode plate and the negative electrode plate.
And the third calculating module is used for calculating two first average values when the difference between the number of the paper sheets to be measured is 1 to obtain a second average value.
The generating module is used for generating a fitting function according to the second average value and generating a pre-stored frequency comparison table according to the fitting function; the pre-stored frequency comparison table comprises a plurality of groups of data, and each group of data comprises a frequency value and two paper quantity values.
The invention also discloses another paper quantity detection device, which comprises two oppositely arranged polar plates for accommodating a plurality of papers to be detected, wherein the two polar plates are respectively connected to two ends of the same capacitance sensor, and the data of the capacitance sensor is connected to a processor; the processor is used for running a program, and when the program runs, the paper quantity detection method is executed. The capacitance sensor is used for measuring the frequency value between the two polar plates when the paper to be measured is placed between the positive polar plate and the negative polar plate, and sending the frequency value to the processor. The processor is used for acquiring a frequency value between the positive electrode plate and the negative electrode plate and calculating the number of the paper to be detected according to the frequency value; wherein, the calculation method is a pre-stored calculation method. The operation process of the device in this embodiment is as shown in fig. 7, and the device self-detects whether to start the detection key or not, detects the number of the paper to be detected after the detection key is started, performs the buzzer alarm and the OLED display device display once, and ends at last.
In the embodiment, the device only needs the processor, the capacitance sensor and the two polar plates to carry out data connection on the two polar plates, and can realize the detection of the number of the paper sheets without auxiliary equipment such as a camera and the like, so that the cost of the device is reduced, the quality of the device is reduced, and the volume of the device is reduced.
As shown in fig. 1, the capacitive sensor in this embodiment is made using an FDC2214 signal conversion module that has high resolution, non-contact characteristics. Compared with other capacitive sensing modules, the capacitive sensing module has stronger anti-interference performance and greatly reduces noise. The 28-bit precision signal conversion chip for short-range sensing has strong anti-interference performance and high precision. The capacitance digital converter has an analog-to-digital conversion function, and eliminates errors generated when a microcontroller directly reads an analog signal. However, since the capacitive sensor is sensitive, slight vibration and slight change of the peripheral magnetic field still affect the capacitive sensor, so that the capacitive sensor outputs noise waves.
Texas instruments incorporated introduced the FDC221X family of products that may not be affected by environmental noise from radios, power supplies, lighting, and motors. The FDC2214 series provides a 60-fold improvement in performance in the presence of noise compared to existing capacitive sensing solutions. Therefore, human body and object sensing based on a low-cost capacitance mode can be realized in any environment. These entirely new devices introduce the advantages of capacitive sensing into applications that previously relied on other sensing technologies, with better appearance, lower system cost, and higher reliability solutions.
The capacitance digital converter has an analog-to-digital conversion function, and eliminates errors generated when a microcontroller directly reads an analog signal. However, since the capacitive sensor is sensitive, slight vibration and slight change of the peripheral magnetic field still affect the capacitive sensor, so that the capacitive sensor outputs noise waves. And a real variation difference value optimization algorithm is adopted, and the algorithm filters out the value with larger deviation in the measured data, so that the residual values are analyzed and processed, the system error is prevented, the precision is improved, and the interference of the noise is reduced.
As shown in fig. 2, the single chip microcomputer is composed of an STM32F103RET6 chip and its peripheral circuits, and is additionally provided with a display screen, a buzzer and an external keyboard module made of an OLED display module. The display screen is used for displaying the measured paper quantity, and the buzzer is used for giving out prompt tones when the detection is finished to prompt that the detection is finished. The external keyboard module is two, and one is used for detecting and starting after the paper to be detected is placed, and the other is used as a starting key for generating a pre-stored frequency comparison table.
The STM32 singlechip is used as a control core, and the power module supplies power to the whole device; after the key is pressed down, the STM32 single chip microcomputer obtains the capacitance value between two polar plates, and FDC2214 signal conversion module converts the capacitance value into the frequency test value and returns to STM32 single chip microcomputer, and the single chip microcomputer calculates the paper quantity according to the frequency value to control the buzzer to make a sound, OLED screen display calculation result.
The processor in the embodiment comprises an STM32F103RET6 chip and peripheral circuits thereof, and fifty-eight pins and fifty-nine pins of the STM32F103RET6 chip are connected with a data output section of the capacitive sensor.
The capacitive sensor in the embodiment comprises an FDC2214 signal conversion chip and peripheral circuits thereof. As shown in fig. 3, a schematic diagram of an FDC2214 signal conversion chip site circuit is presented. As shown in fig. 4, a circuit schematic diagram of the FDC2214 signal conversion chip and its peripheral circuits is given. In the figure, inductors L1, L2, L3, and L4 are all set to 100uH, and capacitors C7, C10, C15, and C17 are all set to 33 pF.
The first pin of the FDC2214 signal conversion chip is connected with the fifty-eighth pin of the STM32F103RET6 chip; the second pin of the FDC2214 signal conversion chip is connected with the fifty-ninth pin of the STM32F103RET6 chip; the first pin and the second pin of the FDC2214 signal conversion chip can be connected through I2The C communication protocol sends the collected signals to an STM32F103RET6 chip.
And the third pin of the FDC2214 signal conversion chip is connected with an output pin of a crystal oscillator with the frequency of 40 MHz. The seventh pin of the FDC2214 signal conversion chip is connected with + 3.3V; the eighth pin and the seventeenth pin of the FDC2214 signal conversion chip are grounded.
The ninth pin and the tenth pin of the FDC2214 signal conversion chip are ports of a channel 0, two groups of two capacitors connected in series are firstly connected in parallel between the two ports, then connected with an inductor L4 in parallel, and then connected with a capacitor C17 in parallel; the ninth pin of the FDC2214 signal conversion chip is also connected with the positive electrode plate, and the tenth pin of the FDC2214 signal conversion chip is also connected with the negative electrode plate for measuring the capacitance value between the electrode plates.
The eleventh pin and the twelfth pin of the FDC2214 signal conversion chip are ports of a channel 1, two groups of capacitors connected in series are connected in parallel between the two ports, then the two groups of capacitors are connected with an inductor L3 in parallel, and then the two groups of capacitors are connected with a capacitor C15 in parallel;
the thirteenth pin and the fourteenth pin of the FDC2214 signal conversion chip are ports of a channel 2, two groups of capacitors connected in series are connected in parallel between the two ports, then the two groups of capacitors are connected with an inductor L2 in parallel, and then the two groups of capacitors are connected with a capacitor C10 in parallel;
the fifteenth pin and the sixteenth pin of the FDC2214 signal conversion chip are ports of a channel 3, two groups of two capacitors connected in series are connected in parallel between the two ports, and then the two groups of capacitors are connected with an inductor L1 in parallel and then connected with a capacitor C7 in parallel.
In the embodiment, the STM32F103RET6 chip is further connected with a display circuit, and the display circuit is used for displaying the number of the paper sheets to be tested; as shown in fig. 5, the display circuit includes an OLED12864 display chip and its peripheral circuits.
The eighteenth pin of the OLED12864 display chip is connected with the thirty-fourth pin of the STM32F103RET6 chip;
the nineteenth pin of the OLED12864 display chip is connected with the thirty-sixth pin of the STM32F103RET6 chip;
the fourteenth pin of the OLED12864 display chip is connected with the twenty-fifth pin of the STM32F103RET6 chip;
the fifteenth pin of the OLED12864 display chip is connected with the thirty-seventh pin of the STM32F103RET6 chip;
the OLED12864 shows that the thirteenth pin of the chip is connected with the thirty-eighth pin of the STM32F103RET6 chip.
In the embodiment, the OLED screen is controlled by a pin of an STM32F103RET6 chip, and the number of sheets is displayed.
In this embodiment, the STM32F103RET6 chip is further connected to a key circuit, as shown in fig. 6, the key circuit includes keys S1 and S2, which are respectively connected to the fifteenth pin and the sixteenth pin of the STM32F103RET6 chip. Pressing the button S1 completes self-calibration, i.e., generates a pre-stored frequency map. Pressing the key S2 completes the test function, i.e., measuring the number of sheets to be tested.
Watch 1
Number of tests 1 2 3 4 5
Actual number of sheets 5 7 3 1 9
Number of sheets measured 5 7 3 1 9
Time used/s 3.9 4.2 4.4 3.7 4.1
Watch two
Number of tests 1 2 3 4 5
Actual number of sheets 15 17 20 25 30
Number of sheets measured 15 17 20 25 30
Time used/s 3.9 4.4 4.1 3.8 4.3
Watch III
Number of tests 1 2 3 4 5
Actual number of sheets 33 35 40 45 50
Number of sheets measured 33 35 40 45 49
Time used/s 4.1 4.4 3.7 4.1 4.0
The paper measurement data in the embodiment of the table I, the table II and the table III are shown above, and it can be seen from the measurement data of the three tables that the paper quantity detection device can test the quantity of the paper between the pole plates within 5s, and the test result is accurate.
The device utilizes FDC2214 through I2The C interface communicates with STM32 to can be comparatively accurately convert the analog signal that the sensor gathered into digital information and transmit for the singlechip, make the capacitance value between the measuring polar plate more accurate. Meanwhile, the capacitive sensor is sensitive, and both slight vibration and slight change of a peripheral magnetic field can influence the capacitive sensor, so that clutter is output, the precision is improved by adopting a real variance difference value optimization algorithm, and the interference of the clutter is reduced. The hardware structure is built reasonably, but relative movement between the upper polar plate and the lower polar plate can lead to the relative area of the polar plates to be reduced, errors possibly exist in capacitance values between the polar plates, a more precise measuring instrument can be used, the relative area between the polar plates is optimized as far as possible, the influence of the errors on the device is reduced, and the paper counting performance index is better realized.
The length of the paper counting and detecting device is 40cm, the width of the paper counting and detecting device is 35cm, and the height of the paper counting and detecting device is 20cm, while the volume of the existing paper counting and detecting device is at least two times larger than that of the paper counting and detecting device, so that the carrying difficulty is reduced, and the occupied storage area of the paper counting and detecting device is also reduced. In terms of cost, the device of the embodiment only needs 500 yuan, and the existing paper counting detection device is from 2000 yuan to 10000 yuan, which undoubtedly increases the economic burden. In terms of power consumption, the embodiment of the invention is based on the low-carbon and energy-saving starting point advocated by the state, and adopts a low-power consumption product FDC2214 of TI company and a low-power consumption display OLED which is at least 5-10 times lower than the power consumption of the existing paper counting detection device.

Claims (9)

1. The paper quantity detection method is characterized by comprising the following steps:
when the paper to be detected is placed between the positive pole plate and the negative pole plate, obtaining a frequency value between the positive pole plate and the negative pole plate;
calculating the number of the paper sheets to be detected according to the frequency value; the calculation method is a pre-stored calculation method, and the pre-stored calculation method specifically comprises the following steps:
comparing the frequency value with a prestored frequency value in a prestored frequency comparison table; the frequency values in the frequency comparison table are sorted according to the magnitude sequence;
when the frequency value is more than or equal to the smaller value of two adjacent frequency values in the prestored frequency comparison table and is less than or equal to the larger value of the two adjacent frequency values, acquiring a numerical value corresponding to the smaller value and the larger value; wherein, the smaller value corresponds to two values, and the larger value corresponds to two values;
and selecting the two numerical values corresponding to the smaller value and the repetition number value in the two numerical values corresponding to the larger value to obtain the number of the paper to be detected.
2. The method for detecting the number of paper sheets according to claim 1, wherein the pre-stored frequency comparison table is generated by a method comprising the following steps:
when different amounts of paper are put between the positive pole plate and the negative pole plate respectively, frequency values between the positive pole plate and the negative pole plate are obtained for N times respectively;
calculating a first average value of the frequency values obtained N times when the same number of paper sheets to be detected are placed between the positive pole plate and the negative pole plate;
calculating two first mean values when the difference between the number of the paper sheets to be detected is 1 to obtain a second mean value;
generating a fitting function according to the second mean value, and generating the pre-stored frequency comparison table according to the fitting function; the pre-stored frequency comparison table comprises a plurality of groups of data, and each group of data comprises a frequency value and two paper quantity values.
3. A paper quantity detection device is characterized by comprising:
the first acquisition module is used for acquiring a frequency value between the positive pole plate and the negative pole plate when the paper to be detected is placed between the positive pole plate and the negative pole plate;
the first calculation module is used for calculating the number of the paper to be detected according to the frequency value; wherein, the calculation method is a pre-stored calculation method; the calculation module comprises:
the comparison unit is used for comparing the frequency value with a prestored frequency value in a prestored frequency comparison table; the frequency values in the frequency comparison table are sorted according to the magnitude sequence;
the obtaining unit is used for obtaining a numerical value corresponding to a smaller value and a larger value when the frequency value is greater than or equal to the smaller value of two adjacent frequency values in the prestored frequency comparison table and is less than or equal to the larger value of the two adjacent frequency values; wherein, the smaller value corresponds to two values, and the larger value corresponds to two values;
and the selecting unit is used for selecting the repetition number value of the two numerical values corresponding to the smaller value and the larger value to obtain the number of the paper to be detected.
4. The paper quantity detection device according to claim 3, wherein the generating device of the pre-stored frequency comparison table is:
the second acquisition module is used for respectively acquiring frequency values between the positive pole plate and the negative pole plate for N times when different numbers of paper are respectively put between the positive pole plate and the negative pole plate;
the second calculation module is used for calculating a first average value of the frequency values obtained N times when the same number of paper sheets to be detected are placed between the positive pole plate and the negative pole plate;
the third calculation module is used for calculating two first mean values when the difference between the number of the paper sheets to be measured is 1 to obtain a second mean value;
the generating module is used for generating a fitting function according to the second mean value and generating the pre-stored frequency comparison table according to the fitting function; the pre-stored frequency comparison table comprises a plurality of groups of data, and each group of data comprises a frequency value and two paper quantity values.
5. The paper quantity detection device is characterized by comprising two oppositely arranged polar plates for accommodating a plurality of pieces of paper to be detected, wherein the two polar plates are respectively connected to two ends of the same capacitive sensor, and the data of the capacitive sensor is connected to a processor; wherein the processor is configured to execute a program that executes to execute the paper quantity detection method according to claim 1 or 2;
the capacitance sensor is used for measuring a frequency value between the two polar plates when paper to be measured is placed between the positive polar plate and the negative polar plate, and sending the frequency value to the processor;
the processor is used for acquiring a frequency value between the positive pole plate and the negative pole plate and calculating the number of paper sheets to be detected according to the frequency value; wherein, the calculation method is a pre-stored calculation method.
6. The sheet quantity detection apparatus according to claim 5, wherein the processor includes an STM32F103RET6 chip and its peripheral circuits, and fifty-eight and fifty-nine pins of the STM32F103RET6 chip are connected to the data output section of the capacitance sensor.
7. The paper quantity detecting apparatus of claim 5, wherein the capacitance sensor includes an FDC2214 signal conversion chip and its peripheral circuits;
a first pin of the FDC2214 signal conversion chip is connected with a fifty-eighth pin of the STM32F103RET6 chip;
the second pin of the FDC2214 signal conversion chip is connected with the fifty-ninth pin of the STM32F103RET6 chip;
a third pin of the FDC2214 signal conversion chip is connected with an output pin of a crystal oscillator with the frequency of 40 MHz;
a seventh pin of the FDC2214 signal conversion chip is connected with + 3.3V;
the eighth pin and the seventeenth pin of the FDC2214 signal conversion chip are grounded;
the ninth pin and the tenth pin of the FDC2214 signal conversion chip are ports of a channel 0, two groups of capacitors connected in series are firstly connected in parallel between the two ports, then connected with an inductor L4 in parallel, and then connected with a capacitor C17 in parallel;
the ninth pin of the FDC2214 signal conversion chip is also connected with the positive electrode plate, and the tenth pin of the FDC2214 signal conversion chip is also connected with the negative electrode plate;
the eleventh pin and the twelfth pin of the FDC2214 signal conversion chip are ports of a channel 1, two groups of capacitors connected in series are connected in parallel between the two ports, then the two groups of capacitors are connected in parallel with an inductor L3, and then the two groups of capacitors are connected in parallel with a capacitor C15;
the thirteenth pin and the fourteenth pin of the FDC2214 signal conversion chip are ports of a channel 2, two groups of capacitors connected in series are connected in parallel between the two ports, and then the two groups of capacitors are connected in parallel with an inductor L2 and a capacitor C10;
the fifteenth pin and the sixteenth pin of the FDC2214 signal conversion chip are ports of a channel 3, two groups of capacitors connected in series are connected in parallel between the two ports, and then the two groups of capacitors are connected in parallel with an inductor L1 and a capacitor C7.
8. The paper quantity detection device according to claim 6, wherein the STM32F103RET6 chip is further connected with a display circuit, and the display circuit is used for displaying the quantity of the paper to be detected; the display circuit comprises an OLED12864 display chip and peripheral circuits thereof;
the eighteenth pin of the OLED12864 display chip is connected with the thirty-fourth pin of the STM32F103RET6 chip;
a nineteenth pin of the OLED12864 display chip is connected with a thirty-sixth pin of the STM32F103RET6 chip;
the fourteenth pin of the OLED12864 display chip is connected with the twenty-fifth pin of the STM32F103RET6 chip;
the fifteenth pin of the OLED12864 display chip is connected with the thirty-seventh pin of the STM32F103RET6 chip;
the OLED12864 shows that the thirteenth pin of the chip is connected with the thirty-eighth pin of the STM32F103RET6 chip.
9. The sheet count sensing device of claim 6, wherein a keying circuit is further connected to the STM32F103RET6 chip, the keying circuit including keys S1 and S2 connected to the fifteenth pin and the sixteenth pin, respectively, of the STM32F103RET6 chip.
CN201910869606.1A 2019-09-16 2019-09-16 Paper quantity detection method and device Pending CN110598829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910869606.1A CN110598829A (en) 2019-09-16 2019-09-16 Paper quantity detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910869606.1A CN110598829A (en) 2019-09-16 2019-09-16 Paper quantity detection method and device

Publications (1)

Publication Number Publication Date
CN110598829A true CN110598829A (en) 2019-12-20

Family

ID=68859541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910869606.1A Pending CN110598829A (en) 2019-09-16 2019-09-16 Paper quantity detection method and device

Country Status (1)

Country Link
CN (1) CN110598829A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110991599A (en) * 2019-12-28 2020-04-10 中原工学院 Paper counting display device
CN111126546A (en) * 2020-01-13 2020-05-08 惠州学院 Paper page number detection method and system and capacitance frequency conversion circuit
CN111797965A (en) * 2020-06-01 2020-10-20 宁波大学科学技术学院 Paper quantity detection method, system, terminal and storage medium thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0086097A1 (en) * 1982-02-04 1983-08-17 Watkiss Automation Limited Detecting apparatus and method
CN103363887A (en) * 2012-04-11 2013-10-23 北京华夏聚龙自动化股份公司 Novel material thickness measuring method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0086097A1 (en) * 1982-02-04 1983-08-17 Watkiss Automation Limited Detecting apparatus and method
CN103363887A (en) * 2012-04-11 2013-10-23 北京华夏聚龙自动化股份公司 Novel material thickness measuring method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
搜狐网: "2019年全国大学生电子设计竞赛试题", 《HTTPS://WWW.SOHU.COM/A/332071646_796852》 *
金三亲: "大学生电子设计大赛-F题纸张计数", 《HTTPS://BLOG.CSDN.NET/QQ_43419705/ARTICLE/DETAILS/99785002》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110991599A (en) * 2019-12-28 2020-04-10 中原工学院 Paper counting display device
CN111126546A (en) * 2020-01-13 2020-05-08 惠州学院 Paper page number detection method and system and capacitance frequency conversion circuit
CN111797965A (en) * 2020-06-01 2020-10-20 宁波大学科学技术学院 Paper quantity detection method, system, terminal and storage medium thereof
CN111797965B (en) * 2020-06-01 2022-06-07 宁波大学科学技术学院 Paper quantity detection method, system, terminal and storage medium thereof

Similar Documents

Publication Publication Date Title
CN110598829A (en) Paper quantity detection method and device
CN103424732B (en) A kind of direct-current electric energy meter calibrating device
WO2011021825A2 (en) Apparatus and method for inspecting a capacitive touch screen panel using lc resonant frequency variation
CN106872927A (en) The assay method and error analysis method of the harmonic wave degree of accuracy of electronic type voltage transformer
CN107687875A (en) A kind of magnetic vortex street flowmeter for measuring gassiness the flow of conductive liquid
CN116106599A (en) High-precision alternating current impedance detection equipment and calibration algorithm thereof
CN205067714U (en) Single -phase electric energy meter calibrating installation and single -phase electric energy meter credible test platform that resets
CN110991599B (en) Paper count display device
CN114629438B (en) Acceleration compensation anti-vibration crystal oscillator and compensation method thereof
CN114812924A (en) High-precision data acquisition and display interaction equipment for vacuum gauge
CN206892260U (en) A kind of phase tracking device of instrument for measuring partial discharge
CN206671525U (en) The measure device of the harmonic wave degree of accuracy of electronic type voltage transformer
CN111505557A (en) On-site calibration device and method for portable lightning arrester on-line monitoring device
CN111693580A (en) Capacitive soil moisture monitoring system and method
CN208693261U (en) A kind of moisture of skin evaporation rate tester
CN206804135U (en) A kind of portable multi-function synthesis constitution analyzer and system
CN211928030U (en) Ground resistance measuring device suitable for transformer substation's surge monitoring is used
CN202285032U (en) Electronic transformer harmonic influence testing device
CN209310883U (en) A kind of liquid detection device
CN105823925A (en) Equal precision digital frequency meter and measuring method thereof
CN221803885U (en) Oil conductivity measuring instrument
CN219285262U (en) High-precision alternating current impedance detection equipment
CN110474607A (en) Can space application offset-type quartz oscillator and compensation method
CN2045500U (en) Dynamic parameter detector for ac generator set
CN219347947U (en) Circuit and device for simultaneously switching weighing range and waking up method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220

RJ01 Rejection of invention patent application after publication