•  
  •  

Control electrical appliances using PC

Here is a circuit for using the printer port of a PC, for control application using software and some interface hardware. The interface circuit along with the given software can be used with the printer port of any PC for controlling up to eight equipment .

The interface circuit shown in the figure is drawn for only one device, being controlled by D0 bit at pin 2 of the 25-pin parallel port. Identical circuits for the remaining data bits D1 through D7 (available at pins 3 through 9) have to be similarly wired. The use of opto-coupler ensures complete isolation of the PC from the relay driver circuitry.
Lots of ways to control the hardware can be implemented using software. In C/C++ one can use the outportb(portno,value) function where portno is the parallel port address (usually 378hex for LPT1) and ‘value’ is the data that is to be sent to the port. For a value=0 all the outputs (D0-D7) are off. For value=1 D0 is ON, value=2 D1 is ON, value=4, D2 is ON and so on. eg. If value=29(decimal) = 00011101(binary) ->D0,D2,D3,D4 are ON and the rest are OFF.

Click here for the sample software.
Click here for the source code of the software (in C).

If there are any problems please contact webmaster@electronic-circuits-diagrams.com

Please share & like


MSA Altair 4X Multi Gas Detector - Charcoal/Black picture

MSA Altair 4X Multi Gas Detector - Charcoal/Black

$229.99



MSA altair 4X multi gas detector Monitor Meter NEW Oxygen  Warranty/Calibrated picture

MSA altair 4X multi gas detector Monitor Meter NEW Oxygen Warranty/Calibrated

$450.00



MSA ALTAIR PUMP PROBE w/ Charger and Sample line picture

MSA ALTAIR PUMP PROBE w/ Charger and Sample line

$224.99



*UNTESTED* MSA Altair 5 Gas Detector (NO CHARGER TO TEST) picture

*UNTESTED* MSA Altair 5 Gas Detector (NO CHARGER TO TEST)

$159.99



Altair H2S Gas Detector picture

Altair H2S Gas Detector

$50.00



MSA 10116926 Altair 5X Gas Detector Industrial Kit - LEL, O2, CO, H2S picture

MSA 10116926 Altair 5X Gas Detector Industrial Kit - LEL, O2, CO, H2S

$485.00



Altair DiamondTome Microdermabrasion Wand - DN125 Coarse picture

Altair DiamondTome Microdermabrasion Wand - DN125 Coarse

$75.00



MSA 10178360 Charcoal Front Case ALTAIR 4XR picture

MSA 10178360 Charcoal Front Case ALTAIR 4XR

$72.55



MSA Altair 5X Multi-Gas Detector 10116926 picture

MSA Altair 5X Multi-Gas Detector 10116926

$1799.88



MSA 10106722 Altair 5X Combustible Sensor Kit picture

MSA 10106722 Altair 5X Combustible Sensor Kit

$180.00