Maker Pro
Maker Pro

How to drive relays?

s57aw

Dec 18, 2013
9
Joined
Dec 18, 2013
Messages
9
Hello guys,

I am quite newbie in electronic and more or less self-taught in this area.

I would be happy if you take a look into these schematics with Arduino:
http://remoteqth.com/hw/band_decoder_sch.png

I have project completed and digital outputs from Arduino send signal through resistor and led diode, optocoupler and NPN transistor.

There are 12 open collector outputs and I want to drive 12v relays (about 30ma, 360 ohm coil resistance) on the SV2 outputs.

I have applied +12v to the relay, put diode over coil and connected specific output to other side of the coil but relay doesn't switch, I got only appropriate led diode on but it looks no output for the relay.

What I am missing - appreciate your suggestions. What about pin 13 on the SV2 output, should it be connected somewhere?

Regards,

Robert
 
Last edited:

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,719
Joined
Nov 17, 2011
Messages
13,719
PIn 13 is Ground. You connect it to the - of the 12V source.
 

s57aw

Dec 18, 2013
9
Joined
Dec 18, 2013
Messages
9
Thanks Harald,

I was not sure as schematics tells notning about it, it is floating now and probably that's the reason why I get no current throught. Will try that

Robert

PIn 13 is Ground. You connect it to the - of the 12V source.
 

s57aw

Dec 18, 2013
9
Joined
Dec 18, 2013
Messages
9
FYI..

This is "Band decoder" for radio transmitter (TRX). TRX is connected to Arduino with serial cable (only TX, RX and GND is needed). Arduino reads frequency information from the TRX and based on it puts signal to one of the 12 outputs. I need a relay at the output to drive an antenna switch (switching different antennas for different frequencies).

Arduino needs +5v and I would like to use 12v relays at the output. This is not an issue itself, I supply 12v to the board and output relays and using a simple DC voltage regulator from 12 to 5V for Arduino. I don't have two separate PSU, ground is the same and sources are not isolated in current configuration.

Anyway, I didn't change anything, all soldered on PCB as per schematics and I have connected PIN 13 to the same ground for test and relays are working now, but... I would do it again I would use a another simpler approach.

I still don't understand kit schematics / author completely - why the combination of optocoupler, switching transistor, and relay, it looks redundant. I know I need a transistor to effectively and safely drive the relay, but the relay (plus the diode across the coil) would be enough for isolation I think, why optocupler? And why there is a diode across NPN transistor (I am using another diode over relay coil).

Robert
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,719
Joined
Nov 17, 2011
Messages
13,719
why optocupler
You are right, a transistor alone would suit the task here. I can only guess that the kit ma be used for other purposes, too. Then the potential isolation offered by the optocoupler may be required if there are no relays. A potential application is the control of mains voltage via a triac.

And why there is a diode across NPN transistor (I am using another diode over relay coil).
You can do either. A diode across the transistor has the same effect as it will conduct the reverse current from the relay coil back to the power supply. The author of the circuit could not fresee all possible uses and may have provided the diode across the transistor just in case. Having both diodes in place wil not harm the circuit.
 
Top