An automatic calibration method for the reference frequency of an electromagnetic pen includes the following steps: after the electromagnetic screen enters the calibration mode, when the electromagnetic screen detects the signal of the electromagnetic pen, the electromagnetic screen reads and stores the multiple frequency signal values of the electromagnetic pen several times; determines the maximum and minimum values of the multiple frequency signal values; and compares the difference between the maximum and minimum values of the frequency signal values; If the difference between the maximum value and the minimum value is less than the preset threshold value, the multi-frequency signal value is filtered to get the processed frequency signal value, which is determined as the calibrated reference frequency. The reference frequency automatic calibration method of the electromagnetic pen of the invention enters the calibration mode by manual operation. When entering the calibration mode, the electromagnetic screen automatically scans and judges, and automatically calculates the reference frequency of the electromagnetic pen for calibration. The calibration is very convenient and fast, and the error is very low. It can meet the requirements of batch calibration and testing, and has no technical requirements for the operator. Easy to implement, should vigorously promote.
【技术实现步骤摘要】
电磁笔的基准频率自动校准方法
本专利技术涉及电磁屏领域,特别涉及一种电磁笔的基准频率自动校准方法。
技术介绍
电磁屏系统中,压感的实现的原理是通过电磁笔尖受的力度不同产生的频率不同来实现的。电磁笔尖受力越大,频率变化越大(根据内部电路的不同,频率变化可以是往大的方向变化,也可以是往小的方向变化)。当电磁笔的笔尖不受力时,压感就为0,其频率就是一个固定值,因此,只要确定压感为0时的频率为基准频率,就可以根据不同的变化频率实现不同的压感效果。电磁笔电路由于元器件参数的误差或者磁芯和线圈安装的位置偏移,导致其一致性比较差,每支电磁笔的频率都不完全一样,这便导致需要进行基准频率校准。传统的方法是通过专业的仪器和感应线圈进行一个一个测试,其后通过人工调整电磁笔的线圈位置或者元器件参数,在电磁笔的硬件上进行调整,从而保证基准频率的一致。这种校准方法,其效率很低,而且也需要有一定技术基础的人才能实现操作,而且其批量生产时误差也比较大,因此,其存在很大的弊端。
技术实现思路
本专利技术旨在解决上述问题,而提供一种校准效率高、误差低、操作简单的电磁笔的基准频率自动校准方法。 ...
【技术保护点】
1.一种电磁笔的基准频率自动校准方法,其特征在于,其包括以下步骤:电磁屏进入校准模式后,当电磁屏检测到电磁笔的信号时,电磁屏多次读取并分别保存电磁笔的多个频率信号值;确定所述多个频率信号值中的最大值和最小值;对频率信号值中的最大值和最小值之差进行比较,若最大值与最小值之差小于预设阈值,则对所述多个频率信号值进行滤波去抖,获得处理后的频率信号值;存储所述处理后的频率信号值,将其确定为校准后的基准频率。
【技术特征摘要】
1.一种电磁笔的基准频率自动校准方法,其特征在于,其包括以下步骤:电磁屏进入校准模式后,当电磁屏检测到电磁笔的信号时,电磁屏多次读取并分别保存电磁笔的多个频率信号值;确定所述多个频率信号值中的最大值和最小值;对频率信号值中的最大值和最小值之差进行比较,若最大值与最小值之差小于预设阈值,则对所述多个频率信号值进行滤波去抖,获得处理后的频率信号值;存储所述处理后的频率信号值,将其确定为校准后的基准频率。2.如权利要求1所述的电磁笔的基准频率自动校准方法,其特征在于,当对频率信号值中的最大值和最小值进行比较时,若最大值与最小值之差大于或等于预设阈值,则校准失败,所述电磁屏退出校准模式。3.如权利要求1所述的电磁笔的基准频率自动校准方法,其特征在于,所述滤波去抖包括使用中位值平均法、滑动平均法中的一种或多种进行滤波去抖。4.如权利要求1所述的电磁笔的基准频率自动校准方法,其特征在于,所述滤波去抖是指:将所述多个频率信号值的最大值和最小值去掉,计算剩余的频率信号值的算术平均值。...
【专利技术属性】
技术研发人员:张银虎,
申请(专利权)人:深圳市天美意科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。