Gaming keyboard with Teensy 2.0

Not open for further replies.


New member
Hey guys,

i want to built a gaming keyboard and I already ordered a teensy 2.0 and Cherry MX switches. I know that the polling rate (125 - 1000 hz) is important, but which rate will i have with my teensy?

Thanks in advance!

Hey Leeman,

your polling rate will depend on the way you wire up your switches and how you code the polling.
I would not worry too much about that now. I built a Midi Keyboard with 44 Keys, using an Arduino Leonardo (also a 32u4 chip, like the Teensy 2). I wrote a rather simple program using two nested for loops and digitalRead() and digitalWrite(), and I did not notice any Latency.
I would start by building a test circuit with just a few switches and similar simple code and test how fast it is. If it is too slow for you, then you can optimize your code, e.g. by manipulating the port registers directly.

Regards, Flophi
In addition to the rate you implement for reading all your buttons, there is the USB polling interval. On Teensy the default is 1 ms, which is the shortest interval possible with 12 MBit/sec USB. It can be edited in the usb code, if you want to go slower.
Not open for further replies.