geekhack
geekhack Projects => Making Stuff Together! => Topic started by: sexzual on Wed, 13 June 2018, 23:36:08
-
Have an ibm model m 122 i'm thinking about adding lock lights to. already set up using soarers converter and working well. i also have a lock light daughter board out of a newer model m. 1 pin is v+ and when the other three pins get grounded, the corresponding led turns on. how do i go about wiring it into a pro micro, and what do i need to do in software?
-
This is from the Soarer's Docs:
LEDs
Optionally, lock LEDs can be wired up. Useful if your keyboard doesn't have them!
The outputs are active high (each pin puts out +5V when it wants to light the LED).
A resistor is needed inline with each LED. (The value needed depends on the type of LED, 1Kohm is a good starting point for modern high-brightness types).
The pins used differ between Teensy and Teensy++.
Teensy 2.0 (ATMEGA32U4):
LED Teensy
CapsLock PF5
NumLock PF6
ScrollLock PF7
Teensy++ 2.0 (AT90USB1286):
LED Teensy
CapsLock PD3
NumLock PD4
ScrollLock PD5
-
huh looks like the board i have would be useless than as it uses a common 5v and uses ground to switch on the leds. is there a way to have the teensy output ground on the three pins instead of 5v?
-
Not sure if it works with the converter but this is from Soarer's controller documentation:
Lock LEDs can be connected to any pin, and the polarity of each pin can be individually configured.
led <lock> [-]<pin>
Example:
led caps PD3 # for when the other end of the LED/resistor combination is 0V
led num -PD4 # for when the other end of the LED/resistor combination is +5V
So try adding a - before the pin name? Will probably crash on compiling if it doesn't like it...
-
Just change the LED circuit from common anode to common cathode. I don't know anything about your LED board but the first thing I'd try is simply removing each LED and re-installing the other way. If the board wiring is simple that should work. If there is more complex circuitry on the board it might not. But it's worth a shot, anyway.
-
thanks. was thinking the same thing.
-
that did the trick.
-
Glad it worked. Thanks for letting us know.