•  
  •  

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 [email protected]

Please share & like


Dormeyer 2005-M-1 Solenoid, Laminated, Continuous Duty, 120V Ac, 1/8 In To 1 In picture

Dormeyer 2005-M-1 Solenoid, Laminated, Continuous Duty, 120V Ac, 1/8 In To 1 In

$32.29



Solenoid For Delco 10511209, 10511216, 1115664, 1115701, 1115712; 245-12167 picture

Solenoid For Delco 10511209, 10511216, 1115664, 1115701, 1115712; 245-12167

$63.28



Solenoid Replacement for Dentsply SPS Cavitron Gen 131, 132, 136, and 137 models picture

Solenoid Replacement for Dentsply SPS Cavitron Gen 131, 132, 136, and 137 models

$175.00



Heavy Duty DC Contactor Solenoid For Albright SW180 Style 48V 200A picture

Heavy Duty DC Contactor Solenoid For Albright SW180 Style 48V 200A

$35.00



1/2 in 12V DC Brass Electric Solenoid Valve NPT Gas Water Air Normally Closed picture

1/2 in 12V DC Brass Electric Solenoid Valve NPT Gas Water Air Normally Closed

$23.68



OEM Stanadyne Roosa Master 26214 DB Diesel Fuel Injection Pump Shut Off Solenoid picture

OEM Stanadyne Roosa Master 26214 DB Diesel Fuel Injection Pump Shut Off Solenoid

$75.00



Cole Hersee 24200 Latching Solenoid picture

Cole Hersee 24200 Latching Solenoid

$87.25



Kti Hydraulics Starter Solenoid 391-40 picture

Kti Hydraulics Starter Solenoid 391-40

$108.00



Solenoid Repair kit for Dentsply Cavitron 124 131, 132, 121, 136, 137, 310, 1000 picture

Solenoid Repair kit for Dentsply Cavitron 124 131, 132, 121, 136, 137, 310, 1000

$39.95



REBUILT OEM Solenoid for Dentsply SPS Cavitron Gen 124 and 121 models picture

REBUILT OEM Solenoid for Dentsply SPS Cavitron Gen 124 and 121 models

$235.00