The Design of Paper Counting Device Based On STM32
The Design of Paper Counting Device Based On STM32
The Design of Paper Counting Device Based On STM32
ABSTRACT
This paper introduces a paper counting device. The system consists of STM32 core board, FDC2214 module, OLED
display module, buzzer module, key module, and two parallel plates. Two copper clad plates with a side length of 50mm
square are used as capacitance plates, and the paper to be measured is placed in the middle, and the capacitance value
between the two plates is collected by FDC2214 and the collected data is transmitted to the MCU controller through the
IIC serial bus. The controller through the algorithm converted to the corresponding number of paper values displayed in
the OLED display. The system sets self-calibration mode according to adjust the size of capacitance.
Keywords: STM32F103RCT6, FDC2214, capacitor plate, OLED display
S
C=
4πkd (3)
The capacitor between the same medium, the dielectric in the electric field E0, will produce the polarized charge, the
electric field formed with the original field opposite direction, makes the actual field strength E relatively small, we
define the ratio of the actual field strength E into the dielectric as the relative dielectric constant of the dielectric.
E0
ε=
E (4)
The voltage between the two plates when the plates are filled with the same medium.
E0 4πkσd Q
U = Ed = d= = 4πk d
ε ε εS (5)
Then:
εS
C= .
4πkd (6)
Error analysis: (1) some electromagnetic waves in the test environment, which will cause small interference to the
capacitance value collected by the sensor; (2) the thickness varies with the temperature and humidity of the air; (3) the
inconsistent compression during the feeding results in errors in the measured data.
When different amounts of paper are placed, The capacitance value changes, and the LC oscillation circuit will get the
oscillation signal of different frequencies. The MUC detects the frequency of the oscillation signal, thus realizing the
detection of the number of paper. Each different number of paper sensors will pass back a different value, the program
will give the determined number of paper through the range of each value, according to the data analysis measured above,
the system can basically measure the paper within the range of 0-22, and it is accurate and reliable.
7. CONCLUSIONS
The system has the characteristics of simple circuit and stable performance. Compared with the traditional paper counter,
it has the advantages of high accuracy, good stability and low price. In the future, the system also needs to further
improve the structure of the device, to reduce the error caused by the operation, and to optimize the program design to
correct the error caused by the environmental temperature and humidity, so as to be better applied to the paper, printing
and other control systems.
(The paper supported by the Special Fund of Advantageous and Characteristic disciplines (Group) of Hubei Province.
The paper supported by the Scientific Research Plan Project of Hubei Provincial Department of Education in
2021.B2021312)
REFERENCES
[1] Yuping Jiang, Wenzao Shi, Yuan Situ, Ge Gao. Design of Scintillation Counter Circuit Based on STM32
Counting[J]. 2021 2nd International Conference on Electronics, Communications and Information Technology
(CECIT 2021).
[2] Binfang Cao, Jianqi Li, Chengfa Liu, Lingjie Qin. Defect detection of nickel plated punched steel strip based on
improved least square method [J]. Optik-International Journal for Light and Electron Optics, 2020.
[3] Jian Huang. Salt Water Concentration Measuring Instrument Based On fdc2214[J]. Journal of Physics:
Conference SeriesVolume 1533, Issue 2. 2020.
[4] Huang D, Wang S. Gesture recognition system based on FDC2214[J]. Wireless Internet Technology, 2019.
[5] Gao L,Jiang F, Wang S.Paper counting display device based on STM32F103 single chip computer[C]// IOP
Conference Series: Materials Science and Engineering. IOP Publishing, 2020.
[6] Chen J, Lu Q , Liang Q. Design and Implementation of Paper Counting Algorithm Based on Gabor Filter[C]// the
International Symposium. 2018.
[7] Chen Jiqiu, Lu Qirong, Liang Qianming. Design and Implementation of Paper Counting Algorithm Based on
Gabor Filter[J]. Big Data and Artificial Intelligence2018. PP 281-285.
[8] Qu Jingkun, Xu Jinxiang. Image Salt and Pepper Noise Adaptive Based on Fuzzy Median Filtering. Proceedings
of Spie--The International Society For Optical Engineering, Volume 11519, 2020.
[9] A. Rückerl, S.Huppmann, R.Zeisel et al. Monolithic integrable capacitive humidity sensing method for material
characterization of dielectric thin films[J]. Microelectronics Reliability, 2014, 54(9-10).
[10] Li H. Design of Paper Counting Display Device Based on STC89C52 Single Chip Microcomputer[J]. China
Computer & Communication, 2019.