4 Schematic of the System
For best results an Arduino or similar microcontroller with an analog to digital converter (ADC) module can be
used to measure the position (X-Y) and relative force (Z) of touch. Figure 2 is an example schematic of a typical
TPE-800 implementation for measuring position & force. The sensor pins are connected to the microcontroller as
follows:
? X1 – Digital pin
? X2 – ADC pin AX2
? Y1 – Digital pin
? Y2 – ADC pin AY2
To measure the X and Y location of touch, the following steps should be followed:
5.1 X Position
The X position of an applied force can be measured in a way similar measuring the position of a potentiometer.
6 Force Measurement
The following subsections describe 3 methods for measuring force. Each method presents compromises which will be discussed later. The preferred method should be selected according to the application. Each of the force measurement methods introduced in this document has been tested on TPE-800 at several test points, and the results are presented as plots. Figure 3 shows test point locations.
6.1 Method 1
The force being applied on the sensor is inversely proportional to the value of RF. So, the force can be estimated by measuring RF.
Setup X1 as an output pin on the microcontroller and make it output a digital HIGH signal.
Setup Y1 as an output pin on the microcontroller and make it output a digital LOW signal.
Setup X2 and Y2 as input pins
Take an ADC measurement, AX2, on pin X2
Take an ADC measurement, AY2, on pin Y2
Calculate the relative force being applied using the following formula:
Force = AX2 – AY2
Figure 4 shows the result of this method on an actual 3D sensor at several test points.
6.2 Method 2
Method 2 follows the same principle as Method 1 except that it reads values from the two opposite edges of
the sensor and calculates the force as the average of these values. The following steps should be followed to
implement this method:
Setup X1 as an output pin on the microcontroller and make it output a digital HIGH signal.
Setup Y1 as an output pin on the microcontroller and make it output a digital LOW signal.
Setup X2 and Y2 as input pins
Take an ADC measurement, AX2, on pin X2
Take an ADC measurement, AY2, on pin Y2
Calculate the first reading using the following formula:
Value1 = AX2 – AY2
Setup X2 as an output pin on the microcontroller and make it output a digital HIGH signal.
Setup Y2 as an output pin on the microcontroller and make it output a digital LOW signal.
Setup X2 and Y2 as input pins
Take an ADC measurement, AX1, on pin X1
Take an ADC measurement, Ay1, on pinY1
Calculate the second reading using the following formula:
Value2 = AX1 – AY1
Calculate the force as the average between Value1 and Value2
Figure 5 shows the result of this method on a 3D sensor at the test points described earlier.
6.3 Method 3
The third method employs extra hardware for improved results. This method needs 2 additional GPIO pins
and 2 additional ADCs which will be used as virtual grounds and measurement pins, as well as 4 extra resistors
(Resistors in the range of 1 K? to 5K? are suggested). Figure 6 shows the circuit diagram of this method, using
an Arduino as the microcontroller unit.
The strategy behind this method is to drive one of the drive lines in the bottom layer high and treat the drive
lines in the top layer as wipers. The voltage on each of these top layer drive lines will be measured using ADC
when the virtual ground relating to that pin is low. The same process will then be repeated with drive lines in
the bottom layer as wipers. At the end the average of all four measured values will be taken. The following steps
should be followed to implement this method:
Figure 7 shows the result of this method on an actual 3D sensor at the test points.
6.4 Advantages and Disadvantages
? Method 1 is the simplest to implement. Using only two GPIO and 2 ADC pins, it also requires the minimum hardware. This method achieves low noise characteristics without filtering or averaging leaving system
processing power free for other tasks. However, force measurements are not as consistent at different locations on the sensor as indicated by the shi ed curves in Figure 4.
? Method 2 is a compromise between Method 1 and Method 3. It improves the consistency of the force
measurements in Method 1 without additional hardware or system resources. Comparing Figures 4 and 5,
we can see that force curves resulting from Method 2 are more consistent and closer grouped. While this
method doesn’t need extra hardware it uses more processing power due to the additional measurement and averaging.
? Method 3 further improves the consistency of force measurements. This method also increases the sensitivity of the sensor resulting in a lower activation force (around 25g typical). However, this method is the most complex and needs 2 extra GPIO and ADC pins (4 of each in total) and 4 extra resistors. Furthermore, the algorithm for this method takes more processing system resources, is slower and
generally more complex to implements than the other two.