![]() |
![]() |
![]() |
|
|
|||||||
| 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? |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | ||
|
Quote:
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 |
|||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|