Hello,
I have been unsuccesfully tried to drive a 12volt relay from 5v source and a tranzistor.
I do not know what went wrong.
I studied the circiut diagram of the relay board pdf, in order to "copy" the circuit but it seems that here I cannot find the BCW32 tranzistor!!!
Is there an "easy" compination of relay/resistor/tranzistor type/value that can work?
Also the relay must have a common GROUND with the 5v?
thank you in advance,
Regards,
Achillis.
Relay Driver.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Relay Driver.
Hello Achillis
This is the circuit that I use to switch 12V stepper motor coils with, it should work for your application.
12V supply for relay - Collector of NPN
5V signal from uC - 1Kresistor - Base of NPN
Coil of relay - Emitter of NPN
Other End of Coil - Ground
For the NPN transistor try something like a TIP31 or TIP41 etc.
This is the circuit that I use to switch 12V stepper motor coils with, it should work for your application.
12V supply for relay - Collector of NPN
5V signal from uC - 1Kresistor - Base of NPN
Coil of relay - Emitter of NPN
Other End of Coil - Ground
For the NPN transistor try something like a TIP31 or TIP41 etc.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- achillis1
- Posts: 347
- Joined: Thu Oct 09, 2008 9:19 am
- Has thanked: 91 times
- Been thanked: 8 times
- Contact:
Re: Relay Driver.
Hello Ben,
Thank you for your reply.
It seems that I have lost it during the "translation". Actually I did not quite understood the connections for the relay!
I am attaching a picture as I search on how would be the connections.
For the relay you wrote 3 connections but on the diagram it seems that on a relay are 2 connections as far as it concerns the 5/12 volt circuit.
It seems that I am lucking on circuit knowledge!!!
Thank you.
Best Regards.
Thank you for your reply.
It seems that I have lost it during the "translation". Actually I did not quite understood the connections for the relay!
I am attaching a picture as I search on how would be the connections.
For the relay you wrote 3 connections but on the diagram it seems that on a relay are 2 connections as far as it concerns the 5/12 volt circuit.
It seems that I am lucking on circuit knowledge!!!
Thank you.
Best Regards.
- Attachments
-
- relayCircuit.gif (14.33 KiB) Viewed 7138 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Relay Driver.
Hello
Your circuit is nearly correct. But the voltage to drive the relay coil must be 12V for a 12V relay rather then 5V.
Your circuit is nearly correct. But the voltage to drive the relay coil must be 12V for a 12V relay rather then 5V.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- achillis1
- Posts: 347
- Joined: Thu Oct 09, 2008 9:19 am
- Has thanked: 91 times
- Been thanked: 8 times
- Contact:
Re: Relay Driver.
Thank you Ben,
So I shall costruct the same circuit with the only difference I supply 12volts the relay?
One last question: the relay must have the same ground referrence with the 5 volts?
Thank you.
So I shall costruct the same circuit with the only difference I supply 12volts the relay?
One last question: the relay must have the same ground referrence with the 5 volts?
Thank you.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Relay Driver.
Hello Achillis
Yes that should do it and yes you will have to common the 5V ground and the 12V ground. If you are using our EB006 or HP488 boards then you can use the +14V terminal output for the 12V output to the transistor.
Yes that should do it and yes you will have to common the 5V ground and the 12V ground. If you are using our EB006 or HP488 boards then you can use the +14V terminal output for the 12V output to the transistor.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel