Page 1 of 1

PS/2 to USB converter with extra auditory feedback option

Posted: 29 Feb 2012, 21:52
by intealls
http://youtu.be/pVvd4fM7GE4

...it 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).

Posted: 01 Mar 2012, 00:57
by hasu
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?

Posted: 01 Mar 2012, 01:50
by intealls
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" :)

http://youtu.be/EsIct1shosE

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.

Posted: 01 Mar 2012, 03:55
by sordna
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.

Posted: 01 Mar 2012, 19:57
by Ascaii
whoa! I can see myself sitting at the computer hacking away randomly for hours with this.

Posted: 01 Mar 2012, 20:10
by webwit
Do you take requests?

Posted: 01 Mar 2012, 20:19
by nathanscribe
Genius. Perfect for work!

Posted: 01 Mar 2012, 20:31
by webwit
nathanscribe wrote:Genius. Perfect for work!
http://youtubedoubler.com/?video1=http% ... meahwahwah

Posted: 01 Mar 2012, 20:35
by intealls
LOL!"

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).