Thus the coding electrode pattern in the sliding direction can be decoded accordingly based on the relative amplitudes of the output peaks. An example of an alternative sensor 1200 that makes use of 0/1 coding is shown in Figure 12. A sensor 1200 with 0/1 coding may have advantages over L/S coding, as the output signals may be more readily interpretable, and the spacing between grid lines may be kept smaller. The sensor 1200, as for sensor 1100, may include a substrate, an Al electrode 1210 disposed on the substrate, and a friction layer (e.g. PTFE) disposed on the electrode 1210, with the electrode being buried between the substrate and the friction layer except for a portion 1211 which is exposed and acts as a contact pad for connecting the electrode 1210 to an external circuit. As depicted in Figures 12(a) and 12(c), the electrode pattern in each direction D1-D8 on the grid 1210 may comprise one beginning electrode 1212a and one ending electrode 1212d as reference points for the recognition of the positions of the output peaks in the time domain. Intermediate electrodes may be arranged to be present or absent in accordance with a 3-bit binary code of 000, 001, 010, Oil, 100, 101, 110, and 111 (where "1" means that there is one strip electrode in that position and "0" meaning that there is no strip electrode in that position). Three intermediate electrode positions are shown in Figures 12(a) and 12(c), to encode eight different directions (denoted D1-D8 in Figure 12(c)). It will be appreciated that fewer or more intermediate electrode positions may be adopted in certain embodiments, depending on the number of directions that are to be encoded. For example, if only four distinct directions are required, then a grid 1212 with two intermediate electrode (grid line) positions per direction may be adopted. When sliding across the beginning electrode 1212a, there is always one output peak generated. Then if there is a strip electrode 1212b in the first coding position, another output peak is generated. If there is no strip electrode in the first coding position, no output peak is generated and the signal remains as 0. The same applies for the second and the third coding positions. After three