QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: acjacques on May 10, 2020, 12:27:53 pm

Title: Looking for a Hardware to interact with QB64 to set and read I/O pins.
Post by: acjacques on May 10, 2020, 12:27:53 pm
Since new PCs does not have LPT ports what hardware could be used with QB64 to interact with external I/0 pins to set and read pins states ?

Any suggestion ?
Title: Re: Looking for a Hardware to interact with QB64 to set and read I/O pins.
Post by: MasterGy on May 10, 2020, 02:59:15 pm
Hi !

For cnc, mach3 :
https://www.cncpart.hu/uc100 (https://www.cncpart.hu/uc100)

i also deal with machine control. due to real time and lpt port i use old desktops and qbasic under dos :)
accurate, reliable control :)
Title: Re: Looking for a Hardware to interact with QB64 to set and read I/O pins.
Post by: acjacques on May 10, 2020, 04:16:08 pm
Thanks . Did you know it it could accept older LPT control commands like the bellow?


https://www.aaroncake.net/electronics/qblpt.htm
Title: Re: Looking for a Hardware to interact with QB64 to set and read I/O pins.
Post by: _vince on May 10, 2020, 05:02:24 pm
The easiest way to read/write pin states would be to establish a USB serial connection with a cheap microcontroller board like an arduino which then can directly handles all the pin states.  You'd write a bit of firmware to handle commands like readpin/writepin over the serial port and act accordingly.

You could also buy a PCI parallel port, ie https://www.amazon.ca/QNINE-Parallel-Expansion-Converter-Controller/dp/B078Q155K3?ref_=s9_apbd_otopr_hd_bw_b3cC59X (https://www.amazon.ca/QNINE-Parallel-Expansion-Converter-Controller/dp/B078Q155K3?ref_=s9_apbd_otopr_hd_bw_b3cC59X), but either way you're looking at extra electronics.
Title: Re: Looking for a Hardware to interact with QB64 to set and read I/O pins.
Post by: acjacques on May 10, 2020, 07:25:21 pm
Thanks. Yes . The microcontroller and a USB-UART TTL converter seems like the most practical solution for a notebook.
 I dont know if an USB - LPT converter would work.