Here is a picture of the Das-Kit CT5 I5
controller:
https://epiccycles.ca/product/spare-parts/magnum-i5-controller/
It is a black box and mounted under the downtube near the crank on most bikes. The controller feeds the signals to the motor, controlling amount of current flowing, voltage, etc...