Computer interface

R

Ronak Shah

Guest
Jus wondering... if i have a circuit connected to the parallel port of a PC
and lets say at some point I decide to give oout a command to lets say turn
on the light..... how would I do it?
I mean I knw I cant drain big currents from the parallel port so like for a
light bulb or something that requires lots a current how do I do it?
please provide any feedbacks
 
"Ronak Shah" <ronaksh@nortelnetworks.com> wrote in message news:<cjsa1m$e1q$1@zcars0v6.ca.nortel.com>...
Jus wondering... if i have a circuit connected to the parallel port of a PC
and lets say at some point I decide to give oout a command to lets say turn
on the light..... how would I do it?
In C language, use "outp" function. The parameters are 'port address'
and 'data'.

I mean I knw I cant drain big currents from the parallel port so like for a
light bulb or something that requires lots a current how do I do it?
please provide any feedbacks
Use one pin of your par port as a switch. This pin connect to a power
transistor like MOSFET to control the large current.
 
On Mon, 4 Oct 2004 15:58:46 -0400, "Ronak Shah"
<ronaksh@nortelnetworks.com> wrote:

Jus wondering... if i have a circuit connected to the parallel port of a PC
and lets say at some point I decide to give oout a command to lets say turn
on the light..... how would I do it?
You could use a batch file like below to turn on data pin 0.

::pin2.bat

@echo off
GOTO BEGIN
o 378 01
G
:BEGIN
DEBUG < pin2.bat


I mean I knw I cant drain big currents from the parallel port so like for a
light bulb or something that requires lots a current how do I do it?
please provide any feedbacks
Usually the current from the parallel port pin is used to control
a transistor, which in turn controls a relay. A google search
will bring up a lot of info. I've made the below pages that have
some simple parallel port control setups.

http://www.geocities.com/zoomkat/ppswitcher.htm
http://www.geocities.com/zoomkat/output.htm
http://www.geocities.com/zoomkat/status.htm
 

Welcome to EDABoard.com

Sponsor

Back
Top