•  
  •  

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


8 AWG Gauge PV Wire 1000/2000 Volt Pre-Cut 15-500 Ft Solar Installation RED picture

8 AWG Gauge PV Wire 1000/2000 Volt Pre-Cut 15-500 Ft Solar Installation RED

$150.00



Wago 221-413 LEVER-NUTS 3 Conductor Compact Connectors 50 PK.. picture

Wago 221-413 LEVER-NUTS 3 Conductor Compact Connectors 50 PK..

$17.50



WindyNation 6/3 SOOW SO 6 Gauge 3 Conductor Portable Power Cord 600V Cable Wire picture

WindyNation 6/3 SOOW SO 6 Gauge 3 Conductor Portable Power Cord 600V Cable Wire

$34.40



Wago 221-615 Lever Nuts - 5 Conductor   picture

Wago 221-615 Lever Nuts - 5 Conductor

$14.49



WindyNation 10/3 10 AWG 3 Conductor SOOW SO Cable Cord Wire 600V Portable Power picture

WindyNation 10/3 10 AWG 3 Conductor SOOW SO Cable Cord Wire 600V Portable Power

$25.10



WindyNation 14/3 14 AWG 3 Conductor SJOOW Cable Cord Wire 300V Portable Power picture

WindyNation 14/3 14 AWG 3 Conductor SJOOW Cable Cord Wire 300V Portable Power

$14.79



Stabilant 22 - Liquid Semi-Conductor (5 mL kit) Electronic Contact Enhancer picture

Stabilant 22 - Liquid Semi-Conductor (5 mL kit) Electronic Contact Enhancer

$39.99



14 Gauge 7 Way Conductor RV Trailer Wire Cable Wiring Insulated - 25 Feet 14/7 picture

14 Gauge 7 Way Conductor RV Trailer Wire Cable Wiring Insulated - 25 Feet 14/7

$31.95



Marine Grade Wire Duplex Boat Cable Tinned Copper USA Made - AWG Gauge All Sizes picture

Marine Grade Wire Duplex Boat Cable Tinned Copper USA Made - AWG Gauge All Sizes

$204.68



2-2-2-4 Aluminum Mobile Home Feeder Direct Burial Cable (100 Amp) 600V picture

2-2-2-4 Aluminum Mobile Home Feeder Direct Burial Cable (100 Amp) 600V

$172.00