•  
  •  

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


Lot 4 Johnson Controls Metasys BTCVT Bluetooth Wireless Commissioning Converter picture

Lot 4 Johnson Controls Metasys BTCVT Bluetooth Wireless Commissioning Converter

$200.00



Johnson Controls Metasys MS-NAE5510-2 Controller NAE 5510 Version 6.0 Rev.K USED picture

Johnson Controls Metasys MS-NAE5510-2 Controller NAE 5510 Version 6.0 Rev.K USED

$200.00



Johnson Controls Metasys DX-9100-8454 Extended Digital Controller Rev B picture

Johnson Controls Metasys DX-9100-8454 Extended Digital Controller Rev B

$35.99



Metasys Johnson Controls  CGM09090 Controller Module With A Sensor picture

Metasys Johnson Controls CGM09090 Controller Module With A Sensor

$260.00



Johnson Controls Metasys AS-UNT111-1 Unitary Controller - UNT 111-1 picture

Johnson Controls Metasys AS-UNT111-1 Unitary Controller - UNT 111-1

$50.00



Johnson Controls Metasys AS-UNT111-1 Unitary Controller - UNT 111-1 picture

Johnson Controls Metasys AS-UNT111-1 Unitary Controller - UNT 111-1

$35.00



Johnson Controls Metasys M4-XPM09090-0 BRAND NEW IN THE SEALED BOX picture

Johnson Controls Metasys M4-XPM09090-0 BRAND NEW IN THE SEALED BOX

$375.00



Johnson Controls SNE 10501 Metasys M4-SNE10501-0 Controller picture

Johnson Controls SNE 10501 Metasys M4-SNE10501-0 Controller

$999.00



Johnson Controls M4-SNE11001-0 Metasys SNE Network Engine Controller NEW picture

Johnson Controls M4-SNE11001-0 Metasys SNE Network Engine Controller NEW

$200.00



Metasys Johnson Controls (lot of 12) AP-VMA1420-0 coupling/bushing AP-VMA1410-0 picture

Metasys Johnson Controls (lot of 12) AP-VMA1420-0 coupling/bushing AP-VMA1410-0

$49.99