Most Motors are Generators, too. It’s just the same device: If you put rotation onto it, electricity comes out at the other end. If you put elecricity into that end, it starts spinnig. You could even couple two of those devices at the drive shaft and put electicity into one. Then they both starts turning and on the other end electricity comes out. Or vice versa: you connect them by cables and spin one and the other starts spinning, too. There are losses, but it will work in general.
Whenever you are not povering your bicycle, car or whatever the motors starts producing a voltage. If you put any resistance to it the now-generator literally turns motion into electricity. In result you’ll get slower and your battery charges up. Old trams were breaking this way over big resistors on their roofs to prevent wear on the disk breaks. Modern trams/trains putting the energy back into the power line for other trams.
Latest Answers