keyboard-mod

command module
v0.0.0-...-dd3684d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 4 Imported by: 0

README

KeyboardMod

This program is for a Keyboard modification which consists of replacing the normal (normally 3) keyboard leds by addressable RGB leds. The original led outputs of the keyboard are instead used as input for the arduino (using simple optocouplers). This still allows to read and display the original status from the keyboard, but you can freely set the colors used.

I inserted a USB hub circuit board extracted from the smallest USB hub I could find. So I can program and communicate with the arduino using the normal USB cable from the keyboard.

The communication works over normal UART, currently at baud rate 9600.

TODO

Hardware

As all keyboards are different, there is no "one way", but for mine (an old Logitech Media Keyboard 600), I used the following:

  • An USB 2.0 Hub with a small pcb. I searched on amazon until I found this one. (the original link is down, but you may be able to find similar ones, e.g. this one)
  • A small arduino. I used an Arduino Pro Micro.
  • 3 (or more) single WS2812B RGB leds. I usually use some from BTF-LIGHTING on amazon, but any compatible brand will do.
  • 3 (or more) optocouplers to get the signal of the original led outputs of the keyboard. I used the A817.
  • (optional - you could solder directly) 8-pin socket for the optocouplers

Wiring

The basic idea is to replace the existing leds with the optocouplers, to send a signal to the arduino when the keyboard wants to enable an led. Then the arduino can control the new rgb leds directly.

Also because the USB-Hub has an additional output, I just added a new USB port to the keyboard. However as I only work with USB 2.0 and I have to power the keyboard and arduino with it, the USB port cannot handle high current. For simple USB sticks it is enough.

Schematic

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
daemon
led
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL