# How can I Power a 20-50mA LED from the 240V AC Wires of a Motor in a Safe Way?

I own an ice cream machine which is perfect, except it lacks a light so one can check the state of the process. The motor case would be the perfect place to install a white LED, which will consume just 20-50mA current.

My problem is: the motor is powered by 240V AC, as shown in the following three photos.

### The Label on the Motor

The label on the motor contains this text:

6020D 220-240V 50Hz
20W Class B
Zhongshan Donlim weili
Electrical.Ltd


There are four connectors, neutral N and phase L and two unknown 1 and 2 wires.

## Question

What would be the safest way to power a 20-50mA white LED from these wires?

• There is only enough space for an SMD LED. A regular indicator LED is too bulky.
• I can easily create a custom PCB for the solution.
• I can also create professional connectors and insulated cables.
• The solution can be complicated and expensive, involving special chips and components.
• A minor point: "... which will consume just 20-50mA of power." mA is a measure of current, not power. In any case, we don't have to explain the units in the same way we don't say "100 km/h of speed". We just say "100 km/h" and the units tell us what the measure is. – Transistor Sep 17 at 19:29
• @Transistor Fair point, this is not correct, I fix it in the text. – Flovdis Sep 17 at 19:53
• How is a surface-mount LED supposed to provide any meaningful illumination from inside the motor housing? Is the housing translucent, or are you thinking of making tiny hole(s) or a clear window where the LEDs are placed? This sounds like a lot of work. – rdtsc Sep 17 at 21:26
• @rdtsc I will add a small hole at the bottom side of the housing for the LED. – Flovdis Sep 17 at 21:47