Much more is needed than just a capacitor. 1) the track polarity may change 1s a full bridge rectifier is needed. 2) the voltage will change on the track depending upon speed. I use 12 v strip leds, thus put a 12 volt regulator inline. 12 v LEDs will operate down to about 7v these are polarity sensitve also. 3)finally a smaller capacitor is put in line between the voltage regulator, be carefull about polarity. The diodes in the rectifier will stop any reverse current to the track. I make these up using a cut piece of circut board with linear traces. 4 holes wide and 6 long being sure to cut the approprate trace that between the bridge rectifer and capacitor.