Author Topic: Adding lock lights with soarers converter  (Read 2366 times)

0 Members and 1 Guest are viewing this topic.

Offline sexzual

  • Thread Starter
  • Posts: 37
  • Location: WI USA
Adding lock lights with soarers converter
« 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?

Offline Tactile

  • Posts: 1433
  • Location: Portland, OR
Re: Adding lock lights with soarers converter
« Reply #1 on: Thu, 14 June 2018, 00:54:12 »
This is from the Soarer's Docs:

Code: [Select]
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
REΛLFORCE

Offline sexzual

  • Thread Starter
  • Posts: 37
  • Location: WI USA
Re: Adding lock lights with soarers converter
« Reply #2 on: Thu, 14 June 2018, 05:36:28 »
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?

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Re: Adding lock lights with soarers converter
« Reply #3 on: Thu, 14 June 2018, 06:51:35 »
Not sure if it works with the converter but this is from Soarer's controller documentation:
Quote
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...
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline Tactile

  • Posts: 1433
  • Location: Portland, OR
Re: Adding lock lights with soarers converter
« Reply #4 on: Thu, 14 June 2018, 08:42:59 »
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.
REΛLFORCE

Offline sexzual

  • Thread Starter
  • Posts: 37
  • Location: WI USA
Re: Adding lock lights with soarers converter
« Reply #5 on: Thu, 14 June 2018, 15:21:24 »
thanks.  was thinking the same thing.

Offline sexzual

  • Thread Starter
  • Posts: 37
  • Location: WI USA
Re: Adding lock lights with soarers converter
« Reply #6 on: Thu, 14 June 2018, 18:44:36 »
that did the trick. 

Offline Tactile

  • Posts: 1433
  • Location: Portland, OR
Re: Adding lock lights with soarers converter
« Reply #7 on: Thu, 14 June 2018, 19:17:02 »
Glad it worked. Thanks for letting us know.
REΛLFORCE