I'm programming a software that will activate/deactivate the data pin on the parallel port.  

this will activate a Relay which will activate other devices.

What do I need to know about the port limitation in order for not to burn it?

(I'm not an electronics man, but the guy who's building my the electronics part is, so I need all the information so he will know what to do)

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

It's a TTL level 5 volt  2.4 ma

This link may help

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
quick and easy interface.

you will need
1)  2n4124 NPN transistor
1) 4.7k 1/4watt 10% resistor
1) 1n4001 diode (1n4004 works too)
1) 5v to 12v dc relay

it wires up this way.

parallel port data pin to one side of the 4.7k resistor the other side of the 4.7k goes to the Base of the 2n4124.  The Emitter of the 2n4124 goes to parallel port ground (the relay's power supply must also ground here) the collector of the 2n4124 goes to both the Anode side of the 1n4001 (this is the NON banded end) and one side of the relay coil. The other side of the relay coil and the banded end of the diode go to the positive side of the power supply used for the relay.  The best bet is to use a 5v relay and get power from the computer.  DO NOT LEAVE OUT THE DIODE serious damage may result.  The diode allow the magnetic field built up in the relay coil to dissipate when the transistor turns off.  Without the diode a LARGE surge of energy tries to pass through the transistor when it turns off.

I don't know if the following diagram will survive but here goes.

                                    | --- 3
                       Band    _|_    3  relay coil
                       diode    ^      3
                                    |  ---3                            
             4.7k         C    /
-------/\/\/\/\/\------B-|  2n4124
                             E   \

I've use this all the time to allow ttl to control a relay  work fine with 5vdc to 12vdc relays, don't use a relay with very low coil resistance or you'll run too much current through the 2n4124.

Hope that helps
Oh, a couple of things to consider.

When you boot up a computer the bios checks the parallel port. it toggles data bits without generating a strobe pulse so the attached printer ignores the activity but the relay will activate.  You might want to use a latch (74hct374) to latch the output data based on the strobe pulse so you know the data is valid.  If you are using windows and/or have a backup program loading that supports parallel port tape drives this will also rattle the port trying to do Plug and Play identification.

Check your manual. It should identify an IEEE standard for the port. Then look up the standard and either download (from or get a hardcopy.

The standard will contain the exact definition of the interface, which should tell an EE exactly what the interface defintiion is, for all machines using that interface. This is important, as reverse engineering an interface from one example is an error prone practice.

The earlier coment about the strobe line is a case in point. Looking at data lines in the absence of the strobe is an error that I have encountered more than once in my career.

I hope that the above is helpful.

- Bob (aka RLGSC)
Based on the original question, all of the answers are equally correct.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.