Technology Forums: FTA, Satellite, Cable, Home Media, Hardware & Computers
|  Home   |  Forums   |  News   |  Blog   |  

Go Back   Techwatch: Satellite TV forums, FTA, Cable, Hardware, & Tech forums > Other discussions > DIY


 

Register Members List Search Today's Posts Mark Forums Read

DIY General discussion about DIY: plumbing, heating, electrics, electronics, and building work.

Reply
 
Thread Tools
Old 06-03-06, 11:48 PM   #1 (permalink)
The Village Idiot
 
the insaan's Avatar
 
Join Date: Sep 2005
Posts: 1,378
Thanks: 18
Thanked 33 Times in 25 Posts
Default 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.


included is the circuit diagram, port controller software and also the source code for the software ( in C )
__________________
the insaan is offline   Reply With Quote
Old 20-03-06, 12:12 AM   #2 (permalink)
Junior Member
 
Join Date: Mar 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Control electrical appliances using PC

Thanks Think I will give this one a try...
adamhome is offline   Reply With Quote
Old 20-03-06, 03:05 AM   #3 (permalink)
jingo
Guest
 
Posts: n/a
Default Re: Control electrical appliances using PC

Interesting - I'll ave a look!

J
  Reply With Quote
Old 30-03-06, 12:11 AM   #4 (permalink)
Junior Member
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Control electrical appliances using PC

Yes, this is interesting.
It will be fun to check this out
Siggy is offline   Reply With Quote
Old 19-06-07, 08:43 PM   #5 (permalink)
Senior Member
 
javed's Avatar
 
Join Date: Mar 2007
Location: Kashmir
Posts: 381
Thanks: 6
Thanked 4 Times in 4 Posts
Send a message via Yahoo to javed
Default Re: Control electrical appliances using PC

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
javed is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 05:40 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.