Hooking from led - avoid the dim

Hya, i have an appliance and want the led status (on or off) being read by my esp8266.

connecting a 1N25 optcoupler on + and - from the led will surelly do the job, but the led will dim due the drain from the optcoupler led.

Any hint or advise in how to avoid the dimming?

Thx in advance!

What appliance led color?

Did you use a resistor in series with the opto LED. Try 220-470 ohm.
That won't dim the existing LED much, while still pushing enough current to the opto LED.
Connect the opto transistor between pin and ground of the ESP, with internal pull up enabled.
No resistor on the ESP side.
Leo..

You could identify the appliance's LED's current-limiting resistor and pick the signal off there and add your own current limiting resistor into the optocoupler.

@ruilviana

red

@DaveX

Unfortunately, no resistor to the leds, they are directly to the IC.


@Wawa ,

i did, and also a diode, trying to reduce the optocoupler drain, but leds remain dim.

The diagram for the board:

the board:

input: 220AC

Can you identify IC1?

PS: This is the same appliance?

I think you can increase the resistor for the opto LED to 1k. I doubt that would dim the red LED.
Don't use a diode. Only use internal pull up on the ESP side.
Leo..

the IC is a custom one: MLX26207CA. could not find a datasheet for it.

yes, it's the same.

as i now got the schematics, i'm willing to replace the design for something simpler, also replacing ESPEasy by ESPHome.

so, i will trigger the three buttons by ssr driven by optocouplers and monitor the 2 leds.

but until now, leds just get dim by hooking them.

What is the function of each button on the board?

t1 and t2 on
t3 off

This button type has internal jumper connecting pins.
image

@ruilviana

thx man. you are right about the buttons.

i will go another way. instead of reading the led status (on or off), i will monitor AC by hooking A2 and A3, which will indicate the the device is on or off, as the relay K1 controls it.

This way i will simplify the design, with SSR triggered by PC817 in parallel to T1, T2 and T3, and an AC sensor monitoring A2 and A3.
This way i can make it work using MQTT (sending and reding topics).

When done, i'll come back with the results.

@ruilviana ,

as promised, i'm back.

no ssr, just the pc817 triggering the three buttons and ac (heather working) hooked.

Working.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.