Hi,
I made my first electric bike with a conversion kit I got from the internet. I attached 3 12V batteries to a 36V controller.
The controller has several wires going to the brakes, motor (36V, 350W), brake lights, on/off switch etc... (in the picture below you can see the circuit as it is...