Parallel port pins don't like to source current. Your best bet is to pull the low side of the relay input down to ground through the data pin. The high side of the input would then be hooked to the power supply. I think it is wise to put some kind of IC to buffer the computer port.
It's been a while since I've programmed the parallel port. You have to set it up for output. Are you using someone else's code? |