I bought this relay module which uses a Sharp PC817 optocoupler and a transistor I cant recognize
I use a 250W power supply from an ancient AT desktop (which means sufficient current supply)
and an Arduino Uno.
Both are common grounded
When I energize the coil directly (jumpwiring on the back of PCB)
I measure 65-67mA,
I get continuity on NO pin and of course
I hear the arming sound loud and clear
which means that relay is OK from electromechanical POV
What I need is your help on the electronic part
I connect PSU 5V to VCC and PSU 0V to GND (outer pins)
On the inner 3 pins I tried two scenarios:
a) When I connect 5V to COM and 0V to IN1/IN2 (see com-5v.png)
on-board led turns on but nothing more happens
b) When I connect 0V to COM and 5V to IN1/IN2 (see com-0v.png)
nothing happens at all; no led, no sound, nothing
Delta_G:
Aren't those active low? Don't you feed 0V to turn on and 5V to turn off?
Yes. This is scenario A I mention above. When I apply 5V on COM pin and 0V on IN1 pin then led turns on.
My question is why the coil isn't energized as a consequence?
The only schematic I found on the Net that seems to be the right one is this link
If this assumption is fine then the question is:
why when I close the arduino-R1-led-optocoupler loop (led lit)
I still have the vcc-transistor-coil loop left open?
Is there a problem with the transistor or can be something with the diode?
What is powering the Arduino? The Arduino is pretty poor at supplying current, especially when connected via the barrel jack.
Also, not saying the linked schematic is wrong, but it's quite different from others and it's a pretty dumb why to drive relays like that (NPN on HIGH side).
And it also doesn't show why there is a Vcc and a COM.
Can be a problem because USB can't supply much power. And even though it's triggered through a opto and a transistor, the power has to come from somewhere. Although, I think most USB should be able to drive a single relay.
But I think it's a god time to start reverse engineer the board a bit. I would start by checking where Vcc and COM are connected.
septillion:
Can be a problem because USB can't supply much power. And even though it's triggered through a opto and a transistor, the power has to come from somewhere. Although, I think most USB should be able to drive a single relay.
But I think it's a god time to start reverse engineer the board a bit. I would start by checking where Vcc and COM are connected.
I've tried without the UNO,just with PSU, but with the same results (led on, relay off).
What I've accidentally noticed is that transistor is really hot
and here some measurements
GND-coil 5[Ohm]
coil-coil 70[Ohm]