Electronic – Running 5V status LEDs on 24V circuit

ledsolid-state-relayvoltage

So I have a relatively simple circuit. I have a little float sensor that is connected to a 24V circuit and when that float sensor is triggered (water is too low in the container) it connects the circuit, which triggers a solid state relay to connect a 120VAC circuit to turn on a pump which pumps up the container until the float sensor disconnects. I would like to add a status LED on the side of the 24V, probably on the low side of the SSR, so that I know when it is pumping and when it is off. Is there any clever way to add a 5V LED onto this circuit, or do I just need to bite the bullet and buy a 24V LED? I've included my circuit below:

enter image description here

UPDATE:

Here is the updated schematic based on the help I've received:enter image description here

Best Answer

First, take note that your SSR is drawn backwards in your schematic.

Most LED's are current driven devices that will illuminate properly with 10 to 15 mA of current. When this much current passes through the LED, it generally has about 2 volts across it. This means that you need a resistor that will have the other 22 volts across it when ~10 mA of current is passing through it.

A simple Ohm's law calculation of 22 volts / 0.010 amps shows that a resistor of ~ 2200 ohms should do the job. Then calculate the wattage rating of the resistor as 0.010 amps * 0.010 amps * 2200 ohms and you have 0.22 watts. For reliability sake, you should use at least a 0.5 watt resistor.

The LED is connected in parallel with the LED of your SSR with the same polarity as the LED in the SSR (recalling that your schematic shows it backwards).