mysterium icon indicating copy to clipboard operation
mysterium copied to clipboard

Adding LEDs

Open stevenvo opened this issue 4 years ago • 7 comments

Is it possible to add LEDs or any type of lighting to the board?

stevenvo avatar Sep 09 '20 19:09 stevenvo

I too would like to know. Seems like it should be easy to add cheap RGB LED strips on the bottom of the PCB for people with Acrylic cases.

debido666 avatar Sep 09 '20 19:09 debido666

LED strip can be added by connecting GND and +5v on the underside of the ISP headers. Not sure about programmability.

source: u/thearctican @ https://www.reddit.com/r/MechanicalKeyboards/comments/f5kbc6/cftkb_mysterium_transparent_grey/

eskimotherapy avatar Sep 09 '20 20:09 eskimotherapy

It uses an ATMEGA32A-PU. (V2 model) I imagine (hope) one just needs to find the right pin for addressing and add/enable RGB functions in firmware. Guess I'll find out in October. When mine arrives.

debido666 avatar Sep 09 '20 21:09 debido666

There is a similar topic in the discipline issues section. I'm trying to get this sorted but I get an unrecognized USB device error after flashing the firmware. I guess we can't use a pin already taken for rows or columns?

Anyway, QMK supports only certain types of LED strips: https://beta.docs.qmk.fm/using-qmk/hardware-features/lighting/feature_rgblight

LEDs have to be enabled in rules.mk and configured in config.h by uncommenting LED part:

#define RGB_DI_PIN A7 #ifdef RGB_DI_PIN #define RGBLED_NUM 16 #define RGBLIGHT_HUE_STEP 8 #define RGBLIGHT_SAT_STEP 8 #define RGBLIGHT_VAL_STEP 8 #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ // /*== all animations enable ==*/ #define RGBLIGHT_ANIMATIONS // /*== or choose animations ==*/ // #define RGBLIGHT_EFFECT_BREATHING // #define RGBLIGHT_EFFECT_RAINBOW_MOOD // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL // #define RGBLIGHT_EFFECT_SNAKE // #define RGBLIGHT_EFFECT_KNIGHT // #define RGBLIGHT_EFFECT_CHRISTMAS // #define RGBLIGHT_EFFECT_STATIC_GRADIENT // #define RGBLIGHT_EFFECT_RGB_TEST // #define RGBLIGHT_EFFECT_ALTERNATING #endif

I bet the problem I got is because A7 is already used as a column pin, I struggle to understand which pins are BX, CX and DX as this naming doesn't match ATMEGA32A pinout schematic.

d1554573r avatar Sep 20 '20 22:09 d1554573r

the guide mentions D71 pin used for ISO, I wonder if we can use it to control the rgb... https://static1.squarespace.com/static/5c533d33348cd92b886e544d/t/5f4597da4c8f740579aec0ca/1598396382120/DISCIPLINE+BUILD+GUIDE.pdf

stevenvo avatar Sep 21 '20 01:09 stevenvo

According to the schematic, only C0 & C0 are not taken but if you assign any of them to the LED's you'll get an unrecognized device. Atm I got fixed blue LED's and I would love to replace them with an RBG led.

d1554573r avatar Oct 01 '20 20:10 d1554573r

According to the schematic, only C0 & C0 are not taken but if you assign any of them to the LED's you'll get an unrecognized device. Atm I got fixed blue LED's and I would love to replace them with an RBG led.

Using Pin 23 - C1 works fine. Controlling the RGB with defined Keys in the Keymap works fine.

this-snow avatar Dec 27 '20 17:12 this-snow