CPCWiki forum

General Category => Amstrad CPC hardware => Topic started by: zhulien on 19:57, 01 February 23

Title: Amstrad PCW keyboard on CPC or PC?
Post by: zhulien on 19:57, 01 February 23
What is the easiest way to make an Amstrad PCW keyboard work on a CPC or PC? 
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: zhulien on 20:12, 01 February 23
Quote from: zhulien on 19:57, 01 February 23What is the easiest way to make an Amstrad PCW keyboard work on a CPC or PC?

I really really want this type of PCW for my CPC - I counted the keys and the CPC has 1 less key horizontally but the same vertically meaning an actual CPC keyboard might fit in this case with a small gap on left and right - I could probably live with that - then I need to think how to extend the CPC signals out the back - or perhaps convert to PC signals for use on a Just CPC - which uses a PC keyboard.

(https://i.ebayimg.com/images/g/LVUAAOSwbexg6wzc/s-l1600.jpg)
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: TotO on 20:35, 01 February 23
May be better to dream and wait some more years the 3D printing technology will allow to do it for our CPC without destroying this nice PCW keyboard for a dirty hack. :)
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: zhulien on 21:33, 01 February 23
I'm thinking of using the shell only with a CPC keyboard inside - so no destroying, just repurposing.
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: robcfg on 21:45, 01 February 23
Wouldn't it be easier to build some kind of adapter?
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: TotO on 21:48, 01 February 23
Yes, it is probably doable to have an adapter to convert the PCW serial data to the CPC or PC.
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: zhulien on 09:14, 07 February 23
It makes a perfect keyboard for those with just cpc, or trex.
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: PulkoMandy on 10:28, 07 February 23
I am looking to see if I can make an adapter to USB. I will let you know if I can get this working :)
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: robcfg on 13:44, 07 February 23
Typing on a modern computer with a PCW keyboard is something I'm really looking forward  :D
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: PulkoMandy on 10:13, 08 February 23
(https://mastodon.tetaneutral.net/system/media_attachments/files/109/825/859/276/503/834/original/a688305b489cfd30.jpg)

I got something working yesterday. Now I just have to make a nice circuit board for it. It connects to any computer and behaves as a standard USB keyboard.

Who wants one?

Any recommendations for mapping the PCW keys to normal keyboard ones? The USB specification has keys for CANCEL, STOP, etc but I think most modern OS won't handle these easily. And on the other hand, not having cursor keys, num lock, etc is a bit annoying. Is there a reference mapping used by emulators I should match?
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: robcfg on 12:50, 08 February 23
Niiiiice!

Does it work with the 8256/8512 keyboards too?
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: PulkoMandy on 14:00, 08 February 23
I think I don't have one for testing (or maybe I have too much stuff and I lost it?). But the protocol is the same, so it should work too.
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: GUNHED on 16:57, 08 February 23
For my Desktop CPC this keyboard get used...
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: Richard_Lloyd on 22:46, 08 February 23
Two for me please!
It will confuse the family.......
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: robcfg on 10:24, 09 February 23
Count me in for one board, please!
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: zhulien on 15:15, 09 February 23
Quote from: PulkoMandy on 10:13, 08 February 23(https://mastodon.tetaneutral.net/system/media_attachments/files/109/825/859/276/503/834/original/a688305b489cfd30.jpg)

I got something working yesterday. Now I just have to make a nice circuit board for it. It connects to any computer and behaves as a standard USB keyboard.

Who wants one?

Any recommendations for mapping the PCW keys to normal keyboard ones? The USB specification has keys for CANCEL, STOP, etc but I think most modern OS won't handle these easily. And on the other hand, not having cursor keys, num lock, etc is a bit annoying. Is there a reference mapping used by emulators I should match?
I'd like 2 - but, with the mappings, please make sure the CPC keys are also all mapped to ok options.  If it is microcontroller based, perhaps an inbuilt key combination (control+shfit+1, 2, 3 etc) could perhaps change between alternate mappings if you need more than one?
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: PulkoMandy on 08:59, 10 February 23
I'm not sure what you mean, do you have any specific suggestions for the keyboard mapping? Before deciding if we need to make this complicated with multiple mapping options, maybe let's see what the first option would look like.
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: zhulien on 07:21, 15 February 23
For me, I'd prefer UK keyboard mapping :D  But then there are a couple of keys on PCW that don't seem to have equivalents on CPC - such as that CAN? CUT, DEL->, PTR, EXIT, EXTRA (could be mapped to CONTROL), +, -

and missing from PCW when compared to CPC - F9?  | (bar),  CONTROL
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: TotO on 08:05, 15 February 23
@zhulien DEL-> and DEL<- are probably related to CLR and DEL on CPC (same location).

STOP = ESC
TAB = TAB
SHIFT LOCK = CAPS LOCK
SHIFT = SHIFT
ALT = CONTROL
EXTRA = COPY (ALT)

To properly remap the PCW keys for the CPC usage, it will be interresting to understand how the keyboard works.
In example, I don't know how the user switch from the numpad to the arrow keys, on this computer. ALT/EXTRA?

PC usage for the custom keys:

CUT = CTRL + X
COPY = CTRL + C
PASTE = CTRL + V
CAN = CTRL + Z
EXIT = CTRL + Q
PTR = CTRL + P

[ + ] and [ - ] to the OS and MENU keys.
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: PulkoMandy on 13:48, 29 April 23
Hello!

It took a bit of time because I wanted to batch the order with other things to save on shipping costs. But today I have ordered the PCBs for this.

I made it quite small, see the attached 3D rendering. There is the USB port (classic USB B) and next to it will be the DIN connector for the keyboard (not shown because I don't have a 3D model for it). All the electronics are surface mounted on the underside, with the main chip neatly fitting under the DIN (these connectors are super large by modern standards).

There will be a bootloader on the chip, that should make it possible to reflash it from the USB port, if you want to change the keyboard layout it can be done this way.

I ordered enough PCBs and components to make 10 of them for now, so I think there is room for a few more orders.

Capture.PNG
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: genesis8 on 14:06, 29 April 23
Hi,

one for me please !
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: robcfg on 17:03, 29 April 23
Niiiiiiice!

I'd love one too!
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: PulkoMandy on 08:08, 29 May 23
I received the PCBs this week and... I put the DIN connector backwards. Not only the connector is on the wrong edge of the board (so other components get in the way of connecting the keyboard), but I also mirrored the pins so 5V is where ground should be...  :doh:

I patched one of the adapters and it's working, but I don't want to assemble and sell them in this state. So I will have to make a new PCB version and wait a few weeks for it to be delivered. Until then, I will work on the firmware upgrade system so it's reasonably easy to update them with new keyboard mappings when everyone complains about my choice of mapping to PC keys  :laugh:
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: zhulien on 14:05, 29 May 23
Awesome progress still.  Is it at the state we can start looking for a good quality pcw keyboard?
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: PulkoMandy on 07:23, 05 June 23
The software is working (including the bootloader). o it's only a matter of ordering new PCBs, and completing the user manual. It will not happen this week (too busy), but probably sometime this month (and then I have to wait 3 weeks for the circuit boards)
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: PulkoMandy on 15:34, 06 August 23
Hello, finally the final version is assembled and ready to ship for the first few orders!

I ran into some strange issues with the AVR chips - I bought these from an untrusted source during the parts shortage back in 2021, apparently they didn't have their fuse set in the factor default, not sure what previous life they had... anyway, eventually I got them to work.

I made a page explaining what it does: https://pulkomandy.tk/projects/avrstuff/wiki/pcw2hid

Basically it allows to use the PCW keyboard on a PC. The keyboard is missing a few important keys for normal PC use. I guess I will let you all test it this way and let me know what changes you want, then make a new firmware.

It will work with both the 912 and 8512 keyboards (and probably the *256 versions as well, but I don't have those to test, as far as I know they are identical anyways).

I will shortly send messages to all the people who preordered one for arranging payments and shipping (still need to finish testing with the 8512 keyboard first, I expected it would work just the same, but it seems it needs a little more time to initialize and this confuses my code?)
Title: Re: Amstrad PCW keyboard on CPC or PC?
Post by: zhulien on 11:05, 05 September 23
I received my PCW keyboard adapters today, many thanks!
Powered by SMFPacks Menu Editor Mod