PS/2 to USB converter with extra auditory feedback option


29 Feb 2012, 21:52 also features normal piano-frequencies mapped to sane locations. The mode used in this video is the 'chaos' mode, which randomly selects a frequency to play on each keypress. It's powered by an ATmega16 (reads and forwards PS/2, produces sound and controls the display), and an ATtiny4313 (PS/2 to USB). I can post the PS/2 to USB code if anyone's interested (simple as can be, no boot-protocol, unidirectional communication, VUSB-based).

User avatar

01 Mar 2012, 00:57

Wow, impressive. Great hack!
I'm very interested in your code.

I guess non-'chaos' mode(different pitch for each keys) is fairly useful as typing feedback.
That mode is already implemented?


01 Mar 2012, 01:50

Thanks! :)

The chaos is just for fun, might experiment a little and try to make something useful of it. It can be used as a primitive synthesizer, which is also mostly for fun. Another demo can be found here featuring the only song I know how to "play" :)

The reason the sound-generation is there is that this is for a university project, and we needed more stuff than just the PS/2 to USB-conversion to implement.

Regarding the code, it's as simple as can be. It's basically just a PS/2 to USB LUT (PS/2 is read from USART). Pause/break (and all those other weird non-breakcode ones) aren't handled. It's nowhere near as competent as your converter, but since it supports just the basics, it should be fairly simple to understand. The code is configured for use with a mega48 right now, but only a few changes need to be made for it to work with the tiny4313.
(243.26 KiB) Downloaded 42 times

User avatar

01 Mar 2012, 03:55

Nice, audible feedback that precisely coincides with the keystroke is very useful. I have it always on on my Kinesis Advantage keyboards and it helps me avoid bottom out, as well as know if I typed something like a password properly. Especially nice feature to have with linear switches.

User avatar
The Beard

01 Mar 2012, 19:57

whoa! I can see myself sitting at the computer hacking away randomly for hours with this.

User avatar
Wild Duck

01 Mar 2012, 20:10

Do you take requests?

User avatar

01 Mar 2012, 20:19

Genius. Perfect for work!

User avatar
Wild Duck

01 Mar 2012, 20:31

nathanscribe wrote:Genius. Perfect for work! ... meahwahwah


01 Mar 2012, 20:35


One can really feel the productivity improving, with strongly defined input feedback. I'm probably going to have to turn it down just a notch, though.

Regarding linears, I think I'm gonna try it with a very subtle tone or tap sound or something with my reds. That would also be ridiculously simple to implement on top of any existing converter (just a few bytes to be written to PWM).

Post Reply

Return to “Workshop”