Parallel Port Relay Interface
Here is an example of controlling a relay from the PC's parallel printer port (LPT1 or LPT2). The 7.5K resistor is connected to one of the data output lines (D0-D7) and a common connection is made from the negative side of the power supply to one of the port ground pins (18-25). Data is inverted by the 3904 transistor so that writing a "0" to the base address will energize any relays connected to D0-D7 and a "255" will reset them. You may need to try all three base addresses to determine the correct address for the port you are using but LPT1 is usually at Hex 0378. The QBasic "OUT" command can be used to send data to the port. OUT, &H0378,0 sets D0-D7 low and OUT, &H378,255 sets D0-D7 high.
Parallel Port Relay Interface circuit
1373 19 September 2009
This circuit was designed to control a 32 channel Christmas light show from the PC serial port.
Perhaps the most effective way to gain board space and increase component density is to minimize wiring on the board. A widely used architecture that allows such miniaturization is the I2C bus.
M1 is a stepper taken from an old disk drive. There are five pins, i.e., common, coil 1, 2, 3 and 4. Resistance measured between common pin and each coil is about 75 Ohms. Driving current for each coil is then needed about 60mA at +5V supply. A darlington