A hub motor can be powered by a battery, a generator, or a motor controller. If you are using a battery, you will need a motor controller to run the motor. If you are using a generator, you will need to connect the generator to the motor controller.