Author Topic: Backlighting keyboard with cycling RBG leds  (Read 2677 times)

0 Members and 1 Guest are viewing this topic.

Offline adventurepoop

  • Thread Starter
  • Posts: 109
  • Location: IL
  • I make keyboards, I guess.
Backlighting keyboard with cycling RBG leds
« on: Fri, 27 June 2014, 15:46:43 »
If I use these to back light my keyboard, will the colors be out of sync with each other? If not I will do it, but I want the whole keyboard to change color at the same time and not have each key changing randomly on its own. Will I have to hook them up anyway special to keep them in sync??

https://www.sparkfun.com/products/11448

Offline Lain1911

  • God of the Wired
  • Posts: 383
Re: Backlighting keyboard with cycling RBG leds
« Reply #1 on: Fri, 27 June 2014, 15:53:42 »
I'm not sure how it was done but is this what you are talking about? I's like to know how to do this too.


Offline Input Nirvana

  • Master of the Calculated Risk
  • Posts: 2316
  • Location: Somewhere in the San Francisco Bay area/Best Coast
  • If I tell ya, I'll hafta kill ya
Re: Backlighting keyboard with cycling RBG leds
« Reply #2 on: Fri, 27 June 2014, 16:26:48 »
That's just awesome. Someone else posted very similar that he did on a Kinesis Advantage. I like it and would like to have on my keyboard in the future. Very fun.
Kinesis Advantage cut into 2 halves | RollerMouse Free 2 | Apple Magic Trackpad | Colemak
Evil Screaming Flying Door Monkeys From Hell                     Proudly GeekWhacking since 2009
Things change, things stay the same                                        Thanks much, Smallfry  
I AM THE REAPER . . . BECAUSE I KILL IT
~retired from forum activities 2015~

Offline qwack

  • Posts: 310
  • Location: ISO FR
Re: Backlighting keyboard with cycling RBG leds
« Reply #3 on: Fri, 27 June 2014, 16:45:08 »
If I use these to back light my keyboard, will the colors be out of sync with each other? If not I will do it, but I want the whole keyboard to change color at the same time and not have each key changing randomly on its own. Will I have to hook them up anyway special to keep them in sync??

https://www.sparkfun.com/products/11448

I remember reading somewhere that the timing was sometimes inconsistent and that after a moment the LEDs will indeed be out of sync. I'll see if I can find back the thread.

Pure Pro w/MX Red - [review]

Offline adventurepoop

  • Thread Starter
  • Posts: 109
  • Location: IL
  • I make keyboards, I guess.
Re: Backlighting keyboard with cycling RBG leds
« Reply #4 on: Sat, 28 June 2014, 07:55:47 »
I'm not sure how it was done but is this what you are talking about? I's like to know how to do this too.

Not really, I want the whole keyboard to change as one and not each section on its own.

Offline Input Nirvana

  • Master of the Calculated Risk
  • Posts: 2316
  • Location: Somewhere in the San Francisco Bay area/Best Coast
  • If I tell ya, I'll hafta kill ya
Re: Backlighting keyboard with cycling RBG leds
« Reply #5 on: Sat, 28 June 2014, 09:58:55 »
The post I referenced that the work was come to a Kinesis... The guy used Arduino so any type of patterns can be done.

Über-coolio
Kinesis Advantage cut into 2 halves | RollerMouse Free 2 | Apple Magic Trackpad | Colemak
Evil Screaming Flying Door Monkeys From Hell                     Proudly GeekWhacking since 2009
Things change, things stay the same                                        Thanks much, Smallfry  
I AM THE REAPER . . . BECAUSE I KILL IT
~retired from forum activities 2015~

Offline 0100010

  • Posts: 1127
  • Location: DFW, TX, US
  • Not Sure
Re: Backlighting keyboard with cycling RBG leds
« Reply #6 on: Sat, 28 June 2014, 10:15:46 »
Look up how you would control an RGB LED cube with an Arduino Uno and shift registering LED drivers.
  Quoting me causes a posting error that you need to ignore.

Offline qwack

  • Posts: 310
  • Location: ISO FR
Re: Backlighting keyboard with cycling RBG leds
« Reply #7 on: Sat, 28 June 2014, 10:55:24 »
Those cycling RGB LEDs have only two leads, do you mean it would be possible to control them just like other RBG LEDs with 4 leads?
« Last Edit: Sat, 28 June 2014, 12:19:35 by qwack »

Pure Pro w/MX Red - [review]

Offline adventurepoop

  • Thread Starter
  • Posts: 109
  • Location: IL
  • I make keyboards, I guess.
Re: Backlighting keyboard with cycling RBG leds
« Reply #8 on: Sat, 28 June 2014, 22:11:03 »
Those cycling RGB LEDs have only two leads, do you mean it would be possible to control them just like other RBG LEDs with 4 leads?
No I mean if I had a bunch hooked up normal would they get out of sync?

Offline engicoder

  • Posts: 721
  • Location: North Carolina
Re: Backlighting keyboard with cycling RBG leds
« Reply #9 on: Sun, 29 June 2014, 07:44:39 »
No I mean if I had a bunch hooked up normal would they get out of sync?

Depends on how well regulated the color changing is. The only way to know for sure is to try. Buy a 5 or so and put them in parallel and see what happens.
   

Offline qwack

  • Posts: 310
  • Location: ISO FR
Re: Backlighting keyboard with cycling RBG leds
« Reply #10 on: Sun, 29 June 2014, 08:01:12 »
No I mean if I had a bunch hooked up normal would they get out of sync?

As I said:

I remember reading somewhere that the timing was sometimes inconsistent and that after a moment the LEDs will indeed be out of sync. I'll see if I can find back the thread.

If you search for "rgb cycling led out of sync", you'll see that it is a common issue with those LEDs.

Pure Pro w/MX Red - [review]

Offline Oobly

  • * Esteemed Elder
  • Posts: 3929
  • Location: Finland
Re: Backlighting keyboard with cycling RBG leds
« Reply #11 on: Mon, 30 June 2014, 05:52:38 »
If I use these to back light my keyboard, will the colors be out of sync with each other? If not I will do it, but I want the whole keyboard to change color at the same time and not have each key changing randomly on its own. Will I have to hook them up anyway special to keep them in sync??

https://www.sparkfun.com/products/11448

Yes, they will go out of sync, probably fairly quickly, too. If their cycles are not too different in speeds and they don't store their last position in the cycle, you could try hooking the power for the LED's to a microcontroller and briefly interrupting power to them at an appropriate interval (time how long a full cycle takes up and use that as an interval). That should reset them to start the cycle again at the same time. You will probably notice the "blink" when they reset, though, unless they start their cycle dark and there is another point in the cycle that is dark that you can use as a reset point. You can experiment with how long they need to stay off to reset the cycle.

AFAIK, there is no way to send them some kind of timing signal to keep them in sync otherwise.
Buying more keycaps,
it really hacks my wallet,
but I must have them.

Offline adventurepoop

  • Thread Starter
  • Posts: 109
  • Location: IL
  • I make keyboards, I guess.
Re: Backlighting keyboard with cycling RBG leds
« Reply #12 on: Mon, 30 June 2014, 09:41:58 »
If I use these to back light my keyboard, will the colors be out of sync with each other? If not I will do it, but I want the whole keyboard to change color at the same time and not have each key changing randomly on its own. Will I have to hook them up anyway special to keep them in sync??

https://www.sparkfun.com/products/11448

Yes, they will go out of sync, probably fairly quickly, too. If their cycles are not too different in speeds and they don't store their last position in the cycle, you could try hooking the power for the LED's to a microcontroller and briefly interrupting power to them at an appropriate interval (time how long a full cycle takes up and use that as an interval). That should reset them to start the cycle again at the same time. You will probably notice the "blink" when they reset, though, unless they start their cycle dark and there is another point in the cycle that is dark that you can use as a reset point. You can experiment with how long they need to stay off to reset the cycle.

AFAIK, there is no way to send them some kind of timing signal to keep them in sync otherwise.
Alright, I'll order some and experiment. Maybe like have half reset every cycle or something, I dunno. Hopefully theylee stay somewhat in time for 2 cycles.

Offline Koren

  • Posts: 133
  • Location: France
Re: Backlighting keyboard with cycling RBG leds
« Reply #13 on: Tue, 01 July 2014, 16:10:40 »
Yes, they will go out of sync, probably fairly quickly, too. If their cycles are not too different in speeds and they don't store their last position in the cycle, you could try hooking the power for the LED's to a microcontroller and briefly interrupting power to them at an appropriate interval (time how long a full cycle takes up and use that as an interval). That should reset them to start the cycle again at the same time. You will probably notice the "blink" when they reset, though, unless they start their cycle dark and there is another point in the cycle that is dark that you can use as a reset point. You can experiment with how long they need to stay off to reset the cycle.

AFAIK, there is no way to send them some kind of timing signal to keep them in sync otherwise.
I agree on all this.

Just a suggestion: if you have enough space to put two leds instead of one, you can always solder two of them everywhere in opposite directions. Only one will lit. By changing the polarity on a regular interval (inverting VCC and GND), you'll trigger a cycle for the other set of diods. This way, you can probably have a very stable cycle (just set the inversion at an interval equal in length with the cycle) and no blink/black state.


(just check before that they can be put in reverse, like any other diods, that may be different for this kind of diods with electronics inside)
« Last Edit: Tue, 01 July 2014, 16:13:39 by Koren »