Flexible interdigital-electrodes based triboelectric generator can not only harvest sliding mechanical energy but also be used to harvest rotating energy. The generator has advantages of flexibility, light weight, durability, portability and high output power.