Hobby Electronics Basics LPT port relay

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
LPT port relay Test 09-22-08
Posted by Test on September 22, 2008, 8:54 am
Please log in for more thread options


I am trying to use LPT port to control a small 5 V relay (Meisei ps-5). The relay
appears to have 1.75 ohm resistance.

I connected the data pin to the + pin of the relay and ground to the gnd pin. No
click. Voltage drops to about 2V. Then I tried with DC power supply at 4.5V
(1.5A). A nice click is audible from the relay.

(Bear with me: I am a newbie) I conclude that LPT is not suppliying enough
current (live and learn!). After googling for some time I am presented with a new
thing that should: a transistor - as in "transistor radio".

This helpful site has a cirquit that fits the bill:
http://www.epanorama.net/circuits/parallel_output.html#relaycontrol
here is it:

Vcc
|
+------+
| __|__
Relay /^\ Diode 1N4002
Coil /---\
| |
+------+
|
| /
4.7K B |/ C
parallel port >-\/\/\/\/---| NPN Transistor: BC547A or 2N2222A
data pi |\ E
| V
|
parallel port >--------------+
ground pin |
Ground

Above need an extra power supply (Vcc). Is any way to use power (perhaps from
multiple data pins) from the LPT port itself? One pin gives out 0-5V and a few
milliamps. The Meisei relay I have seems to need more.


Posted by Jon Slaughter on September 22, 2008, 10:29 am
Please log in for more thread options



>I am trying to use LPT port to control a small 5 V relay (Meisei ps-5). The
>relay
> appears to have 1.75 ohm resistance.
>
> I connected the data pin to the + pin of the relay and ground to the gnd
> pin. No
> click. Voltage drops to about 2V. Then I tried with DC power supply at
> 4.5V
> (1.5A). A nice click is audible from the relay.
>
> (Bear with me: I am a newbie) I conclude that LPT is not suppliying enough
> current (live and learn!). After googling for some time I am presented
> with a new
> thing that should: a transistor - as in "transistor radio".
>
> This helpful site has a cirquit that fits the bill:
> http://www.epanorama.net/circuits/parallel_output.html#relaycontrol
> here is it:
>
> Vcc
> |
> +------+
> | __|__
> Relay /^\ Diode 1N4002
> Coil /---\
> | |
> +------+
> |
> | /
> 4.7K B |/ C
> parallel port >-\/\/\/\/---| NPN Transistor: BC547A or 2N2222A
> data pi |\ E
> | V
> |
> parallel port >--------------+
> ground pin |
> Ground
>
> Above need an extra power supply (Vcc). Is any way to use power (perhaps
> from
> multiple data pins) from the LPT port itself? One pin gives out 0-5V and a
> few
> milliamps. The Meisei relay I have seems to need more.
>

You can't drive the relay directly because, IRC the LPT port can only source
about 20mA and sink about 5 or 10.

This is why they use the above circuit with the external power.

I don't recall how much power the LPT can source total but probably not
enough for your relay.

Sure you can tie all the output pins together and hope for the best. If on
goes low then you got a direct short. You can use diodes to prevent sinking
any current but that will lower your voltage.


LPT output ---- diode ----
LPT output ---- diode ----
LPT output ---- diode ---- All tied together here
LPT output ---- diode ----

The current will basically add up.

So, suppose each output will give a max of 20mA before protection kicks in
and you have 10 pins tied together, then thats a maximum of 200mA that
you'll get. That's assuming the whole chip can output that much.. if not I
imagine you have a real chance of burining up the port.

It's pretty easy to get a wall-wart power suppose and use that with a
transistor as the circuit shows... it's also a lot safer for your parallel
port!



Posted by Test on September 22, 2008, 11:10 am
Please log in for more thread options



>
>>I am trying to use LPT port to control a small 5 V relay (Meisei ps-5). The
>>relay
>> appears to have 1.75 ohm resistance.
>>
>> I connected the data pin to the + pin of the relay and ground to the gnd
>> pin. No
>> click. Voltage drops to about 2V. Then I tried with DC power supply at
>> 4.5V
>> (1.5A). A nice click is audible from the relay.
>>
>> (Bear with me: I am a newbie) I conclude that LPT is not suppliying enough
>> current (live and learn!). After googling for some time I am presented
>> with a new
>> thing that should: a transistor - as in "transistor radio".
>>
>> This helpful site has a cirquit that fits the bill:
>> http://www.epanorama.net/circuits/parallel_output.html#relaycontrol
>> here is it:
>>
>> Vcc
>> |
>> +------+
>> | __|__
>> Relay /^\ Diode 1N4002
>> Coil /---\
>> | |
>> +------+
>> |
>> | /
>> 4.7K B |/ C
>> parallel port >-\/\/\/\/---| NPN Transistor: BC547A or 2N2222A
>> data pi |\ E
>> | V
>> |
>> parallel port >--------------+
>> ground pin |
>> Ground
>>
>> Above need an extra power supply (Vcc). Is any way to use power (perhaps
>> from
>> multiple data pins) from the LPT port itself? One pin gives out 0-5V and a
>> few
>> milliamps. The Meisei relay I have seems to need more.
>>
>
>You can't drive the relay directly because, IRC the LPT port can only source
>about 20mA and sink about 5 or 10.
>
>This is why they use the above circuit with the external power.
>
>I don't recall how much power the LPT can source total but probably not
>enough for your relay.
>
>Sure you can tie all the output pins together and hope for the best. If on
>goes low then you got a direct short. You can use diodes to prevent sinking
>any current but that will lower your voltage.
>
>
>LPT output ---- diode ----
>LPT output ---- diode ----
>LPT output ---- diode ---- All tied together here
>LPT output ---- diode ----
>
>The current will basically add up.
>
>So, suppose each output will give a max of 20mA before protection kicks in
>and you have 10 pins tied together, then thats a maximum of 200mA that
>you'll get. That's assuming the whole chip can output that much.. if not I
>imagine you have a real chance of burining up the port.
>
>It's pretty easy to get a wall-wart power suppose and use that with a
>transistor as the circuit shows... it's also a lot safer for your parallel
>port!
>

I've seen parallel port relay boxes that don't use an external power. How do they
do it? Use low power relays?

Posted by Jon Slaughter on September 22, 2008, 11:55 am
Please log in for more thread options



>
>>
>>>I am trying to use LPT port to control a small 5 V relay (Meisei ps-5).
>>>The
>>>relay
>>> appears to have 1.75 ohm resistance.
>>>
>>> I connected the data pin to the + pin of the relay and ground to the gnd
>>> pin. No
>>> click. Voltage drops to about 2V. Then I tried with DC power supply at
>>> 4.5V
>>> (1.5A). A nice click is audible from the relay.
>>>
>>> (Bear with me: I am a newbie) I conclude that LPT is not suppliying
>>> enough
>>> current (live and learn!). After googling for some time I am presented
>>> with a new
>>> thing that should: a transistor - as in "transistor radio".
>>>
>>> This helpful site has a cirquit that fits the bill:
>>> http://www.epanorama.net/circuits/parallel_output.html#relaycontrol
>>> here is it:
>>>
>>> Vcc
>>> |
>>> +------+
>>> | __|__
>>> Relay /^\ Diode 1N4002
>>> Coil /---\
>>> | |
>>> +------+
>>> |
>>> | /
>>> 4.7K B |/ C
>>> parallel port >-\/\/\/\/---| NPN Transistor: BC547A or 2N2222A
>>> data pi |\ E
>>> | V
>>> |
>>> parallel port >--------------+
>>> ground pin |
>>> Ground
>>>
>>> Above need an extra power supply (Vcc). Is any way to use power (perhaps
>>> from
>>> multiple data pins) from the LPT port itself? One pin gives out 0-5V and
>>> a
>>> few
>>> milliamps. The Meisei relay I have seems to need more.
>>>
>>
>>You can't drive the relay directly because, IRC the LPT port can only
>>source
>>about 20mA and sink about 5 or 10.
>>
>>This is why they use the above circuit with the external power.
>>
>>I don't recall how much power the LPT can source total but probably not
>>enough for your relay.
>>
>>Sure you can tie all the output pins together and hope for the best. If on
>>goes low then you got a direct short. You can use diodes to prevent
>>sinking
>>any current but that will lower your voltage.
>>
>>
>>LPT output ---- diode ----
>>LPT output ---- diode ----
>>LPT output ---- diode ---- All tied together here
>>LPT output ---- diode ----
>>
>>The current will basically add up.
>>
>>So, suppose each output will give a max of 20mA before protection kicks in
>>and you have 10 pins tied together, then thats a maximum of 200mA that
>>you'll get. That's assuming the whole chip can output that much.. if not I
>>imagine you have a real chance of burining up the port.
>>
>>It's pretty easy to get a wall-wart power suppose and use that with a
>>transistor as the circuit shows... it's also a lot safer for your parallel
>>port!
>>
>
> I've seen parallel port relay boxes that don't use an external power. How
> do they
> do it? Use low power relays?

probably...

http://www.epanorama.net/circuits/lptpower.html

Theres tones of info on using the lpt port for various applications. I'm
sure if you search google you'll find the exact info your looking for.



Posted by Jasen Betts on September 22, 2008, 8:19 pm
Please log in for more thread options



> I've seen parallel port relay boxes that don't use an external power. How do
they
> do it? Use low power relays?

3 possibilities:

latching relays (with extra circuitry)

latchiong relays don't needed energy to stay turned on - a cuircuit
with a capacitor could be used to store up energy to stwitch the relay.

stronger parallel ports (some can put out 12mA on each data line)

this relay would work if driven by 2 data lines:
http://www.mouser.com/Search/ProductDetail.aspx?qs=sEN%2fkO1EG6ZEMuSXIxhRxQ%3d%3d

I did not find any that were able to be powered from a single data line

solid-state relays.

pretty much all solid-state relays only need a few miliamps.
and so can be powered from the even the weakest parallel port.

Bye.
Jasen

Similar ThreadsPosted
LPT port relay September 22, 2008, 8:54 am
Transistor as a relay vs mechanical relay May 21, 2005, 3:19 pm
simple 2 port usb hub August 24, 2004, 5:29 pm
2-port USB hub chip? August 27, 2005, 2:14 am
PC port question November 10, 2006, 6:21 pm
12V pulse to serial port August 10, 2004, 5:10 pm
Serail port in winxp January 28, 2005, 10:51 am
View Data On RS-232 Port April 17, 2005, 10:42 am
Parallel Port and VB part II April 22, 2005, 10:39 am
Parallel port pins 18-25 July 14, 2005, 11:05 am
Infrared port on motherboard -- how to use? July 26, 2005, 10:19 pm
serial port analyzer March 1, 2006, 11:25 pm
Freeware port analyzer March 21, 2006, 2:15 pm
reading from printer port April 9, 2006, 6:19 pm
Parallel Port/ ADC0820 help! June 22, 2006, 12:06 pm