Step 5The touch pad - how it works
The concept for this touch pad is simple. It is essentially a wire grid, with three bare wires running in rows, and three bare wires running in columns above the rows. At each intersection point is a small square of insulation that prevents the two wires from touching. A finger touching the intersection will make contact with both wires, resulting in a huge, but finite resistance between the two wires. A small current, but detectable, current can therefore be made to flow from one wire to the next, via the finger.
To determine which intersection was pressed, the following method was used:
Step 1: Set all the column lines to OUTPUT LOW.
Step 2: Set the row lines to INPUT, with the internal pullups activated.
Step 3: Take an analog read on each row line until the value drops below a given threshold. This tells you in which row the pressed intersection is.
Step 4: Repeat Steps 1-3, but now with the columns as inputs and the rows as outputs. This tells you which column the pressed intersection is.
To minimise the effects of noise, a number of readings are taken and then averaged. The averaged result is then compared against a threshold.
Since this method just checks against a threshold, it's not suitable for detecting simultaneous presses. However, since tic tac toe proceeds in turns, reading a single press is sufficient.
Attached is a sketch illustrating how the touchpad works.
As with the LED matrix, bits are used to represent which intersection was pressed.
| « Previous Step | Download PDFView All Steps | Next Step » |















































Example: ChaN's Simple Touch Sensor
any solution to download them proper?
they all got a .tmp extension