CONTROL ELECTRICAL APPLIANCES USING PC

>> Saturday, April 17, 2010

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.


FOR SOFTWARE VISIT www.electronic-circuits-diagrams.com

0 comments:

About This Blog

Lorem Ipsum

DISCLAIMER

I have not uploaded any contents on my own. I have got all these resources from the internet which are public and obtained as such from search engines. If these contents are objectionable or violating anyone copyrights please contact me. I will do the needful immediately and assure full assistance. No files are hosted on my server; they are only indexed much like how Google works. The hosting server or the administrator cannot be held responsible for the contents of any linked sites or any link contained in a linked site, or changes / updates to such sites. All stuff on this blog is for Entertainment and private Purposes only. It is not the purpose of this blog to infringe on anybody’s copyrights. Mail @ srikanth.tadhiparthi@gmail.com

  © Sunset by VINOD KUMAR 2008

Back to TOP