Can anyone advise me about electronics? I have an elderly Shay loco and the lights, headlight and rear are non functioning. I have made a new circuit which works fine as I want it to except when I run the circuit with a motor connected for testing, the LED light flickers? without the motor, no problem constant brightness? can anyone help me with a cure, I think I may need a capacitor in the circuit, but I am a mechanical man dabbling in electronics and getting a bit out off my knowledge zone?? Help