Transformerless Power Supply For Led

I have a 4 led night bulb and a spare not working adapter.
Transformerless power supply for led. Low voltage dc like 5v 6v 9v 12v is used in electronics circuits led bulbs toys and many household electronics items generally batteries are used to power them but they need to be replaced time to time which is not cost effective and also takes our time energy. Generating low voltage dc from the 220v or 110v ac mains is very useful and necessary in the field of electronics. I took out the actual components out of bulb and then replaced it with faulted pcb of adapter and i again got a 12 v adapter which i basi. Its actually a hack and a concept of reuse of scrap.
A transformerless power supply converts high ac input voltage 120v or 230v to the desired output dc low voltage 3v or 5v or 12v with low current output in milliamps. Before we learn the formula for calculating and optimizing resistor and capacitor values in a transformerless power supply it would be important to first summarize a standard transformerless power supply design. Each time i intend to use transformerless power supply to power microcontroller 8051 atmega328p and even a dc fan of 12v 1 4a i notice that they never get powered even though the power supply has been tested to produce the required 12v or 5v dc as the case may be. Transformer less 12v power supply out of led bulb.
Circuit diagram resistive transformer less power supply circuit diagram. Resistive transformer less power supply is similar to capacitor power supply except that instead of reactance it uses resistance to limit current. Analyzing a capactive power supply. It is used in low power electronic applications like led bulbs toys and household appliances.
Please i am having this issues with transformerless power supply. Thus here excess energy is dissipated as heat across the voltage dropping resistor. Resistive transformerless power supply. Basically a transformerless power supply is just a voltage divider network that takes the 220v ac as input and divides it down to lower dc voltage that we want.