Go Down

Topic: Arduino as a Keyboard Remapper? (Read 2026 times) previous topic - next topic

mrshr3d

I haven't actually got myself an Arduino yet  :-[    However, my bday is only a couple weeks away so hopefully will have a bit of cash to get one.  I only just learnt about it in a PC magazine article, looks like a lot of fun to be had!

I type using the Dvorak layout and find it an inconvenience when having to access the BIOS, or when running a Terminal Session/VM that doesn't support Dvorak.  I thought for a project whether it would be possible to program it to remap keys from Qwerty to Dvorak.  I imagine the setup would be:

Keyboard ==connected to==> Arduino ==connected to==> PC's PS2 or USB

and Pseudo Code something along the lines of:

Start Loop
Read Scancode from Keyboard
If Scancode is Qwerty[0], Output Dvorak[0]
Else If Scancode is Qwerty[1], Output Dvorak[1]
etc


Also, I assume this be much easier to do with a PS2 keyboard as opposed to USB?

Thank you in advance for any advice.

Cheers
Mr Shred

kg4wsv

You could probably modify this device from sparkfun, or look at their schematic and code for a starting point.

-j


follower

Quote
Also, I assume this be much easier to do with a PS2 keyboard as opposed to USB?

Yes.

--Phil.

Go Up