Showing the inside of an e-bike hub motor, with planetary gears. This motor can also be used as electric generator, for alternative energy projects, because it has magnets inside. Its a 3 phase brushless motor. To get DC out of it, you’ll need a 3 phase full wave bridge rectifier circuit.