[go: up one dir, main page]

CN108734847A - A kind of bank note thickness measuring method and device based on 3-axis acceleration sensor - Google Patents

A kind of bank note thickness measuring method and device based on 3-axis acceleration sensor Download PDF

Info

Publication number
CN108734847A
CN108734847A CN201810059233.7A CN201810059233A CN108734847A CN 108734847 A CN108734847 A CN 108734847A CN 201810059233 A CN201810059233 A CN 201810059233A CN 108734847 A CN108734847 A CN 108734847A
Authority
CN
China
Prior art keywords
thickness measuring
axis
acceleration sensor
formula
acceleration
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.)
Granted
Application number
CN201810059233.7A
Other languages
Chinese (zh)
Other versions
CN108734847B (en
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.)
South China Agricultural University
Original Assignee
South China Agricultural University
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 South China Agricultural University filed Critical South China Agricultural University
Priority to CN201810059233.7A priority Critical patent/CN108734847B/en
Publication of CN108734847A publication Critical patent/CN108734847A/en
Application granted granted Critical
Publication of CN108734847B publication Critical patent/CN108734847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/16Testing the dimensions
    • G07D7/164Thickness

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

本发明公开了一种基于三轴加速度传感器的纸币测厚方法及装置,该装置主要包括座体、电路板、主动轮轴、被动测厚轮轴、测厚支架、金属片、涡流线圈、测厚安装板、扩展轴承、以及三轴加速度传感器。工作时,钞票从主动轮轴与被动测厚轮轴之间的间隙中穿过,被动测厚轮轴在钞票穿过瞬间被顶起,该振动传递到位于端部的扩展轴承上,从而传递到测厚安装板的上部上,由于三轴加速度传感器安装在上部,因此,被动测厚轮轴的细微振动都能够直接传递到三轴加速度传感器上,通过接收三轴加速度传感器上的信号并根据本发明所提供的测厚方法进行处理,便可获得每张钞票的厚度值和对应的振动规律。

The invention discloses a banknote thickness measurement method and device based on a three-axis acceleration sensor. plate, extended bearings, and three-axis accelerometer. When working, the banknote passes through the gap between the driving wheel shaft and the passive thickness measuring wheel shaft, and the passive thickness measuring wheel shaft is jacked up at the moment the banknote passes through, and the vibration is transmitted to the extended bearing at the end, and then transmitted to the thickness measuring wheel shaft. On the upper part of the mounting plate, since the triaxial acceleration sensor is installed on the upper part, therefore, the slight vibration of the passive thickness measuring wheel shaft can be directly transmitted to the triaxial acceleration sensor, by receiving the signal on the triaxial acceleration sensor and according to the present invention. The thickness measurement method of each banknote can be processed, and the thickness value and corresponding vibration law of each banknote can be obtained.

Description

一种基于三轴加速度传感器的纸币测厚方法及装置A banknote thickness measurement method and device based on a three-axis acceleration sensor

技术领域technical field

本发明涉及纸币清分机领域,尤其涉及一种基于三轴加速度传感器的纸币测厚方法及装置。The invention relates to the field of banknote sorting machines, in particular to a method and device for measuring the thickness of banknotes based on a three-axis acceleration sensor.

背景技术Background technique

随着科技进步的不断发展,纸币清分机作为银行和金融企业必不可少的纸币分拣设备,使用范围越来越广泛。近年来国内变造假币频频出现,银行对纸币清分要求不断提高,对纸币表面胶带检测已经成为清分机必备功能。纸币测厚装置作为清分机关键结构部件,由于国内其技术尚未成熟,严重制约了清分机的发展。With the continuous development of scientific and technological progress, banknote sorting machines, as indispensable banknote sorting equipment for banks and financial companies, are used more and more widely. In recent years, counterfeit and counterfeit banknotes have frequently appeared in China. Banks have continuously increased their requirements for banknote sorting. The detection of tape on the surface of banknotes has become an essential function of sorting machines. As a key structural component of the sorting machine, the banknote thickness measuring device has seriously restricted the development of the sorting machine due to its immature domestic technology.

在已有的测厚技术中已有红外测厚、超声波测厚以及霍尔测厚。红外测厚容易受纸币表面污渍的影响,对无反光纸币粘附物检测效果不理想,造成对纸币厚度的误判。超声波测厚对结构要求非常高,必须保证钞票平稳通过,对于高速运行的纸币,批量生产很难保证纸币的平稳。霍尔测厚的原理是感应磁场变化量判断纸币的厚度,由于轴承以及弹性轮都是金属结构,容易带磁对霍尔传感器产生干扰。In the existing thickness measurement technology, there are infrared thickness measurement, ultrasonic thickness measurement and Hall thickness measurement. Infrared thickness measurement is easily affected by stains on the surface of banknotes, and the detection effect on non-reflective banknote adhesions is not satisfactory, resulting in misjudgment of the thickness of banknotes. Ultrasonic thickness measurement has very high requirements on the structure, and it is necessary to ensure the smooth passage of banknotes. For banknotes running at high speed, it is difficult to ensure the stability of banknotes in mass production. The principle of Hall thickness measurement is to sense the change of the magnetic field to judge the thickness of banknotes. Since the bearings and elastic wheels are all metal structures, it is easy to be magnetized to interfere with the Hall sensor.

现有技术中已有纸币测厚装置,如专利申请号:201620182548.7,申请日:2016年3月10日,专利名称:纸币测厚装置,该申请案公开了一种利用涡流线圈作为检测原件的纸币测厚装置,该装置通过检测被动测厚轮活动端产生的位移而引发的金属片与涡流线圈的间隙发生变化,使涡流线圈端的阻抗和感抗产生变化来判断纸币的厚度,从而提高了测量精度和抗干扰的能力。该申请在一定程度上提高了纸币测厚装置的测量精度和抗干扰能力,但该申请依旧无法抑制测厚装置工作的快速振动,尤其是纸币撞击测厚装置上下滚轮的瞬间,会造成大幅度上升,不再贴合纸币表面,电涡流传感器无法测量过钞初期的纸币厚度,使得测厚装置在检测纸币前端是否粘贴胶纸或者存在折角等厚度异常问题时存在误差。There is a banknote thickness measuring device in the prior art, such as patent application number: 201620182548.7, application date: March 10, 2016, patent name: banknote thickness measuring device, the application discloses a device that uses eddy current coils as the detection original Banknote thickness measuring device, the device detects the change of the gap between the metal sheet and the eddy current coil caused by the displacement of the movable end of the passive thickness measuring wheel, so that the impedance and inductance of the eddy current coil end change to judge the thickness of the banknote, thereby improving Measurement accuracy and anti-interference ability. This application has improved the measurement accuracy and anti-interference ability of the banknote thickness measuring device to a certain extent, but the application still cannot suppress the rapid vibration of the thickness measuring device, especially when the banknote hits the upper and lower rollers of the thickness measuring device, it will cause large vibrations. The eddy current sensor cannot measure the thickness of the banknote at the initial stage of passing the banknote, which makes the thickness measuring device have errors when detecting whether the front end of the banknote is pasted with adhesive tape or has abnormal thickness problems such as folded corners.

因此,现有技术需要进一步改进和完善。Therefore, the prior art needs to be further improved and perfected.

发明内容Contents of the invention

本发明的目的在于克服现有技术的不足,提供一种操作简单、识别精度高的基于三轴加速度传感器的纸币测厚方法。The object of the present invention is to overcome the deficiencies of the prior art and provide a banknote thickness measurement method based on a three-axis acceleration sensor with simple operation and high recognition accuracy.

本发明的另一目的在于克服现有技术的不足,提供一种基于上述测厚方法的装置。Another object of the present invention is to overcome the shortcomings of the prior art and provide a device based on the above thickness measuring method.

本发明的目的通过下述技术方案实现:The object of the present invention is achieved through the following technical solutions:

一种基于三轴加速度传感器的纸币测厚方法,盖测厚方法主要包括如下步骤:A banknote thickness measurement method based on a triaxial acceleration sensor, the cover thickness measurement method mainly includes the following steps:

步骤S1:将三轴加速度传感器安装在扩展轴的左上角,并设定测量的X轴为垂直出钞轴竖直向下方向,Y轴为垂直出钞轴水平向左方向,Z轴为平行于出钞轴向内方向。Step S1: Install the three-axis acceleration sensor on the upper left corner of the extension axis, and set the measured X-axis to be the vertical downward direction of the vertical note-out axis, the Y-axis to be the vertical direction of the note-out axis to the left, and the Z-axis to be parallel Inward direction of the banknote output axis.

步骤S2:系统上电,三三轴加速度传感器分别对三个轴向的加速度进行测量,并与数据采集卡连接,经过计算后获得测厚装置安装时的倾斜角度,同时对出钞轴的加速度进行修正。Step S2: The system is powered on, and the three-axis acceleration sensors measure the acceleration of the three axes respectively, and are connected to the data acquisition card. Make corrections.

步骤S3:测量时,三轴加速度传感器内的压电元件在受到外部作用力F时产生压电常数:Step S3: During measurement, the piezoelectric element in the triaxial acceleration sensor generates a piezoelectric constant when subjected to an external force F:

公式1: Formula 1:

由上式可得公式2:Q=d*F,其中Q为电荷量,d为压电常数,F为受到的力;将上式与牛顿第二定律公式3:F=m*a结合得到公式4:Q=d*m*a,其中d和m在加速度传感器的压电陶瓷材料和质量块确定之后是固定值,得到Q和a呈线性关系,可通过测量电荷Q来获得三轴加速度传感器的加速度值。Formula 2 can be obtained from the above formula: Q=d*F, where Q is the amount of charge, d is the piezoelectric constant, and F is the force received; combine the above formula with Newton's second law formula 3: F=m*a to get Formula 4: Q=d*m*a, where d and m are fixed values after the piezoelectric ceramic material and mass block of the acceleration sensor are determined, and Q and a are linearly related, and the three-axis acceleration can be obtained by measuring the charge Q The acceleration value of the sensor.

步骤S4:三轴加速度传感器将测量值以模拟电压的形式经滤波后输送给数据采集卡,数据采集卡将模拟量进行AD转换,并输出给计算机处理。Step S4: The three-axis acceleration sensor transmits the measured value in the form of analog voltage to the data acquisition card after filtering, and the data acquisition card performs AD conversion on the analog value and outputs it to the computer for processing.

步骤S5:启动计算机,并对计算机进行参数初始化,设定D/A输出数据为0,确保初始状态压电驱动器无激励电压信号。Step S5: Start the computer, initialize the parameters of the computer, set the D/A output data to 0, and ensure that the piezoelectric driver has no excitation voltage signal in the initial state.

步骤S6:由公式4得出公式5:为避免高频信号对传感器的干扰,对结果进行低通滤波,得到加速度公式6:ai为i时刻加速度值采样值。Step S6: Formula 5 is obtained from Formula 4: In order to avoid the interference of the high-frequency signal on the sensor, the result is low-pass filtered, and the acceleration formula 6 is obtained: ai is the sampling value of the acceleration value at time i.

步骤S7:对公式6进行积分获得公式7:Δt为两次采样间的时间差。Step S7: Integrating Formula 6 to obtain Formula 7: Δt is the time difference between two samples.

步骤S8:对公式7进行积分,可得位移公式8:其中vi是i时刻速度的采样值。Step S8: Integrate formula 7 to obtain displacement formula 8: where vi is the sampled value of velocity at time i.

步骤S9:重复进行过钞试验若干遍,并根据振动效果的观测和存储数据分析,反复调整控制参数,再计算获得出钞轴的位移,通过无线通信模块向外发送,以此检测纸币是否粘贴胶纸及其位置。Step S9: Repeat the banknote test several times, and adjust the control parameters repeatedly according to the observation of the vibration effect and the analysis of the stored data, and then calculate the displacement of the banknote output axis, and send it out through the wireless communication module to detect whether the banknote is pasted Sticky paper and its location.

作为本发明的优选方案,为了提高测量的精度,本发明在没有纸币通过出钞轴时,测厚装置转动时产生的振动使加速度传感器输出电压在1.2V上下小幅波动;当有纸币通过出钞轴时,纸币挤压出钞轴,使出钞轴带动加速度传感器上下振动,从而将物理信号转换为电信号,相邻之间波峰基本相同。As a preferred solution of the present invention, in order to improve the accuracy of measurement, the vibration generated when the thickness measuring device rotates makes the output voltage of the acceleration sensor fluctuate slightly up and down at 1.2V when no banknote passes through the banknote delivery shaft; When the banknotes are on the shaft, the banknotes are squeezed out of the banknote shaft, so that the banknote output shaft drives the acceleration sensor to vibrate up and down, thereby converting the physical signal into an electrical signal, and the peaks between adjacent ones are basically the same.

作为本发明的优选方案,为了使测厚系统工作更稳定、可靠,本发明所述步骤S5中的参数初始化包括控制算法参数的初始值设定,数据采集卡相应的初始值、控制地址和驱动方式的设定。As a preferred solution of the present invention, in order to make the thickness measurement system work more stable and reliable, the parameter initialization in the step S5 of the present invention includes the initial value setting of the control algorithm parameters, the corresponding initial value, control address and driver of the data acquisition card. mode setting.

作为本发明的优选方案,为了进一步提高测厚系统的灵敏度及测量精度,本发明所述三轴加速度传感器采用型号为ADXL327三轴加速度传感器,其测量范围大,灵敏度高,带宽较宽,受温度影响较小,成本低,能很好地满足测厚要求。As a preferred solution of the present invention, in order to further improve the sensitivity and measurement accuracy of the thickness measuring system, the three-axis acceleration sensor of the present invention adopts a model of ADXL327 three-axis acceleration sensor, which has a large measurement range, high sensitivity, wide bandwidth, and is sensitive to temperature. The impact is small, the cost is low, and the thickness measurement requirements can be well met.

作为本发明的优选方案,所述数据采集卡采用安捷伦数据采集卡。相比于其他数据采集卡,安捷伦数据采集卡型号多,性能稳定,它使用通用而非专有标准的高速USB2.0接口,易连接,即插即用,并且捆绑提供了Keysight Modular Instruments MeasurementManger软件,可以快速设置和进行数据处理。此外,还可兼容多种应用软件开发环境,受干扰的状况很少。As a preferred solution of the present invention, the data acquisition card is an Agilent data acquisition card. Compared with other data acquisition cards, Agilent data acquisition cards have more models and stable performance. It uses a general-purpose rather than proprietary standard high-speed USB2.0 interface, which is easy to connect, plug and play, and bundled with Keysight Modular Instruments MeasurementManger software , can quickly set up and perform data processing. In addition, it is also compatible with a variety of application software development environments with little interference.

作为本发明的优选方案,由于测厚装置在安装过程中或长期运行后,其安装位置会发生倾斜,导致测量精度不准确,因此本发明在三轴加速度传感器的安装出现偏差或者由于老化出现变形所导致安装位置发生倾斜时,三轴加速度传感器的X轴与重力加速度方向不再平行,此时X轴所测的加速度仅仅是主动测厚轮上下运动加速度的一个分量,设X轴与重力加速度之间的夹角为θ,X轴的输出为AXOUT,Y轴输出为AYOUT,Z轴输出为AOUTZ,则夹角θ的计算公式为公式9:As a preferred solution of the present invention, since the installation position of the thickness measuring device will be inclined during the installation process or after long-term operation, resulting in inaccurate measurement accuracy, the present invention has deviations in the installation of the three-axis acceleration sensor or deformation due to aging When the installation position is tilted, the X-axis of the three-axis acceleration sensor is no longer parallel to the direction of the gravitational acceleration. At this time, the acceleration measured by the X-axis is only a component of the acceleration of the active thickness measuring wheel. The included angle between them is θ, the output of the X-axis is A XOUT , the output of the Y-axis is A YOUT , and the output of the Z-axis is A OUTZ , then the calculation formula of the included angle θ is Equation 9:

根据夹角θ可以推出主动测厚轮上下运动的实际加速度A为公式10:According to the included angle θ, the actual acceleration A of the up and down movement of the active thickness measuring wheel can be deduced as formula 10:

对公式10进行积分获得公式11:Δt为两次采样间的时间差;再对公式11进行积分,可得位移公式12:其中vi是i时刻速度的采样值。上述设计或调整可以很好地应对这种情况,从而确保达到较高的测量精度的要求。Integrating Equation 10 yields Equation 11: Δt is the time difference between two samples; and then integrate the formula 11, the displacement formula 12 can be obtained: Where v i is the sampled value of velocity at time i. The above design or adjustment can well deal with this situation, so as to ensure that the requirement of higher measurement accuracy is met.

本发明的另一目的通过下述技术方案实现:Another object of the present invention is achieved through the following technical solutions:

一种基于三轴加速度传感器的纸币测厚装置,该测厚装置主要包括座体、电路板、主动轮轴、被动测厚轮轴、测厚支架、金属片、涡流线圈、测厚安装板、扩展轴承、以及用于测量被动测厚轮轴振动规律的三轴加速度传感器。所述主动轮轴位于被动测厚轮轴下方,与被动测厚轮轴平行设置,且与被动测厚轮轴摩擦连接。所述座体固定设置,位于被动测厚轮轴的一侧;所述被动测厚轮轴设置在测厚支架上,所述测厚支架安装在座体上,与座体转动连接。所述金属片的一端固定在座体上,另一端抵接在测厚支架上,由测厚支架驱动其上下振动。所述涡流线圈规定在金属片的上方,与电路板电连接,由电路板检测其与金属片之间的间距。A banknote thickness measuring device based on a three-axis acceleration sensor, the thickness measuring device mainly includes a base body, a circuit board, a driving wheel shaft, a passive thickness measuring wheel shaft, a thickness measuring bracket, a metal sheet, an eddy current coil, a thickness measuring installation plate, and an extended bearing , and a three-axis acceleration sensor for measuring the vibration law of the passive thickness measuring wheel axle. The active wheel shaft is located below the passive thickness measuring wheel shaft, arranged parallel to the passive thickness measuring wheel shaft, and frictionally connected with the passive thickness measuring wheel shaft. The base body is fixed and located on one side of the passive thickness measuring wheel shaft; the passive thickness measuring wheel shaft is set on the thickness measuring bracket, and the thickness measuring bracket is installed on the base body and connected to the base body in rotation. One end of the metal sheet is fixed on the base, and the other end abuts on the thickness measuring support, and is driven to vibrate up and down by the thickness measuring support. The eddy current coil is defined above the metal sheet and is electrically connected to the circuit board, and the circuit board detects the distance between it and the metal sheet.

具体的,所述测厚安装板上设有用于连接被动测厚轮轴的连接孔、以及便于测量振动的开槽。所述扩展轴承安装在连接孔内,所述被动测厚轮轴的端部插入连接孔内,通过扩展轴承与测厚安装板连接,将测量时的振动传递给测厚安装板。所述开槽从测厚安装板的一侧边缘向另一侧延伸将测厚安装板划分为用于测量的上部和用于安装的下部,上部与下部之间并不完全被划分开。所述开槽并不贯穿测厚安装板。所述三轴加速度传感器设置在测厚安装板的上部,并与电路板电连接。工作时,钞票从主动轮轴与被动测厚轮轴之间的间隙中穿过,被动测厚轮轴在钞票穿过瞬间被顶起,该振动传递到位于端部的扩展轴承上,从而传递到测厚安装板的上部上,由于三轴加速度传感器安装在上部,因此,被动测厚轮轴的细微振动都能够直接传递到三轴加速度传感器上,通过接收三轴加速度传感器上的信号并处理,便可获得每张钞票的厚度值和对应的振动规律。Specifically, the thickness measurement mounting plate is provided with a connection hole for connecting the passive thickness measurement wheel axle and a slot for easy vibration measurement. The expansion bearing is installed in the connection hole, and the end of the passive thickness measuring wheel shaft is inserted into the connection hole, and is connected with the thickness measurement installation plate through the expansion bearing, and the vibration during measurement is transmitted to the thickness measurement installation plate. The slot extends from one edge of the thickness measuring mounting plate to the other side to divide the thickness measuring mounting plate into an upper part for measurement and a lower part for installation, and the upper part and the lower part are not completely divided. The slot does not go through the thickness measuring installation plate. The triaxial acceleration sensor is arranged on the upper part of the thickness measuring installation board and is electrically connected with the circuit board. When working, the banknote passes through the gap between the driving wheel shaft and the passive thickness measuring wheel shaft, and the passive thickness measuring wheel shaft is jacked up at the moment the banknote passes through, and the vibration is transmitted to the extended bearing at the end, and then transmitted to the thickness measuring wheel On the upper part of the mounting plate, since the three-axis acceleration sensor is installed on the upper part, the slight vibration of the passive thickness measuring wheel shaft can be directly transmitted to the three-axis acceleration sensor. By receiving and processing the signals on the three-axis acceleration sensor, it can be obtained The thickness value of each banknote and the corresponding vibration law.

进一步的,为了获得更准确的振动规律,从而提高测量精度,本发明所述测厚安装板下部还设有用于提高测量精度的第二三轴加速度传感器,所述第二三轴加速度传感器设置在下部的角落上,与电路板电连接。Further, in order to obtain a more accurate vibration law, thereby improving the measurement accuracy, the lower part of the thickness measuring installation plate of the present invention is also provided with a second triaxial acceleration sensor for improving measurement accuracy, and the second triaxial acceleration sensor is arranged on the The lower corner is electrically connected to the circuit board.

作为本发明的优选方案,为了将更细碎的振动都能放大并反应到位于端部的三轴加速度传感器,本发明所述三轴加速度传感器设置在测厚安装板的上部角落上。As a preferred solution of the present invention, in order to amplify and react finer vibrations to the triaxial acceleration sensor located at the end, the triaxial acceleration sensor of the present invention is arranged on the upper corner of the thickness measuring installation plate.

本发明的工作过程和原理是:工作时,钞票从主动轮轴与被动测厚轮轴之间的间隙中穿过,被动测厚轮轴在钞票穿过瞬间被顶起,该振动传递到位于端部的扩展轴承上,从而传递到测厚安装板的上部上,由于三轴加速度传感器安装在上部,因此,被动测厚轮轴的细微振动都能够直接传递到三轴加速度传感器上,通过接收三轴加速度传感器上的信号并根据本发明所提供的测厚方法进行处理,便可获得每张钞票的厚度值和对应的振动规律。利用加速度传感器检测纸币过钞时出钞轴的振动,根据其振动规律判断纸币的厚度是否存在异常,可以检测纸币上是否粘贴胶纸或者存在折角等厚度异常情况问题,甚至可以确定胶纸位置和大小,且操作简单,成本低廉,扩大了三轴加速度传感器的应用范围。The working process and principle of the present invention are as follows: when working, the banknote passes through the gap between the driving wheel shaft and the passive thickness measuring wheel shaft, and the passive thickness measuring wheel shaft is lifted up at the moment the banknote passes through, and the vibration is transmitted to the On the extended bearing, it is transmitted to the upper part of the thickness measuring installation plate. Since the triaxial acceleration sensor is installed on the upper part, the slight vibration of the passive thickness measuring wheel shaft can be directly transmitted to the triaxial acceleration sensor. By receiving the triaxial acceleration sensor The signal on the banknote is processed according to the thickness measurement method provided by the present invention, and the thickness value and corresponding vibration law of each banknote can be obtained. Use the acceleration sensor to detect the vibration of the banknote output shaft when the banknote passes through the banknote, and judge whether the thickness of the banknote is abnormal according to its vibration law. It can detect whether the adhesive tape is pasted on the banknote or there are abnormal thickness problems such as folded corners, and even determine the position of the adhesive tape and small size, simple operation and low cost, expanding the application range of the three-axis acceleration sensor.

与现有技术相比,本发明还具有以下优点:Compared with the prior art, the present invention also has the following advantages:

(1)本发明所提供的三轴加速度传感器具有频带宽、质量小、安装方便、接线少、结构紧凑的优点,采用三轴加速度传感器的合理布置方案结合滤波算法,实现了对测厚装置出钞轴振动位移的测量,大大提高了测厚装置的精度。(1) The three-axis acceleration sensor provided by the present invention has the advantages of wide frequency band, small mass, convenient installation, less wiring, and compact structure. The reasonable arrangement scheme of the three-axis acceleration sensor is combined with the filtering algorithm to realize the output of the thickness measuring device. The measurement of the vibration displacement of the banknote shaft greatly improves the accuracy of the thickness measuring device.

(2)本发明所提供的基于三轴加速度传感器的纸币测厚方法将电涡流检测原件与加速度传感器相结合,利用涡流线圈作为检测原件,通过检测被动测厚轮活动端产生的位移量而引发的金属片与涡流线圈的间隙发生变化,使涡流线圈的阻抗和感抗发生变化来判断纸币的厚度,从而提高了测厚装置的测厚精度和抗干扰能力,同时加速度传感器保证了过钞初期的纸币厚度测量的稳定性和准确性。(2) The banknote thickness measurement method based on the three-axis acceleration sensor provided by the present invention combines the eddy current detection element with the acceleration sensor, utilizes the eddy current coil as the detection element, and detects the displacement generated by the movable end of the passive thickness measurement wheel. The gap between the metal sheet and the eddy current coil changes, so that the impedance and inductance of the eddy current coil change to judge the thickness of the banknote, thereby improving the thickness measurement accuracy and anti-interference ability of the thickness measuring device, and the acceleration sensor ensures the initial banknote passing. The stability and accuracy of banknote thickness measurement.

(3)本发明所提供的基于三轴加速度传感器的纸币测厚方法采用的是原件均对环境的磁场不响应,外界磁干扰不会影响到厚度的正常测量。(3) The banknote thickness measurement method based on the three-axis acceleration sensor provided by the present invention adopts that the original components do not respond to the magnetic field of the environment, and external magnetic interference will not affect the normal measurement of the thickness.

(4)本发明所提供的基于三轴加速度传感器的纸币测厚方法采用扩展轴承的三轴加速度传感器安装方法,消除了加速度传感器的上下轴与重力加速度不完全平行导致的位移测量误差,可以大大提高位移的计算精度,保证测厚装置的准确性(4) The banknote thickness measurement method based on the three-axis acceleration sensor provided by the present invention adopts the installation method of the three-axis acceleration sensor of the extended bearing, which eliminates the displacement measurement error caused by the incomplete parallelism between the upper and lower axes of the acceleration sensor and the acceleration of gravity, and can be greatly improved. Improve the calculation accuracy of the displacement and ensure the accuracy of the thickness measuring device

附图说明Description of drawings

图1是本发明所提供的基于三轴加速度传感器的纸币测厚装置的结构示意图。Fig. 1 is a schematic structural diagram of a banknote thickness measuring device based on a three-axis acceleration sensor provided by the present invention.

图2是本发明所提供的三轴加速度传感器的安装示意图。Fig. 2 is a schematic diagram of the installation of the triaxial acceleration sensor provided by the present invention.

图3是本发明所提供的三轴加速度传感器三轴标准位置示意图。Fig. 3 is a schematic diagram of three-axis standard positions of the three-axis acceleration sensor provided by the present invention.

图4是本发明所提供的三轴加速度传感器发生倾斜时的示意图。Fig. 4 is a schematic diagram when the three-axis acceleration sensor provided by the present invention is tilted.

图5是本发明所提供的处理加速度传感器数据流程图。Fig. 5 is a flow chart of processing acceleration sensor data provided by the present invention.

上述附图中的标号说明:Explanation of the labels in the above-mentioned accompanying drawings:

1-座体,2-主动轮轴,3-被动测厚轮轴,4-测厚支架,5-金属片,6-测厚安装板,7-扩展轴承,8-三轴加速度传感器。1-seat body, 2-driving axle, 3-passive thickness measuring axle, 4-thickness measuring bracket, 5-metal sheet, 6-thickness measuring mounting plate, 7-extended bearing, 8-triaxial acceleration sensor.

具体实施方式Detailed ways

为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明作进一步说明。In order to make the object, technical solution and advantages of the present invention more clear and definite, the present invention will be further described below with reference to the accompanying drawings and examples.

实施例1:Example 1:

如图1、图2、图3、图4和图5所示,本发明公开了一种基于三轴加速度传感器的纸币测厚方法,盖测厚方法主要包括如下步骤:As shown in Fig. 1, Fig. 2, Fig. 3, Fig. 4 and Fig. 5, the present invention discloses a banknote thickness measurement method based on a three-axis acceleration sensor. The cover thickness measurement method mainly includes the following steps:

步骤S1:将三轴加速度传感器8安装在扩展轴的左上角,并设定测量的X轴为垂直出钞轴竖直向下方向,Y轴为垂直出钞轴水平向左方向,Z轴为平行于出钞轴向内方向。Step S1: install the three-axis acceleration sensor 8 on the upper left corner of the extension axis, and set the measured X-axis to be the vertical downward direction of the vertical note-out axis, the Y-axis to be the vertical direction of the note-out axis to the left, and the Z-axis to be Parallel to the inner direction of the banknote output axis.

步骤S2:系统上电,三三轴加速度传感器8分别对三个轴向的加速度进行测量,并与数据采集卡连接,经过计算后获得测厚装置安装时的倾斜角度,同时对出钞轴的加速度进行修正。Step S2: The system is powered on, and the three-axis acceleration sensor 8 measures the acceleration of the three axes respectively, and is connected with the data acquisition card. After calculation, the inclination angle when the thickness measuring device is installed is obtained. Acceleration is corrected.

步骤S3:测量时,三轴加速度传感器8内的压电元件在受到外部作用力F时产生压电常数:Step S3: During measurement, the piezoelectric element in the triaxial acceleration sensor 8 generates a piezoelectric constant when subjected to an external force F:

公式1: Formula 1:

由上式可得公式2:Q=d*F,其中Q为电荷量,d为压电常数,F为受到的力;将上式与牛顿第二定律公式3:F=m*a结合得到公式4:Q=d*m*a,其中d和m在加速度传感器的压电陶瓷材料和质量块确定之后是固定值,得到Q和a呈线性关系,可通过测量电荷Q来获得三轴加速度传感器8的加速度值。Formula 2 can be obtained from the above formula: Q=d*F, where Q is the amount of charge, d is the piezoelectric constant, and F is the force received; combine the above formula with Newton's second law formula 3: F=m*a to get Formula 4: Q=d*m*a, where d and m are fixed values after the piezoelectric ceramic material and mass block of the acceleration sensor are determined, and Q and a are linearly related, and the three-axis acceleration can be obtained by measuring the charge Q Acceleration value of sensor 8.

步骤S4:三轴加速度传感器8将测量值以模拟电压的形式经滤波后输送给数据采集卡,数据采集卡将模拟量进行AD转换,并输出给计算机处理。Step S4: The three-axis acceleration sensor 8 transmits the measured value in the form of analog voltage to the data acquisition card after filtering, and the data acquisition card performs AD conversion on the analog value and outputs it to the computer for processing.

步骤S5:启动计算机,并对计算机进行参数初始化,设定D/A输出数据为0,确保初始状态压电驱动器无激励电压信号。Step S5: Start the computer, initialize the parameters of the computer, set the D/A output data to 0, and ensure that the piezoelectric driver has no excitation voltage signal in the initial state.

步骤S6:由公式4得出公式5:为避免高频信号对传感器的干扰,对结果进行低通滤波,得到加速度公式6:ai为i时刻加速度值采样值。Step S6: Formula 5 is obtained from Formula 4: In order to avoid the interference of the high-frequency signal on the sensor, the result is low-pass filtered, and the acceleration formula 6 is obtained: ai is the sampling value of the acceleration value at time i.

步骤S7:对公式6进行积分获得公式7:Δt为两次采样间的时间差。Step S7: Integrating Formula 6 to obtain Formula 7: Δt is the time difference between two samples.

步骤S8:对公式7进行积分,可得位移公式8:其中vi是i时刻速度的采样值。Step S8: Integrate formula 7 to obtain displacement formula 8: where vi is the sampled value of velocity at time i.

步骤S9:重复进行过钞试验若干遍,并根据振动效果的观测和存储数据分析,反复调整控制参数,再计算获得出钞轴的位移,通过无线通信模块向外发送,以此检测纸币是否粘贴胶纸及其位置。Step S9: Repeat the banknote test several times, and adjust the control parameters repeatedly according to the observation of the vibration effect and the analysis of the stored data, and then calculate the displacement of the banknote output axis, and send it out through the wireless communication module to detect whether the banknote is pasted Sticky paper and its location.

作为本发明的优选方案,为了提高测量的精度,本发明在没有纸币通过出钞轴时,测厚装置转动时产生的振动使加速度传感器输出电压在1.2V上下小幅波动;当有纸币通过出钞轴时,纸币挤压出钞轴,使出钞轴带动加速度传感器上下振动,从而将物理信号转换为电信号,相邻之间波峰基本相同。As a preferred solution of the present invention, in order to improve the accuracy of measurement, the vibration generated when the thickness measuring device rotates makes the output voltage of the acceleration sensor fluctuate slightly up and down at 1.2V when no banknote passes through the banknote delivery shaft; When the banknotes are on the shaft, the banknotes are squeezed out of the banknote shaft, so that the banknote output shaft drives the acceleration sensor to vibrate up and down, thereby converting the physical signal into an electrical signal, and the peaks between adjacent ones are basically the same.

作为本发明的优选方案,为了使测厚系统工作更稳定、可靠,本发明所述步骤S5中的参数初始化包括控制算法参数的初始值设定,数据采集卡相应的初始值、控制地址和驱动方式的设定。As a preferred solution of the present invention, in order to make the thickness measurement system work more stable and reliable, the parameter initialization in the step S5 of the present invention includes the initial value setting of the control algorithm parameters, the corresponding initial value, control address and driver of the data acquisition card. mode setting.

作为本发明的优选方案,为了进一步提高测厚系统的灵敏度及测量精度,本发明所述三轴加速度传感器8采用型号为ADXL327三轴加速度传感器,其测量范围大,灵敏度高,带宽较宽,受温度影响较小,成本低,能很好地满足测厚要求。As a preferred solution of the present invention, in order to further improve the sensitivity and measurement accuracy of the thickness measuring system, the three-axis acceleration sensor 8 of the present invention adopts the model as the ADXL327 three-axis acceleration sensor, which has a large measurement range, high sensitivity, and wide bandwidth. The influence of temperature is small, the cost is low, and it can well meet the requirements of thickness measurement.

作为本发明的优选方案,所述数据采集卡采用安捷伦数据采集卡。相比于其他数据采集卡,安捷伦数据采集卡型号多,性能稳定,它使用通用而非专有标准的高速USB2.0接口,易连接,即插即用,并且捆绑提供了Keysight Modular Instruments MeasurementManger软件,可以快速设置和进行数据处理。此外,还可兼容多种应用软件开发环境,受干扰的状况很少。As a preferred solution of the present invention, the data acquisition card is an Agilent data acquisition card. Compared with other data acquisition cards, Agilent data acquisition cards have more models and stable performance. It uses a general-purpose rather than proprietary standard high-speed USB2.0 interface, which is easy to connect, plug and play, and bundled with Keysight Modular Instruments MeasurementManger software , can quickly set up and perform data processing. In addition, it is also compatible with a variety of application software development environments with little interference.

作为本发明的优选方案,由于测厚装置在安装过程中或长期运行后,其安装位置会发生倾斜,导致测量精度不准确,因此本发明在三轴加速度传感器8的安装出现偏差或者由于老化出现变形所导致安装位置发生倾斜时,三轴加速度传感器8的X轴与重力加速度方向不再平行,此时X轴所测的加速度仅仅是主动测厚轮上下运动加速度的一个分量,设X轴与重力加速度之间的夹角为θ,X轴的输出为AXOUT,Y轴输出为AYOUT,Z轴输出为AOUTZ,则夹角θ的计算公式为公式9:As a preferred solution of the present invention, since the installation position of the thickness measuring device will be tilted during installation or after long-term operation, resulting in inaccurate measurement accuracy, the present invention may deviate in the installation of the triaxial acceleration sensor 8 or appear due to aging. When the installation position is tilted due to deformation, the X-axis of the triaxial acceleration sensor 8 is no longer parallel to the direction of the gravitational acceleration. At this time, the acceleration measured by the X-axis is only a component of the acceleration of the up-and-down movement of the active thickness measuring wheel. The included angle between the gravitational accelerations is θ, the output of the X-axis is A XOUT , the output of the Y-axis is A YOUT , and the output of the Z-axis is A OUTZ , then the calculation formula of the included angle θ is Equation 9:

根据夹角θ可以推出主动测厚轮上下运动的实际加速度A为公式10:According to the included angle θ, the actual acceleration A of the up and down movement of the active thickness measuring wheel can be deduced as formula 10:

对公式10进行积分获得公式11:Δt为两次采样间的时间差;再对公式11进行积分,可得位移公式12:其中vi是i时刻速度的采样值。上述设计或调整可以很好地应对这种情况,从而确保达到较高的测量精度的要求。Integrating Equation 10 yields Equation 11: Δt is the time difference between two samples; and then integrate the formula 11, the displacement formula 12 can be obtained: Where v i is the sampled value of velocity at time i. The above design or adjustment can well deal with this situation, so as to ensure that the requirement of higher measurement accuracy is met.

本发明的另一目的通过下述技术方案实现:Another object of the present invention is achieved through the following technical solutions:

一种基于三轴加速度传感器的纸币测厚装置,该测厚装置主要包括座体1、电路板、主动轮轴2、被动测厚轮轴3、测厚支架4、金属片5、涡流线圈、测厚安装板6、扩展轴承7、以及用于测量被动测厚轮轴3振动规律的三轴加速度传感器8。所述主动轮轴2位于被动测厚轮轴3下方,与被动测厚轮轴3平行设置,且与被动测厚轮轴3摩擦连接。所述座体1固定设置,位于被动测厚轮轴3的一侧;所述被动测厚轮轴3设置在测厚支架4上,所述测厚支架4安装在座体1上,与座体1转动连接。所述金属片5的一端固定在座体1上,另一端抵接在测厚支架4上,由测厚支架4驱动其上下振动。所述涡流线圈规定在金属片5的上方,与电路板电连接,由电路板检测其与金属片5之间的间距。A banknote thickness measuring device based on a three-axis acceleration sensor, the thickness measuring device mainly includes a base body 1, a circuit board, a driving wheel shaft 2, a passive thickness measuring wheel shaft 3, a thickness measuring bracket 4, a metal sheet 5, an eddy current coil, a thickness measuring The mounting plate 6, the extended bearing 7, and the triaxial acceleration sensor 8 used to measure the vibration law of the passive thickness measuring wheel shaft 3. The active wheel shaft 2 is located below the passive thickness measuring wheel shaft 3 , is arranged parallel to the passive thickness measuring wheel shaft 3 , and is frictionally connected with the passive thickness measuring wheel shaft 3 . The base body 1 is fixedly arranged on one side of the passive thickness measuring wheel shaft 3; the passive thickness measuring wheel shaft 3 is arranged on the thickness measuring bracket 4, and the thickness measuring bracket 4 is installed on the base body 1 and rotates with the base body 1 connect. One end of the metal sheet 5 is fixed on the base body 1, and the other end abuts on the thickness measuring support 4, and is driven by the thickness measuring support 4 to vibrate up and down. The eddy current coil is defined above the metal sheet 5 and electrically connected to the circuit board, and the distance between the eddy current coil and the metal sheet 5 is detected by the circuit board.

具体的,所述测厚安装板6上设有用于连接被动测厚轮轴3的连接孔、以及便于测量振动的开槽。所述扩展轴承7安装在连接孔内,所述被动测厚轮轴3的端部插入连接孔内,通过扩展轴承7与测厚安装板6连接,将测量时的振动传递给测厚安装板6。所述开槽从测厚安装板6的一侧边缘向另一侧延伸将测厚安装板6划分为用于测量的上部和用于安装的下部,上部与下部之间并不完全被划分开。所述开槽并不贯穿测厚安装板6。所述三轴加速度传感器8设置在测厚安装板6的上部,并与电路板电连接。工作时,钞票从主动轮轴2与被动测厚轮轴3之间的间隙中穿过,被动测厚轮轴3在钞票穿过瞬间被顶起,该振动传递到位于端部的扩展轴承7上,从而传递到测厚安装板6的上部上,由于三轴加速度传感器8安装在上部,因此,被动测厚轮轴3的细微振动都能够直接传递到三轴加速度传感器8上,通过接收三轴加速度传感器8上的信号并处理,便可获得每张钞票的厚度值和对应的振动规律。Specifically, the thickness measuring mounting plate 6 is provided with a connection hole for connecting the passive thickness measuring wheel axle 3 and a slot for easy vibration measurement. The expansion bearing 7 is installed in the connection hole, the end of the passive thickness measuring wheel shaft 3 is inserted into the connection hole, and is connected with the thickness measurement installation plate 6 through the expansion bearing 7, and the vibration during measurement is transmitted to the thickness measurement installation plate 6 . The slot extends from one edge of the thickness measuring mounting plate 6 to the other side to divide the thickness measuring mounting plate 6 into an upper part for measurement and a lower part for installation, and the upper part and the lower part are not completely divided . The slot does not go through the thickness measuring mounting plate 6 . The triaxial acceleration sensor 8 is arranged on the upper part of the thickness measuring installation plate 6 and is electrically connected with the circuit board. When working, the banknote passes through the gap between the driving wheel shaft 2 and the passive thickness measuring wheel shaft 3, and the passive thickness measuring wheel shaft 3 is lifted up at the moment the banknote passes through, and the vibration is transmitted to the expansion bearing 7 at the end, so that It is transmitted to the upper part of the thickness measuring installation plate 6. Since the triaxial acceleration sensor 8 is installed on the upper part, the slight vibration of the passive thickness measuring wheel shaft 3 can be directly transmitted to the triaxial acceleration sensor 8. By receiving the triaxial acceleration sensor 8 The signal on the banknote is processed and the thickness value of each banknote and the corresponding vibration law can be obtained.

进一步的,为了获得更准确的振动规律,从而提高测量精度,本发明所述测厚安装板6下部还设有用于提高测量精度的第二三轴加速度传感器8,所述第二三轴加速度传感器8设置在下部的角落上,与电路板电连接。Further, in order to obtain more accurate vibration rules, thereby improving measurement accuracy, the lower part of the thickness measuring mounting plate 6 of the present invention is also provided with a second triaxial acceleration sensor 8 for improving measurement accuracy, and the second triaxial acceleration sensor 8 is arranged on the corner of the lower part, and is electrically connected with the circuit board.

作为本发明的优选方案,为了将更细碎的振动都能放大并反应到位于端部的三轴加速度传感器8,本发明所述三轴加速度传感器8设置在测厚安装板6的上部角落上。As a preferred solution of the present invention, in order to amplify and react finer vibrations to the triaxial acceleration sensor 8 located at the end, the triaxial acceleration sensor 8 of the present invention is arranged on the upper corner of the thickness measuring installation plate 6 .

本发明的工作过程和原理是:工作时,钞票从主动轮轴2与被动测厚轮轴3之间的间隙中穿过,被动测厚轮轴3在钞票穿过瞬间被顶起,该振动传递到位于端部的扩展轴承7上,从而传递到测厚安装板6的上部上,由于三轴加速度传感器8安装在上部,因此,被动测厚轮轴3的细微振动都能够直接传递到三轴加速度传感器8上,通过接收三轴加速度传感器8上的信号并根据本发明所提供的测厚方法进行处理,便可获得每张钞票的厚度值和对应的振动规律。利用加速度传感器检测纸币过钞时出钞轴的振动,根据其振动规律判断纸币的厚度是否存在异常,可以检测纸币上是否粘贴胶纸或者存在折角等厚度异常情况问题,甚至可以确定胶纸位置和大小,且操作简单,成本低廉,扩大了三轴加速度传感器8的应用范围。The working process and principle of the present invention are: when working, the banknote passes through the gap between the driving wheel shaft 2 and the passive thickness measuring wheel shaft 3, and the passive thickness measuring wheel shaft 3 is lifted up at the moment the banknote passes through, and the vibration is transmitted to the The extended bearing 7 at the end is transmitted to the upper part of the thickness measuring installation plate 6. Since the triaxial acceleration sensor 8 is installed on the upper part, the slight vibration of the passive thickness measuring wheel shaft 3 can be directly transmitted to the triaxial acceleration sensor 8 Above, by receiving the signal from the triaxial acceleration sensor 8 and processing it according to the thickness measuring method provided by the present invention, the thickness value and corresponding vibration law of each banknote can be obtained. Use the acceleration sensor to detect the vibration of the banknote output shaft when the banknote passes through the banknote, and judge whether the thickness of the banknote is abnormal according to its vibration law. It can detect whether the adhesive tape is pasted on the banknote or there are abnormal thickness problems such as folded corners, and even determine the position of the adhesive tape and small in size, simple in operation and low in cost, expanding the application range of the three-axis acceleration sensor 8 .

实施例2:Example 2:

一种纸币测厚装置,包括座体1、电路板、以及至少两个测厚机构,所述测厚机构包括主动轮、被动测厚轮、测厚轮支架以及金属片5,电路板设于机座的上部,所述测厚轮支架的转动端枢接于测厚轮支架的活动端,所述电路板对应每个测厚机构的金属片5设有涡流线圈,所述金属片5设于机座上并位于涡流线圈与测厚轮支架之间,所述金属片5的第一端设于机座上,金属片5的第二端抵接于测厚轮支架的活动端上并位于涡流线圈下方,所述主动轮设于被动测厚轮的一侧并与被动测厚轮摩擦传动,所述主动轮与被动测厚轮之间的间隙为过钞间隙。A banknote thickness measuring device includes a base body 1, a circuit board, and at least two thickness measuring mechanisms, the thickness measuring mechanism includes a driving wheel, a passive thickness measuring wheel, a thickness measuring wheel bracket and a metal sheet 5, and the circuit board is located on the The upper part of the base, the rotating end of the thickness measuring wheel bracket is pivotally connected to the movable end of the thickness measuring wheel bracket, and the circuit board is provided with an eddy current coil corresponding to the metal sheet 5 of each thickness measuring mechanism, and the metal sheet 5 is provided with On the frame and between the eddy current coil and the thickness measuring wheel bracket, the first end of the metal sheet 5 is arranged on the frame, the second end of the metal sheet 5 abuts against the movable end of the thickness measuring wheel bracket and Located below the eddy current coil, the driving wheel is arranged on one side of the passive thickness measuring wheel and is driven by friction with the passive thickness measuring wheel. The gap between the driving wheel and the passive thickness measuring wheel is the paper passing gap.

本装置由电池、电源模块、三轴加速度传感器8、数据采集卡、无线通信模块、计算机组成。电池和电源模块产生整个装置所需要的电源,三轴加速度传感器8测量三个轴向的加速度,数据采集卡对加速度数据进行采集、修正并通过无线通讯模块将数据输送给计算机,通过滤波算法对数据进行修正,并计算位移,以检测纸币的真伪。The device is composed of a battery, a power module, a three-axis acceleration sensor 8, a data acquisition card, a wireless communication module, and a computer. The battery and the power supply module generate the power required by the whole device. The three-axis acceleration sensor 8 measures the acceleration of three axes. The data acquisition card collects and corrects the acceleration data and transmits the data to the computer through the wireless communication module. The data is corrected and the displacement is calculated to detect the authenticity of the banknote.

本装置的安装位置,如图2所示。测厚机械结构由加速度传感器和扩展轴组成,扩展轴承7通过螺丝固定在点钞机上。当纸币进入出钞轴时,出钞轴挤压扩展轴承7,使其带动加速度传感器运动。通过分析加速度传感器输出电压的变化规律可检测出纸币的厚度是否存在异常。The installation position of this device is shown in Figure 2. The thickness measuring mechanical structure is made up of acceleration sensor and expansion shaft, and expansion bearing 7 is fixed on the banknote counter by screw. When banknotes enter the banknote-discharging shaft, the banknote-discharging shaft extrudes the expansion bearing 7 to drive the acceleration sensor to move. By analyzing the change law of the output voltage of the acceleration sensor, it can be detected whether there is abnormality in the thickness of the banknote.

本发明所提供的纸币测厚方法具体操作过程如下:The concrete operation process of banknote thickness measuring method provided by the present invention is as follows:

1)本发明采用电池对本装置进行供电,电池与电源板块相连,电源模块产生稳定电压,并向加速度传感器、数据采集卡和无线通讯模块供电。1) The present invention uses a battery to power the device, the battery is connected to the power supply board, and the power supply module generates stable voltage and supplies power to the acceleration sensor, data acquisition card and wireless communication module.

2)随后对加速度进行采集,进行过钞试验,该装置通过三轴加速度传感器8测量三个轴向的加速度,并将加速度以模拟量的形式输给数据采集卡。2) Acceleration is subsequently collected and banknote passing test is carried out. The device measures the acceleration of three axes through the triaxial acceleration sensor 8, and outputs the acceleration to the data acquisition card in the form of analog quantity.

3)本装置采用的加速度传感器,型号为ADXL327。该传感器是美国AD公司生产的单芯片三轴传感器,测量范围是±2.5g,可以承受1000g的振动冲击。该芯片可以同时测量三个方向的加速度,适合于静态和动态的加速度测量。芯片的Xout、Yout和Zout三个引脚分别是X轴、Y轴和Z轴的加速度输出,其中X轴用于测量上下方向的加速度,Y轴用于测量左右方向的加速度,Z轴用于测量前后方向的加速度。该电路中,ADXL327电源电压Vs为3.3V,灵敏度为462mV/g,当测量值为0g时,输出电压值为Vs/2,即1.65V,当加速度发生变化,对应轴的输出电压发生变化,因此通过测量某一轴输出电压大小,便可计算出该轴的加速度。3) The acceleration sensor used in this device is ADXL327. The sensor is a single-chip three-axis sensor produced by American AD Company. The measurement range is ±2.5g, and it can withstand 1000g vibration shock. The chip can measure acceleration in three directions at the same time, which is suitable for static and dynamic acceleration measurement. The Xout, Yout and Zout pins of the chip are the acceleration outputs of the X-axis, Y-axis and Z-axis respectively, where the X-axis is used to measure the acceleration in the up-down direction, the Y-axis is used to measure the acceleration in the left-right direction, and the Z-axis is used for Acceleration in the front-back direction is measured. In this circuit, the ADXL327 power supply voltage Vs is 3.3V, and the sensitivity is 462mV/g. When the measured value is 0g, the output voltage value is Vs/2, which is 1.65V. When the acceleration changes, the output voltage of the corresponding axis changes. Therefore, by measuring the output voltage of a certain axis, the acceleration of the axis can be calculated.

4)三轴加速度传感器8的输出以电压模拟量的形式输送到数据采集卡,数据采集卡对输入的模拟量进行AD转换,用数字量表示加速度的大小。4) The output of the three-axis acceleration sensor 8 is sent to the data acquisition card in the form of voltage analog quantity, and the data acquisition card performs AD conversion on the input analog quantity, and uses digital quantity to represent the magnitude of the acceleration.

5)测厚机构工作时,三轴加速度传感器8内的压电元件在受到外部作用力F后会产生压电常数:5) When the thickness measuring mechanism is working, the piezoelectric element in the triaxial acceleration sensor 8 will generate a piezoelectric constant after being subjected to an external force F:

所以,电荷Q=d*F(2);Therefore, the charge Q=d*F(2);

其中Q为电荷量,d为压电常数,F为受到的力。本发明装置中加速度传感器所受到的力主要是质量块随出钞轴振动产生的惯性力。根据牛顿第二定律F=m*a(3);Where Q is the amount of charge, d is the piezoelectric constant, and F is the force received. The force received by the acceleration sensor in the device of the present invention is mainly the inertial force generated by the mass block vibrating with the banknote output shaft. According to Newton's second law F=m*a(3);

惯性力等于质量块乘以加速度,将公式(2)(3)进行组合可得到Q=d*m*a(4);其中d和m在加速度传感器的压电陶瓷材料和质量块确定之后就是固定值。因此,在传感器的可测范围之内,Q和a呈线性关系,可通过电荷Q来表征加速度值。The inertial force is equal to the mass multiplied by the acceleration, and the formula (2) (3) can be combined to obtain Q=d*m*a (4); where d and m are determined after the piezoelectric ceramic material of the acceleration sensor and the mass block are determined Fixed value. Therefore, within the measurable range of the sensor, Q and a have a linear relationship, and the acceleration value can be represented by the charge Q.

6)利用计算机得到振动信息,三轴加速度传感器8输出的是电压信号,有公式(4)可知为避免高频信号对传感器的干扰,对其结果进行低通滤波,得到加速度ai为i时刻加速度采样值。6) Utilize the computer to obtain the vibration information, and the output of the triaxial acceleration sensor 8 is a voltage signal, as can be seen from formula (4) In order to avoid the interference of the high-frequency signal on the sensor, the result is low-pass filtered to obtain the acceleration ai is the acceleration sampling value at time i.

7)将速度以数字量形式表示后,再计算出加速度传感器的X轴与重力加速度的夹角,利用该夹角对X轴输出的加速度进行修正。当该装置安装正确并且没有任何形变时,加速度传感器的X轴、Y轴和Z轴的方向如图3所示。X轴与重力加速度方向相反,用于测量主动测厚轮上下方向的加速度;Y轴用于测量左右方向的加速度;Z轴用于测量前后方向的加速度。此时X轴的输出就是主动测厚轮上下运动的加速度。7) After expressing the speed in digital form, calculate the angle between the X-axis of the acceleration sensor and the acceleration of gravity, and use the angle to correct the acceleration output by the X-axis. When the device is installed correctly and without any deformation, the directions of the X-axis, Y-axis and Z-axis of the acceleration sensor are shown in Figure 3. The X-axis is in the opposite direction to the gravitational acceleration and is used to measure the acceleration in the up-down direction of the active thickness measuring wheel; the Y-axis is used to measure the acceleration in the left-right direction; the Z-axis is used to measure the acceleration in the front-back direction. At this time, the output of the X axis is the acceleration of the active thickness measuring wheel moving up and down.

8)当装置的安装出现偏差或者由于老化出现变形,装置可能会出现倾斜,加速度传感器的X轴与重力加速度方向不再平行,此时X轴所测的加速度仅仅是主动测厚轮上下运动加速度的一个分量。如图4所示。设X轴与重力加速度之间的夹角为θ,X轴的输出为AXOUT,Y轴输出为AYOUT,Z轴输出为AOUTZ,则夹角θ为:8) When the installation of the device is deviated or deformed due to aging, the device may be tilted, and the X-axis of the acceleration sensor is no longer parallel to the direction of the acceleration of gravity. At this time, the acceleration measured by the X-axis is only the up-and-down motion acceleration of the active thickness measuring wheel a component of . As shown in Figure 4. Let the angle between the X-axis and the acceleration of gravity be θ, the output of the X-axis is AXOUT, the output of the Y-axis is AYOUT, and the output of the Z-axis is AOUTZ, then the angle θ is:

根据角θ可以推出主动测厚轮上下运动的实际加速度A为:According to the angle θ, the actual acceleration A of the up and down motion of the active thickness measuring wheel can be deduced as:

9)通过对X轴加速度的修正,可以计算出主动测厚轮上下运动的实际加速度,上下死点是加速度的两个极值,通过对极值的判断可以找出主动测厚轮的运动周期。通过对一个周期内,加速度的二次积分可以计算出主动测厚轮在一个周期内的位移。9) Through the correction of the X-axis acceleration, the actual acceleration of the up and down movement of the active thickness measuring wheel can be calculated. The upper and lower dead points are the two extreme values of the acceleration, and the motion period of the active thickness measuring wheel can be found out by judging the extreme values . The displacement of the active thickness measuring wheel in a cycle can be calculated by the quadratic integral of the acceleration in a cycle.

10)对公式(8)进行积分,即Δt为两次采样间的时间差。10) Integrate formula (8), namely Δt is the time difference between two samples.

11)对公式(9)进行积分,可得位移公式 其中vi是i时刻速度的采样值。11) Integrate the formula (9) to get the displacement formula where vi is the sampled value of velocity at time i.

12)使用MATLAB对加速度传感器输出信号进行处理流程图如图5所示。当没有纸币通过出钞轴时,测厚装置转动时产生的振动使加速度传感器输出电压在1.2V上下小幅波动;当有纸币通过出钞轴时,纸币积压出钞轴,使出钞轴带动加速度传感器上下振动,从而将物理信号转换为电信号,相邻之间波峰基本相同。12) Use MATLAB to process the output signal of the acceleration sensor, as shown in Figure 5. When no banknotes pass through the banknote output shaft, the vibration generated when the thickness measuring device rotates causes the output voltage of the acceleration sensor to fluctuate slightly around 1.2V; when there are banknotes passing through the banknote output shaft, the banknotes are backlogged on the banknote output shaft, so that the banknote output shaft drives the acceleration The sensor vibrates up and down, thereby converting the physical signal into an electrical signal, and the peaks of adjacent waves are basically the same.

13)重复进行过钞试验若干遍,并根据振动效果的观测和存储数据分析,反复调整控制参数。13) Repeat the banknote passing test several times, and adjust the control parameters repeatedly according to the observation of the vibration effect and the analysis of the stored data.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiment is a preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the above-mentioned embodiment, and any other changes, modifications, substitutions, combinations, Simplifications should be equivalent replacement methods, and all are included in the protection scope of the present invention.

Claims (9)

1. a kind of bank note thickness measuring method based on 3-axis acceleration sensor, which is characterized in that include the following steps:
Step S1:3-axis acceleration sensor is mounted on to the upper left corner of extended axis, and the X-axis of setting measurement is vertical cash dispenser axis Vertically downward direction, Y-axis are the horizontal left direction of vertical cash dispenser axis, and Z axis is to be parallel to cash dispenser axis inward direction;
Step S2:System electrification, three 3-axis acceleration sensors respectively measure the acceleration of three axial directions, and and data Capture card connects, and angle of inclination when measuring thickness device installation is obtained after calculating, while repairing to the acceleration of cash dispenser axis Just;
Step S3:When measurement, it is normal that the piezoelectric element in 3-axis acceleration sensor generates piezoelectricity when by applied external force F Number:
Formula 1:
Formula 2 as available from the above equation:Q=d*F, wherein Q are the quantity of electric charge, and d is piezoelectric constant, and F is the power being subject to;By above formula and newton Second law formula 3:F=m*a is combined and is obtained formula 4:The piezoelectric ceramics material of Q=d*m*a, wherein d and m in acceleration transducer Material and mass block are fixed values after determining, obtain Q and a is in a linear relationship, can obtain 3-axis acceleration by measuring charge Q The acceleration value of sensor;
Step S4:3-axis acceleration sensor by measured value in the form of analog voltage it is filtered after be conveyed to data collecting card, Analog quantity is AD converted by data collecting card, and is exported to computer disposal;
Step S5:Start computer, and parameter initialization is carried out to computer, sets D/A output datas as 0, it is ensured that initial shape State piezoelectric actuator is without driving voltage signal;
Step S6:Formula 5 is obtained by formula 4:To avoid interference of the high-frequency signal to sensor, result is carried out low Pass filter obtains Acceleration Formula 6:Ai samples for i moment acceleration values Value;
Step S7:Integral is carried out to formula 6 and obtains formula 7:Δ t is two Time difference between secondary sampling;
Step S8:Formula 7 is integrated, displacement formula 8 can be obtained:Wherein Vi is the sampled value of i moment speed;
Step S9:Repeat crosses paper money to test several times, and according to the observation of vibrating effect and storage data analysis, adjusts repeatedly Control parameter, then the displacement for obtaining cash dispenser axis is calculated, module is sent out by radio communication, detects whether bank note is pasted with this Gummed paper and its position.
2. the bank note thickness measuring method according to claim 1 based on 3-axis acceleration sensor, which is characterized in that when not having When bank note passes through cash dispenser axis, the vibration that measuring thickness device generates when rotating keeps acceleration transducer output voltage small size above or below 1.2V Fluctuation;When there is bank note to pass through cash dispenser axis, bank note squeezes cash dispenser axis, and cash dispenser axis is made to drive acceleration transducer up-down vibration, from And physical signal is converted into electric signal, it is adjacent between wave crest it is essentially identical.
3. the bank note thickness measuring method according to claim 1 based on 3-axis acceleration sensor, which is characterized in that the step Parameter initialization in rapid S5 includes the initial value setting of control algolithm parameter, the corresponding initial value of data collecting card, control ground The setting of location and type of drive.
4. the bank note thickness measuring method according to claim 1 based on 3-axis acceleration sensor, which is characterized in that described three Axle acceleration sensor uses model ADXL327 3-axis acceleration sensors.
5. the bank note thickness measuring method according to claim 1 based on 3-axis acceleration sensor, which is characterized in that the number Agilent data collecting card is used according to capture card.
6. the bank note thickness measuring method according to claim 1 based on 3-axis acceleration sensor, which is characterized in that when three axis Caused by the installation of acceleration transducer deviation occurs or deformation occurs aging when installation site run-off the straight, three axis add The X-axis of velocity sensor and acceleration of gravity direction are no longer parallel, and the acceleration that X-axis is surveyed at this time is only on active thickness measuring wheel The one-component of lower acceleration of motion, if the angle between X-axis and acceleration of gravity is θ, the output of X-axis is AXOUT, Y-axis output For AYOUT, Z axis output is AOUTZ, then the calculation formula of angle theta is formula 9:
The actual acceleration A that the up and down motion of active thickness measuring wheel can be released according to angle theta is formula 10:
Integral is carried out to formula 10 and obtains formula 11:Time differences of the Δ t between double sampling;It is right again Formula 11 is integrated, and displacement formula 12 can be obtained:Wherein viIt is the i moment The sampled value of speed.
7. a kind of banknote thickness gauge based on 3-axis acceleration sensor, which is characterized in that including pedestal, circuit board, active Wheel shaft, passive thickness measuring wheel shaft, thickness measuring bracket, sheet metal, eddy current coil, thickness measuring mounting plate, extension bearing and 3-axis acceleration Sensor;The drive sprocket axle is located at below passive thickness measuring wheel shaft, is arranged in parallel with passive thickness measuring wheel shaft, and with passive thickness measuring wheel Axis frictional connection;The pedestal fixed setting, is located at the side of passive thickness measuring wheel shaft;The passive thickness measuring wheel shaft is arranged in thickness measuring On holder, the thickness measuring bracket is mounted on pedestal, is rotatablely connected with pedestal;One end of the sheet metal is fixed on pedestal, The other end is connected on thickness measuring bracket, its up-down vibration is driven by thickness measuring bracket;The eddy current coil regulation is in the upper of sheet metal Side, and circuit board electrical connection, by its spacing between sheet metal of circuit board detecting;
The thickness measuring mounting plate is equipped with the connecting hole for connecting passive thickness measuring wheel shaft and the fluting convenient for measurement vibration; The extension bearing is mounted in connecting hole, and the end of the passive thickness measuring wheel shaft is inserted into connecting hole, by extend bearing with Thickness measuring mounting plate connects, and vibration when measuring is passed to thickness measuring mounting plate;One side edge of the fluting from thickness measuring mounting plate Extend to the other side and thickness measuring mounting plate is divided into the top for measurement and the lower part for installation;It is described fluting and not through Thickness measuring mounting plate;The 3-axis acceleration sensor is arranged on the top of thickness measuring mounting plate, and and circuit board electrical connection.
8. the banknote thickness gauge according to claim 7 based on 3-axis acceleration sensor, which is characterized in that the survey Thick mounting plate lower part is additionally provided with the second 3-axis acceleration sensor for improving measurement accuracy, and second 3-axis acceleration passes Sensor is arranged on the corner of lower part, with circuit board electrical connection.
9. the banknote thickness gauge according to claim 7 based on 3-axis acceleration sensor, which is characterized in that described three Axle acceleration sensor is arranged in the upper corner of thickness measuring mounting plate.
CN201810059233.7A 2018-01-22 2018-01-22 Paper money thickness measuring method and device based on three-axis acceleration sensor Active CN108734847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810059233.7A CN108734847B (en) 2018-01-22 2018-01-22 Paper money thickness measuring method and device based on three-axis acceleration sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810059233.7A CN108734847B (en) 2018-01-22 2018-01-22 Paper money thickness measuring method and device based on three-axis acceleration sensor

Publications (2)

Publication Number Publication Date
CN108734847A true CN108734847A (en) 2018-11-02
CN108734847B CN108734847B (en) 2020-02-07

Family

ID=63940436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810059233.7A Active CN108734847B (en) 2018-01-22 2018-01-22 Paper money thickness measuring method and device based on three-axis acceleration sensor

Country Status (1)

Country Link
CN (1) CN108734847B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101802645A (en) * 2007-05-24 2010-08-11 企鹅自动化系统公司 Subsurface positioning system and method for monitoring movement underground
CN102364311A (en) * 2011-08-31 2012-02-29 中国人民解放军军械工程学院 Absolute testing method for six degrees of freedom vibration based on triaxial accelerometer array
CN104091387A (en) * 2014-07-28 2014-10-08 广州广电运通金融电子股份有限公司 Thickness detecting device for flaky medium
CN105069897A (en) * 2015-08-28 2015-11-18 上海古鳌电子科技股份有限公司 Bill thickness detecting device
CN105261107A (en) * 2015-10-15 2016-01-20 东方通信股份有限公司 Device and method for detecting thickness of paper and transferring paper
CN106296971A (en) * 2016-08-31 2017-01-04 东方通信股份有限公司 A kind of note surface paste high precision test identification system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101802645A (en) * 2007-05-24 2010-08-11 企鹅自动化系统公司 Subsurface positioning system and method for monitoring movement underground
CN102364311A (en) * 2011-08-31 2012-02-29 中国人民解放军军械工程学院 Absolute testing method for six degrees of freedom vibration based on triaxial accelerometer array
CN104091387A (en) * 2014-07-28 2014-10-08 广州广电运通金融电子股份有限公司 Thickness detecting device for flaky medium
CN105069897A (en) * 2015-08-28 2015-11-18 上海古鳌电子科技股份有限公司 Bill thickness detecting device
CN105261107A (en) * 2015-10-15 2016-01-20 东方通信股份有限公司 Device and method for detecting thickness of paper and transferring paper
CN106296971A (en) * 2016-08-31 2017-01-04 东方通信股份有限公司 A kind of note surface paste high precision test identification system and method

Also Published As

Publication number Publication date
CN108734847B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN101628704B (en) Micromechanical sensor element, method for manufacturing a micromechanical sensor element and method for operating a micromechanical sensor element
CN101750046B (en) Angle measuring device, method and engineering machine
CN104350359B (en) Physical quantity transducer
Koene et al. IoT connected device for vibration analysis and measurement
CN104280565B (en) There are three the speed probe of sensitive axes and the methods for manufacturing speed probe for tool
CN207601108U (en) Integrated MEMS acceleration transducer
CN101957387B (en) Device and method for testing static performance of triaxial micro accelerometer
CN107014480A (en) Linear motor displacement amplitude detection method and detection means
CN209181958U (en) A high-speed dynamic balance test system for a flexible rotor test station
Ghemari et al. Parameters improvement and suggestion of new design of capacitive accelerometer
CN102914414B (en) Vibration measuring instrument based on Android platform mobile phone and detection method thereof
CN101949752B (en) Triaxial adaptive dynamic-balance execution device for centrifuger
CN101813499A (en) Method and device for calibrating three-dimensional micro tactile sensor
CN202869645U (en) Portable vibration measuring instrument based on Android platform mobile phone
CN109579810A (en) Physical amount measuring device, electronic equipment and moving body
TWI578134B (en) Linear slide bearing monitoring system
CN210666065U (en) Calibration device of seismic intensity instrument
CN208937345U (en) Machine test rack console
CN108734847B (en) Paper money thickness measuring method and device based on three-axis acceleration sensor
CN101373156B (en) Sub- and micro- Newton level force measuring system
CN102489546B (en) Method and system for measuring plastic deformation load
CN107941192A (en) A kind of angle of rudder reflection tester
CN208432333U (en) A kind of table top assembly
CN201561749U (en) Angle measuring device and project machine
CN108010185A (en) The detection identification device and method of a kind of banknote thickness abnormity

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
GR01 Patent grant
GR01 Patent grant