Page 1 of 1

Computer Control

Posted: Tue Oct 29, 2002 1:37 pm
by Tommy volts
I need to control (turn off and on ) a set of 6 or so relays with my 386 computer. Is there an inexpensive package (software,controller, and relays) available to do this?

Re: Computer Control

Posted: Tue Oct 29, 2002 8:02 pm
by russlk
The GWBASIC command: OUT h,j will send data j to port h. You will have to find out what the parallel port number is, and send data that will put 6 ones on the 8 bit data line. The parallel port should be able to drive 5 volt reed relays. I have not tried this but give it a try.

Re: Computer Control

Posted: Wed Oct 30, 2002 7:10 am
by frhrwa
X10 has all of that stuff.. check them out also..

Re: Computer Control

Posted: Fri Nov 01, 2002 5:24 am
by mikem
I have done as you have decribed hooking up a bunch of leds to the parallel port and it worked very well. Do you how to do it with the newer computers using Visual Basic? One of my computer friends said the only way is to buy somebody's I/O board and use their subroutines.(at a pretty high cost) Thanks--Mike.

Re: Computer Control

Posted: Fri Nov 01, 2002 6:46 pm
by mikem
Well it has been 10 years ago but here is what I remember and is subject to correction by better memories. Pins 2 thru 9 on the parallel port go high when the out is executed from gwbasic with the out(378, 255) command. 378 is the address of my parallel port and the data 255 (in base 8 obviously) makes all lines go high. There is very little power available here so you must buffer it with opto isolators or something to avoid blowing up your computer.<p>Does anyone know how to do this with Visual Basic without buying an interface board and software?

Re: Computer Control

Posted: Fri Nov 01, 2002 6:52 pm
by mikem
I just re-read the thread here and what Russ said is just what I said in another way. I think he is on the right track. I used opto isolators (instead of reed relays) with 220 ohm resistors in series with the built-in leds to ground to avoid drawing too much current thru the LED's and damaging the port. Hope this helps--thanks-Mike.