This is the place for any magazine-related discussions that don't fit in any of the column discussion boards below.
6 posts • Page 1 of 1
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.
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.
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?
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.
Users browsing this forum: No registered users and 34 guests