You need a filter cap after the full wave bridge to Make DC.
I added a 10 μF ceramic capacitor rated at 50 V at the in and out port of the voltage regulator as illustrated.
The datasheet for OKI-78SR-5/1.5-W36-C (
https://www.electro-tech-online.com/custompdfs/2012/12/oki-78sr.pdf on page 11) says:
Recommended Input Filtering
The user must assure that the input source has low AC impedance to provide
dynamic stability and that the input supply has little or no inductive content,
including long distributed wiring to a remote power supply. The converter will
operate with no additional external capacitance if these conditions are met.
For best performance, we recommend installing a low-ESR capacitor
immediately adjacent to the converter’s input terminals. The capacitor should
be a ceramic type such as the Murata GRM32 series or a polymer type. Initial
suggested capacitor values are 10 to 22 μF, rated at twice the expected maximum
input voltage. Make sure that the input terminals do not go below the
undervoltage shutdown voltage at all times. More input bulk capacitance may
be added in parallel (either electrolytic or tantalum) if needed.
With the addition of the 2 capacitors (as illustrated), the pic still lit the light. Do I need to adjust the capacitor size or add either electrolytic or tantalum capacitors? If so, what size?