I am currently working on a project that will be a type of night light that plugs straight into a wall. What parts can I use to convert the wall outlet voltage into that which can be used by a couple LEDs. I was thinking These(a few Board Mount AC/DC converters on DigiKey) should work, will they? Also how do I find the prongs that go into the outlet? I would like to make this in a way that could be manufactured and sold on a larger scale and I need help!
closed as off-topic by Chris Stratton, Dmitry Grigoryev, Voltage Spike, R Drast, Charles Cowie Jul 18 '18 at 21:34
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions on the use of electronic devices are off-topic as this site is intended specifically for questions on electronics design." – Chris Stratton, R Drast, Charles Cowie
Most inexpensive "dollar store" night-lights use a diode and series resistor to drop 115 VAC (as indicated by your outlet, as opposed to some countries where 240 VAC is common) to the ~3 VDC needed by the LED. This is wasteful, since ~97% of the energy is changed to heat by the resistor. While a small amount of power, about 2.5 W is continuously wasted. Additionally, it appears you do not have experience working with mains circuits, so for safety, buy an approved wall power supply (AKA "wall wart").
If you get or salvage an isolated 5 Volt DC cell-phone or tablet charger, you'd need to drop ~2 volts across a resistor. If the LED uses 20 mA, a 100 Ohm resistor for each LED is needed. You might prefer to run the lights from a rechargeable cell: one lithium cell with a 50 Ohm resistor for each LED would work, and this could also be used in a power outage.