The measurement of downhole drilling motor rotational speed is crucial for optimizing drilling operations, improving work efficiency, and preventing equipment failures. However, traditional downhole rotational speed sensors suffer from power supply limitations, which can increase drilling costs. To address this issue, this study presents a novel multifunctional rotational speed sensor based on triboelectric nanogenerator (TENG) technology, enabling the self-powered measurement of rotational speed, direction, and angle. Our experimental results demonstrate that the sensor operates stably within a temperature range of 0 to 150 °C and a humidity range of 0 to 90%. It achieves rotational speed measurement with an accuracy of less than 2.5% error within a range of 0 to 1000 rpm, angular measurement with a resolution of 60 degrees and an error of less than 2% within a range of 0 to 360 degrees, and rotational direction measurement. Furthermore, the sensor exhibits self-powered functionality, achieving a maximum power output of 29.1 μW when the external load is 10 MΩ. Compared to conventional rotational speed sensors, this sensor possesses the unique advantage of integrating the measurement of rotational speed, angle, and direction, while simultaneously harnessing downhole working conditions for self-power generation. These characteristics make it highly suitable for practical downhole environments.