close

2 Points Calibration for Position Decoding

test

1. LL and UR are the calibration target points of touch panel, the points are setup at

LL = (1/8 screen X, 1/8 screen Y) = ( 256 , 256 ) ADC ;

UR = (7/8 screen X, 7/8 screen Y ) = ( 1791 , 1791 ) ADC

2. During calibration, press on these two target points, the raw data are obtained as

LL ‘and UR’:

LL’ = ( LLX, LLY ) ;

UR’ = ( URX, URY )

3. After the calibration, whenever the panel was touched, firmware report the raw data X and Y. Then, the calibrated position X’ and Y’ are calculated with the formulation as follows:

X – LLX

URX – LLX

X’ = X 1536 + 256

URY – LLY

Y – LLY

Y’ = X 1536 + 256



arrow
arrow
    全站熱搜
    創作者介紹
    創作者 gordenhao 的頭像
    gordenhao

    高登

    gordenhao 發表在 痞客邦 留言(0) 人氣()