Hardwiring Leds to switches and teensy
-
- Main keyboard: Cooler Master Quickfire Rapid
- Main mouse: Corsair M65
- Favorite switch: Blues, red
- DT Pro Member: -
how do i go about doing this?
-
- Main keyboard: Cooler Master Quickfire Rapid
- Main mouse: Corsair M65
- Favorite switch: Blues, red
- DT Pro Member: -
Yah i have plates and switches. I already know how to wire them up. But i now want to add leds, How should i go about adding and connecting the leds?
- Muirium
- µ
- Location: Edinburgh, Scotland
- Main keyboard: HHKB Type-S with Bluetooth by Hasu
- Main mouse: Apple Magic Mouse
- Favorite switch: Gotta Try 'Em All
- DT Pro Member: µ
Depends on what you want the LEDs to do.
If they're all just for illumination, you could hook them all up together (with appropriate resistors) to the VCC and GND on the Teensy. Teensy's have a limit on how much power they can put out, so be careful how many and how bright you want to go. I'm no electrical engineer, so I'm just guessing you hook them all up in series, with a resistor at the end. But I could be wrong.
If, meanwhile, they're to indicate things like Caps Lock, then you need to hook them directly to the appropriate pin on the Teensy, with a resistor of their own. The pin and the function depends on the firmware you're using.
And if you're trying to do a lightshow like the Ducky Shine 3, etc., you'll need to make a whole separate matrix for the LEDs, and grab Teensy++ or something else with pins to spare!
If they're all just for illumination, you could hook them all up together (with appropriate resistors) to the VCC and GND on the Teensy. Teensy's have a limit on how much power they can put out, so be careful how many and how bright you want to go. I'm no electrical engineer, so I'm just guessing you hook them all up in series, with a resistor at the end. But I could be wrong.
If, meanwhile, they're to indicate things like Caps Lock, then you need to hook them directly to the appropriate pin on the Teensy, with a resistor of their own. The pin and the function depends on the firmware you're using.
And if you're trying to do a lightshow like the Ducky Shine 3, etc., you'll need to make a whole separate matrix for the LEDs, and grab Teensy++ or something else with pins to spare!
-
- Main keyboard: Cooler Master Quickfire Rapid
- Main mouse: Corsair M65
- Favorite switch: Blues, red
- DT Pro Member: -
So It will illuminate constantly? Not able to only tap then lights up rite?
- Muirium
- µ
- Location: Edinburgh, Scotland
- Main keyboard: HHKB Type-S with Bluetooth by Hasu
- Main mouse: Apple Magic Mouse
- Favorite switch: Gotta Try 'Em All
- DT Pro Member: µ
I doubt Google would help. Perhaps if you want to know "how to SEO?" then it would be more useful!
As for the answer, I said already. Each of those paragraphs is a different way to do it. You gotta pick.
As for the answer, I said already. Each of those paragraphs is a different way to do it. You gotta pick.
-
- DT Pro Member: -
Acording to rklm on his build
lots of work, I gave up after caps lock and breathing LED, not worth the troublePositive lead of all LEDs were connected to one pin (the VCC pin on the bottom of the teensy, opposite the mini USB port)
The negative of each individual LED was connected to it's own resistor, and all of those resistors were connected together to the GND pin (also on the bottom of the teensy).
To figure out how many ohms your resistors need to be, I divided 400 amps by the number of LEDs I wanted to use, then plugged that into this calculator: http://led.linear1.org/led.wiz
-
- Location: Sweden
- Main keyboard: Filco Majestouch 2 TKL
- Main mouse: Logitech G500
- Favorite switch: Black
- DT Pro Member: -
Have a look into shift registers, basically a chip that you connect to your teensy with 3 pins + V and G. then these registers can provide you with lets say 16 PWM pins for controlling a matrix of leds. Im about to dig deep into this when my build starts (very soon!)