Terminal Program Serial Control

Anything QL Software or Programming Related.
Post Reply
User avatar
Mr_Navigator
QL Fanatic
Posts: 782
Joined: Mon Dec 13, 2010 11:17 pm
Location: UK, Essex
Contact:

Terminal Program Serial Control

Post by Mr_Navigator »

One of the other posts regarding Scalextric Control and Display got me thinking again about putting my QL to some use that I could program some control. I don't want to reinvent the wheel regarding hardware specifically, unless someone knows of anything more suitable but here is my current thinking.

Using a RS 232 Serial to i/o controller such as this for example http://www.electronickits.com/kit/compl ... ck1610.htm which comes with Windows Software and/or Terminal software for control.

Questions:
  • Is this a suitable route to explore?
    Is there suitable Terminal software that will be able to provide the appropriate protocols etc.?
    Would a parallel to i/o be better? This would also require sending bytes to the parallel port such as this one http://www.electronickits.com/kit/compl ... ck1601.htm
    Should I just opt for a cheap PLC?
    Is there a home-brew i/o that has been successfully used in the past?
    What other information should I be looking for?
Thanks
Lee


-----------------------------------------------------------------------------------
QLick here for the Back 2 the QL Blog http://backtotheql.blogspot.co.uk/
User avatar
tofro
Font of All Knowledge
Posts: 3091
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Terminal Program Serial Control

Post by tofro »

Mr_Navigator wrote:
  • Is this a suitable route to explore?
I'd definitely say so.
Mr_Navigator wrote: Is there suitable Terminal software that will be able to provide the appropriate protocols etc.?
According to the pdf from the vendor site, it looks like it's a plain ASCII protocol at 9600 8N1. So any terminal program (like QTPI, for example) or just a straightforward S*BASIC program would do.
Mr_Navigator wrote: Would a parallel to i/o be better? This would also require sending bytes to the parallel port such as this one http://www.electronickits.com/kit/compl ... ck1601.htm
I would not say so - It could theoretically be faster, but as soon as you'd be trying to get input from such an appliance, you'd be at loss (At least from S*BASIC)

Regards,
Tobias


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
Mr_Navigator
QL Fanatic
Posts: 782
Joined: Mon Dec 13, 2010 11:17 pm
Location: UK, Essex
Contact:

Re: Terminal Program Serial Control

Post by Mr_Navigator »

Many Thanks Tofro, will update here when I get started


-----------------------------------------------------------------------------------
QLick here for the Back 2 the QL Blog http://backtotheql.blogspot.co.uk/
User avatar
XorA
Site Admin
Posts: 1623
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: Terminal Program Serial Control

Post by XorA »

For what you want to do I would investigate hooking an Arduino to the QL serial port. They are really easy to program, have a fair amount of I/O for their cost and also some A/D as well.

You would basically need an arduino + rs232 shield (or just jerry rig a max232 to it yourself).


User avatar
XorA
Site Admin
Posts: 1623
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: Terminal Program Serial Control

Post by XorA »

Of course you could miss out the shield if you set arduino to 5v mode and connected it internally to QL!


User avatar
Mr_Navigator
QL Fanatic
Posts: 782
Joined: Mon Dec 13, 2010 11:17 pm
Location: UK, Essex
Contact:

Re: Terminal Program Serial Control

Post by Mr_Navigator »

So, possibly this

Image

added to this

Image

and then connected to this, to do output stuff?

Image


-----------------------------------------------------------------------------------
QLick here for the Back 2 the QL Blog http://backtotheql.blogspot.co.uk/
User avatar
dex
Gold Card
Posts: 310
Joined: Thu Dec 23, 2010 1:40 pm

Re: Terminal Program Serial Control

Post by dex »

Talking about Arduino - I have good experience with Duinomite - cheap and programmable in Basic, which fits better to the QL.
I personally have the Duinomite Mini for EUR 20.
It has PS/2 keyboard, VGA output, microSD card and several serial connections (both hardware and software serials).
https://www.olimex.com/Products/Duino/Duinomite/
Bigger versions of Duinomite are able to accept Arduino shields as well, but the smaller Duinomites have serials built-in without the need of shields.


User avatar
Mr_Navigator
QL Fanatic
Posts: 782
Joined: Mon Dec 13, 2010 11:17 pm
Location: UK, Essex
Contact:

Re: Terminal Program Serial Control

Post by Mr_Navigator »

What is interesting is the special button it has that will destroy the micro-controller.
WARNING
Do not use the "programmer-to-go" button when there is no image on the OLIMEX PIC-KIT3 or MICROCHIP PIC-KIT3 because that might put your microcontroller in an irrecoverable state. We have tested the mentioned scenario and we can confirm that it destroys PIC32 chips (using both our and the original Microchip PICKIT3). We don't take responsibility if you break your chip that way. For more info check the following: http://www.microchip.com/forums/m635420.aspx.
Speaking of which was there any PLC emulation software written for the QL, specifically ladder logic?


-----------------------------------------------------------------------------------
QLick here for the Back 2 the QL Blog http://backtotheql.blogspot.co.uk/
martyn_hill
QL Wafer Drive
Posts: 1066
Joined: Sat Oct 25, 2014 9:53 am

Re: Terminal Program Serial Control

Post by martyn_hill »

Hi everyone

Using the Arduino (haven't looked at the Duinomite myself - yet), is in fact the second phase of the Scalextric project I'm still working on :-)

At the moment, I'm just using some HERMES ports as inputs (rigged-up to some reed-switches set in to the tracking - fed through a simple 555 circuit to maintain the pulse long enough to be read by the QL), but when I start phase two, I'll be using the PWM outputs of the Arduino to actually drive the cars with the help of a motor shield - and that connection is going to be via serial connection to the QL just as you were exploring.

Good luck!


Post Reply