•  
  •  

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


Hioki 8421-51 Memory HiLogger, 16-Channel superb condition tested picture

Hioki 8421-51 Memory HiLogger, 16-Channel superb condition tested

$725.00



32G Voice Activated Mini Spy Digital Sound Audio Recorder Dictaphone MP3 Player picture

32G Voice Activated Mini Spy Digital Sound Audio Recorder Dictaphone MP3 Player

$24.69



64GB Rechargeable LCD Digital Audio Sound Voice Recorder Dictaphone MP3 Player picture

64GB Rechargeable LCD Digital Audio Sound Voice Recorder Dictaphone MP3 Player

$29.49



Automatic Wrist Blood Pressure Monitor BP Cuff Gauge Machine Tester with Memory picture

Automatic Wrist Blood Pressure Monitor BP Cuff Gauge Machine Tester with Memory

$14.98



 Probe High Frequency Response DTL TTL CMOS Memory Tester LP-1 K1S4h picture

Probe High Frequency Response DTL TTL CMOS Memory Tester LP-1 K1S4h

$15.37



32KX8 STATIC RAM CMOS SRAM CACHE MEMORY 486 MOTHERBOARD 28 PIN HIGH SPEED picture

32KX8 STATIC RAM CMOS SRAM CACHE MEMORY 486 MOTHERBOARD 28 PIN HIGH SPEED

$4.00



2pcs Micro SD TF Memory Card Reader Module with SPI interface For Arduino picture

2pcs Micro SD TF Memory Card Reader Module with SPI interface For Arduino

$4.95



Memory Foam Office Chair Armrest Pads With Cooling Gel Gaming Chair Arm Rest picture

Memory Foam Office Chair Armrest Pads With Cooling Gel Gaming Chair Arm Rest

$13.58



Memory Foam Bar Stool Cushions 12x12 Round Bar Stool Cushion Cover Pad Mat Brown picture

Memory Foam Bar Stool Cushions 12x12 Round Bar Stool Cushion Cover Pad Mat Brown

$11.45



Electric Desk Frame Height Adjustable Single Motor Memory Touch Control White picture

Electric Desk Frame Height Adjustable Single Motor Memory Touch Control White

$159.99