Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 13th July 2004, 04:19 PM   (permalink)
Default (Hopefully) simple question.

I have what I hope is a simple question that I can't seem to
find an exact answer to. I am starting to learn electronics
and circuits, and have been playing with some microcontrollers.

Here is my question.Let's say I have an output off of one of the
pins of my microcontroller at Vcc which is 5 volts DC. I want to use
that output to connect to the coil of a relay. However, that requires
12VDC to activate the relay. It seems simple enough, but how
do I bump up the voltage from 5V to 12V ? I was looking
at the Wall PF5S12-84 IC, which seems to do this. However, am
I making this too complicated? Is there a better/simpler/smarter
way? Or perhaps it is as simple as a few common components
wired together to perfrom the magic.

thanks for any insight you may have!

chris
cceto1 is offline   Reply With Quote
Old 13th July 2004, 04:25 PM   (permalink)
Default Re: (Hopefully) simple question.

Quote:
Originally Posted by cceto1
I have what I hope is a simple question that I can't seem to
find an exact answer to. I am starting to learn electronics
and circuits, and have been playing with some microcontrollers.

Here is my question.Let's say I have an output off of one of the
pins of my microcontroller at Vcc which is 5 volts DC. I want to use
that output to connect to the coil of a relay. However, that requires
12VDC to activate the relay. It seems simple enough, but how
do I bump up the voltage from 5V to 12V ? I was looking
at the Wall PF5S12-84 IC, which seems to do this. However, am
I making this too complicated? Is there a better/simpler/smarter
way? Or perhaps it is as simple as a few common components
wired together to perfrom the magic.

thanks for any insight you may have!

chris
You use an NPN driver transistor, emitter to chassis, base to micro via a resistor, and collector to the relay - you MUST fit a reverse biased diode across the relay coil to avoid blowing the transistor.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 13th July 2004, 04:51 PM   (permalink)
Default Re: (Hopefully) simple question.

Quote:
Originally Posted by Nigel Goodwin
Quote:
Originally Posted by cceto1
I have what I hope is a simple question that I can't seem to
find an exact answer to. I am starting to learn electronics
and circuits, and have been playing with some microcontrollers.

Here is my question.Let's say I have an output off of one of the
pins of my microcontroller at Vcc which is 5 volts DC. I want to use
that output to connect to the coil of a relay. However, that requires
12VDC to activate the relay. It seems simple enough, but how
do I bump up the voltage from 5V to 12V ? I was looking
at the Wall PF5S12-84 IC, which seems to do this. However, am
I making this too complicated? Is there a better/simpler/smarter
way? Or perhaps it is as simple as a few common components
wired together to perfrom the magic.

thanks for any insight you may have!

chris
You use an NPN driver transistor, emitter to chassis, base to micro via a resistor, and collector to the relay - you MUST fit a reverse biased diode across the relay coil to avoid blowing the transistor.
I want to try to understand this. So in this case, the 5V from the
microcontroller will provide current to the base of the
transistor. That will then turn on the switch and allow current
to flow to the coil. So, in this case, the collector attaches to one
lead of the relay coil, and the other lead of the relay coil attaches
to a seperate 12V supply voltage. Is this correct? In other words,
this will not increase the 5V from the microcontroller to 12V, I am
simply supplying a seperate 12V feed? Am I way off on this one?

chris
cceto1 is offline   Reply With Quote
Old 13th July 2004, 06:58 PM   (permalink)
Default Re: (Hopefully) simple question.

Quote:
Originally Posted by cceto1
I want to try to understand this. So in this case, the 5V from the
microcontroller will provide current to the base of the
transistor. That will then turn on the switch and allow current
to flow to the coil. So, in this case, the collector attaches to one
lead of the relay coil, and the other lead of the relay coil attaches
to a seperate 12V supply voltage. Is this correct? In other words,
this will not increase the 5V from the microcontroller to 12V, I am
simply supplying a seperate 12V feed? Am I way off on this one?
That sounds about right, there's a diagram I posted previously at http://www.electro-tech-online.com/download.php?id=1765, have a look at that.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 11:37 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.