Author Topic: Looking for a Hardware to interact with QB64 to set and read I/O pins.  (Read 1674 times)

0 Members and 1 Guest are viewing this topic.

Offline acjacques

  • Newbie
  • Posts: 33
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 ?

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
Hi !

For cnc, mach3 :
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 :)

Offline acjacques

  • Newbie
  • Posts: 33
Thanks . Did you know it it could accept older LPT control commands like the bellow?


https://www.aaroncake.net/electronics/qblpt.htm

Offline _vince

  • Seasoned Forum Regular
  • Posts: 422
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, but either way you're looking at extra electronics.

Offline acjacques

  • Newbie
  • Posts: 33
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.