|
||||||||||
| DIY General discussion about DIY: plumbing, heating, electrics and building work. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
The Village Idiot
Join Date: Sep 2005
Location: Burnley
Posts: 1,616
Thanks: 136
Thanked 102 Times in 65 Posts
|
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. included is the circuit diagram, port controller software and also the source code for the software ( in C ) |
|
|
|
|
|
#5 (permalink) |
|
Techwatch Reader
Join Date: Mar 2007
Location: Kashmir
Posts: 393
Thanks: 6
Thanked 6 Times in 6 Posts
|
where is the circut i want to check this circut out because i got a circut as wel for the same purpose. can some one send me the circut i want to design a board again
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
| LinkBack |
LinkBack URL |
About LinkBacks |
| Bookmark & Share |
Digg this Thread! |
Add Thread to del.icio.us |
Bookmark in Technorati |
Tweet this thread |
