•  
  •  

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


HP Workstation Z420 Tower PC Intel Xeon 3.60GHz 4GB 120GB SSD  Windows 10 Pro picture

HP Workstation Z420 Tower PC Intel Xeon 3.60GHz 4GB 120GB SSD Windows 10 Pro

$466.39



Dell Precision T3500 Desktop 12GB Ram Intel Xeon 3.07GHz (NO OPERATING SYSTEM) picture

Dell Precision T3500 Desktop 12GB Ram Intel Xeon 3.07GHz (NO OPERATING SYSTEM)

$209.97



For DL360 DL360p G10 Xeon CPU Kit, Heatsink 872452-001 & 2 Fans 875283-001 #W1 picture

For DL360 DL360p G10 Xeon CPU Kit, Heatsink 872452-001 & 2 Fans 875283-001 #W1

$143.98



Iba rackline xeon e3 rack-mount computer picture

Iba rackline xeon e3 rack-mount computer

$1499.99



Xeon Socket LGA2066 Processor Tray for W2100 & W2200 CPU's Lot of 2 6 12 30 & 50 picture

Xeon Socket LGA2066 Processor Tray for W2100 & W2200 CPU's Lot of 2 6 12 30 & 50

$14.85



120 - LGA1366 CPU Clam Shell Case for Intel Xeon. Core i7 CPU - Anti Static Foam picture

120 - LGA1366 CPU Clam Shell Case for Intel Xeon. Core i7 CPU - Anti Static Foam

$108.88



120 Intel Xeon Processor CPU Clam Shells for Socket LGA1366 + Anti Static Foam picture

120 Intel Xeon Processor CPU Clam Shells for Socket LGA1366 + Anti Static Foam

$108.88



120 - Processor Clamshell Case for Xeon E7 E7 E3 Socket LGA2011 + ESD Foam - New picture

120 - Processor Clamshell Case for Xeon E7 E7 E3 Socket LGA2011 + ESD Foam - New

$108.88



INTEL E5-2680V3 XEON PROCESSOR 2.50GHz picture

INTEL E5-2680V3 XEON PROCESSOR 2.50GHz

$299.99



Vikon VK400 Xeon Lightsource lathroscopic surgery with 1 Featherlight tested picture

Vikon VK400 Xeon Lightsource lathroscopic surgery with 1 Featherlight tested

$999.95