Electrical – Wiring LEDs to a 120VAC wall outlet

led

I have looked for a solution to my problem, but none of the answers I have found quite help me.

I am a beginner at electronics but have a general understanding of the physics behind electrical systems and circuits. I have a water pump that is powered from a 120VAC wall outlet, which will be used to move water in a makeshift fountain I am assembling. I want to power some 6VDC LEDs from the same plug to give it some lighting effects but I dont want to accidentally cut off the power to the small water pump. I have seen various posts about getting a transformer or capacitors to drive the LEDs but I cant quite get my head around how to implement any of these solutions. I know I can use batteries to drive the LEDs but if I have to plug the pump in anyway, I would prefer to power the entire fountain and LEDs from one plug.

Thanks in advance.

Best Answer

Most common LEDs operate at about 20mA

eg: https://www.adafruit.com/product/1793

3.4V forwards voltage so from a 5V "USB-shaped" supply you'd need to drop 1.6V - ar 20mA that's 80 ohms. so use a 82 ohm resistor (0.05W or larger) for each LED

schematic

simulate this circuit – Schematic created using CircuitLab