Hi Titanus1
The connections to the light unit are the wrong way around.
The Black -ve lead should be at the rear of the light and the Red +ve lead should be at the front. (See this post)It would be better to have the switch on the
+ve side of the lamp, as the lamp mounting bracket is connected to ground!
This will ensure the lamp does not remain on
(with the light switch turned off), as it will
if your battery is also grounded.
I would recommend using a small inline fuse
(1Amp or less) for the lighting circuit, where it connects to the
+ve supply.
The cable route should be something like this:
[Battery/Speed controller +ve]->Red cable->
[Fuse]->Brown cable->
[Switch]->Yellow cable->
[Soldered joint]->Red cable to front connection on headlamp->
[Lamp]->Black cable from rear of headlamp->
[Battery/Speed controller -ve]I'll try to post a better circuit diagram for the lighting when I get some spare time.
Alan