Hi,
I have a latched relay (G6CU-2117P-US), placed in its own circuit. The relay is turned on by a 3V pulse, and off by reversing polarity.
Since the relay is a inductor, i see some flyback (back emf) on my scope. What i'm trying to do is to have a red LED blink when the relay is switched on, and the green led when the relay is switched off. Its only about the blink, the relay is latched so there is only a short pulse send.
I have a simple circuit:
|----|
W1 |-------- R1K -------|-------|
(-/+) |----| (-) (+)
------- ------ ------
|RELAY| |LED1| |LED2|
------- ------ ------
(+/-) (+) (-)
W2 |-------------------|-------|
The relay is part of a bigger ciruit (not mine). I just placed 2 wires over the pins (catching the pulse).
The problem is that both LED blink when i switch on or off the relay (send pulse). The flyback is causing this (makes sense).
My question, what would be the best way to have only one LED blink on the pulse?
The goal is that LED1 only blinks when sending the ON pulse, and LED2 when sending the OFF pulse.
I did read about flyback diodes and sender diodes (back to back), but I'm not sure how that would solve my problem. In fact, depending on the polarity one of the LEDS acts as a flyback diode.
EDIT:
To clarify the problem better, if W1 has a + Voltage, LED2 switches ON. However, when i switch off the power, the RELAY sends a flyback voltage over W2 (+), which blinks LED1 shortly. The question is how can i neutralize this flyback? Moreover, if i reverse polarity, send + voltage over W2, i have the same problem (LED1 blinks shortly).
To put i in perspective. Im trying to register each time the relay is switched on and off. Since the relay is latched, it reverse polarity and its only send a short pulse.
Many thanks!