I'm building what amounts to a hand-wired Poker II. I want backlighting. What are my options?
I could wire all of the LEDs together, so they only take one pin to adjust. I'd need a transistor for that, right? I kinda doubt one Teensy pin could push that much power.
I could also do row/column scanning, like the switches. Could I use some of the same wiring as the switches themselves, to avoid a rat's-nest nightmare? Would I need transistors?
Also, what about resistors? Do I need one on every LED? Is there a way to use fewer? How would y'all recommend soldering them?
Thanks!
few quick answers:
1. awesome, you can go with any MX or alps switch and any LED colour. Lots of options for DIY
MX has the most support for stabilizers and keycaps.
2. you could do that but you would absolutely need a transistor. You wire the gate to the LED control pin and hit it with PWM out from the microcontroller to adjust brightness. Keep PWM frequency under 100 MHz because many transistors cant switch faster. 1khz is probably fine.
3. if you want to do row/colum scanning for the LEDs (that is to say have the microcontroller individually address every LED) you can't just wire them all together. you have to wire the LED-resistor pair (see below on that) in a matrix to the microcontroller. You can't wire them through the switches or it'll interfere with the KB trying to scan the switch matrix to see what's being pressed or not. Also MX switches are not rated for much current. Another option is to run them trough dedicated LED controller ships (corsair RGB uses one kind of LED matrix controller chip) or some other way to address that many individual units.
4. You usually need resistors. There are a few cases where you don't really require them but its much much easier to just get some resistors and be happy. 1k is a decent value and cheap, but if you let us know what LED colour and some further details about what you're thinking on how to power this, I can further narrow it down for you (and show you how the calculation work (and why). Basically they limit the current (brightness and power consumptions) of the LED because the LED is constant voltage and tries to always drop the same voltage. you need them to keep under the 500mA maximum limit for USB and to keep the LEDs from burning themselves out with too much power (and blinding people)
Hope this helps
Look up the build log for the minimal animal keyboard, he addressed how he did it there. If I find a link I'll post it later.
http://deskthority.net/workshop-f7/minimal-animal-complete-build-log-t7779.html