Keyboard Hacking/Automation
Posted: Sat Aug 10, 2013 10:14 pm
Hi All,
I dug out my old AH, issue 5 Sinclair QL that I wrote an enormous amount of code on "back-in-the-day" and enjoyed. Looking back on it now I can see how things went wrong. Enough about that!
A friend and myself have joked that this would be an interesting demo platform - mostly because it is so unexplored.
Now, My dev machine these days is a MacBook Air and what I want to do is to be able to automate control of the QL.
So far I can see that the only way to completely encompass automation is to hack into the keyboard interface so that I can remotely type into the machine. This would let me type "F1" or "F2" and then type a short basic routine that allocated vis RESPR and then accepted input (I remember that the only hope of decent performance was MCODE). That program could accept more keyboard input or start a process that read the rest of the code from serial port (via a QL->RS232 and an RS232 to USB adapter into my Mac).
So, the keyboard. It seems to be a fairly conventional matrix arrangement of 9 * 11. The keyboard scanning process is, for each row, set the row high and then read the columns to see which bits are set. Eventually one builds up a map of which keys a set and turn that into a keyboard scan code (or KEYROW for the QL).
I figure a USB attached device (PIC or similar) with enough I/O would do the job - however, it's been a LONG time since I hacked any hardware and, TBH, I mostly hacked SW anyway. I would really love some help here. I'm certain I can handle PIC coding and the required state machine but I'm not sure what sort of hardware I will need to take control of the keyboard I/O lines on the QL. The complete circuit would be QL <-> keyboard matrix I/O <-> uController <-> USB <-> Mac.
Anyone have any ideas to help please?
Burnttoy.
I dug out my old AH, issue 5 Sinclair QL that I wrote an enormous amount of code on "back-in-the-day" and enjoyed. Looking back on it now I can see how things went wrong. Enough about that!
A friend and myself have joked that this would be an interesting demo platform - mostly because it is so unexplored.
Now, My dev machine these days is a MacBook Air and what I want to do is to be able to automate control of the QL.
So far I can see that the only way to completely encompass automation is to hack into the keyboard interface so that I can remotely type into the machine. This would let me type "F1" or "F2" and then type a short basic routine that allocated vis RESPR and then accepted input (I remember that the only hope of decent performance was MCODE). That program could accept more keyboard input or start a process that read the rest of the code from serial port (via a QL->RS232 and an RS232 to USB adapter into my Mac).
So, the keyboard. It seems to be a fairly conventional matrix arrangement of 9 * 11. The keyboard scanning process is, for each row, set the row high and then read the columns to see which bits are set. Eventually one builds up a map of which keys a set and turn that into a keyboard scan code (or KEYROW for the QL).
I figure a USB attached device (PIC or similar) with enough I/O would do the job - however, it's been a LONG time since I hacked any hardware and, TBH, I mostly hacked SW anyway. I would really love some help here. I'm certain I can handle PIC coding and the required state machine but I'm not sure what sort of hardware I will need to take control of the keyboard I/O lines on the QL. The complete circuit would be QL <-> keyboard matrix I/O <-> uController <-> USB <-> Mac.
Anyone have any ideas to help please?
Burnttoy.