ending reference point (001), in the middle of the two reference points (010), or closer to the beginning reference point (100). Similarly, if there are two output peaks in between, the coding information can be Oil, 101, or 110, according to the positions of the two output peaks, i.e., both closer to the ending reference point (Oil), one closer to the beginning reference point and one closer to the ending reference point (101), or both closer to the beginning reference point (110). Through measuring the peak position with respect to the two reference points in the time domain, the coding information in each direction can be decoded. The robustness of the device 1200 and detection mechanism regarding the variation of sliding speed is discussed below in Example 3. The experimental results indicate that as long as the sliding speed does not vary by more than 40%, the coding information can be correctly decoded and all directions can be recognised. The sensor 1200 with 0/1 coding may be adopted for 3D drone control, with the eight 0/1 coding electrode patterns for multi-directional in-plane control and the two additional electrode patterns for rotation and up/down control. I n this regard, 3D drone control can be realised using the sensor 1200 with only one electrode output. To differentiate the output signal patterns from those of in- plane control, the electrode pattern 1216 for rotation control may be configured with six strip electrodes while the electrode pattern 1214 for up/down control may be configured with seven strip electrodes. To further distinguish the direction of sliding left/right and up/down, the spacing of these electrodes may be varied from small to large in each pattern. Then according to the number of output peaks and the trend of the peak intervals (increasing or decreasing), left/right rotation control and up/down control can be determined. I n one embodiment, the sensor 1200 may be adopted for 3D control of a virtual drone in cyber space. As shown in Figure 13, a triboelectric control system 1300 comprises an eight-direction sensor 1200 as the control interface, a processing circuit 1310 for triboelectric signal detection and conversion into square wave signal, a microcontroller unit (MCU) 1312 for signal recognition and control command generation, and a computer 1314 for drone manipulation based on control command. The interface 1200 is programmed with the MCU 1312 to