A resistive touch screen calibration method using sub region calibration method for touch screen calibration, 1) for an area of the touch screen, set the calibration point; 2) coordinates read: judging touch screen effectively pressed; continuous read AD sampling data of 24 frames; the sampling data sorting, remove the high frame, 4 low 4 frames, the remaining data shift average; 3) calibration coefficient: read touch coordinates calibration points; calculating the calibration coefficient of the region: obtaining coordinates of the touch coordinates display coordinates in advance is set by the program, known as the data will be collected from the two touch coordinates difference divided by the difference of the two shows to obtain the coefficients of the linear coordinate position; 4) touch coordinates and display coordinates conversion: read touch coordinates; according to the calculated partition value coordinates according to the calibration system in different areas; The touch coordinates are converted to the display coordinates, and the touch coordinates and calibration coefficients are multiplied to get the display coordinates of the touch point.
【技术实现步骤摘要】
一种电阻式触摸屏校准方法
本专利技术涉及工业触摸显示领域的一种触摸屏校准方法,尤其是涉及一种电阻式触摸屏的精准校准方法。
技术介绍
随着工业智能化的日益发展,人机交互越发重要。触摸屏作为人机交互的重要设备,广泛应用于工业和民用领域,但由于现有的触摸算法存在机械误差和放大因素的误差,在实际中会出现触摸点位和LCD屏上的图形对应点会有所偏差,存在抖动、位置不准确等缺点,影响使用效果和触摸操控精度和准确性。尤其在工业控制领域,触摸屏具备优良的程序框架、精准的触摸算法、快速的响应速度尤其显得更加重要。中国专利技术专利申请(专利申请号201010260566.X)提出了一种简单有效的电阻式触摸屏的校准方法,采用横纵校准方法,校准效果基本接近于五点校准法的水平,但其计算复杂度仅比两点校准法略增加,而远远低于三点校准法和五点校准法,对于大尺寸触摸屏有更佳的校准效果。现有触摸屏校准算法多采用去抖动算法来处理获取的触摸坐标值,但在工业环境的使用中存在各种电磁干扰,单纯的求平均不能满足实际的需要,仍然存在较大的偏差,因此有必要对现有电阻式触摸屏校准方法提出改进,以进一步解决现有触摸算 ...
【技术保护点】
一种电阻式触摸屏校准方法,采用分区域校准的方式实现触摸屏校准,其特征在于:所述校准的过程包括:1)对于触摸屏某一区域,设置校准点位置;2)坐标读取:(1)判断触摸屏有效按下;(2)连续读取AD采样数据24帧;(3)将采样数据进行排序,去掉数据中的高4帧、低4帧,剩余数据移位求平均;3)设置校准系数:(1)依次读取触摸校准点的坐标;(2)计算该区域的校准系数:获取坐标点的触摸坐标,显示坐标事先由程序设定,为已知数据,将采集到的触摸坐标两点之差除以显示坐标的两点之差即得到此位置上的线性系数;4)触摸坐标和显示坐标之间转换:(1)读取触摸坐标;(2)根据坐标值计算所在分区;(3) ...
【技术特征摘要】
1.一种电阻式触摸屏校准方法,采用分区域校准的方式实现触摸屏校准,其特征在于:所述校准的过程包括:1)对于触摸屏某一区域,设置校准点位置;2)坐标读取:(1)判断触摸屏有效按下;(2)连续读取AD采样数据24帧;(3)将采样数据进行排序,去掉数据中的高4帧、低4帧,剩余数据移位求平均;3)设置校准系数:(1)依次读取触摸校准点的坐标;(2)计算该区域的校准系数:获取坐标点的触摸坐标,显示坐标事先由程序设定,为已知数据,将采集到的触摸坐标两点之差除以显示坐标的两点之差即得到此位置上的线性系数;4)触摸坐标和显示坐标之间转换:(1)读取触摸坐标;(2)根据坐标值计算所在分区;(3)根据不同分区的校准系数,将触摸坐标转换为显示坐标;将获取的触摸坐标和校准系数相乘即可得到触摸点的显示坐标。2.根据权利要求1所述的电阻式触摸屏校准方法,其特征在于:以区域一为例,获取坐标点,将连续获取的24帧坐标数据放入databuf,将databuf从小到大排序,分别舍去4帧databuf的高地址数据和低地址数据,将databuf[4]—databuf[19]...
【专利技术属性】
技术研发人员:崔明齐,
申请(专利权)人:郑州朗睿科技有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。