Add Pico 2 support

This commit is contained in:
2025-09-06 12:01:00 -04:00
parent 2fac602e44
commit a1cb13a2f9
9 changed files with 73 additions and 52 deletions
+17 -17
View File
@@ -1,9 +1,9 @@
# HyperX Alloy Elite 2 RGB Controller
This project provides individual controls of the RGB LEDs of a HyperX Alloy
Elite 2 keyboard using a webpage served over a USB connection. ADC readings
from an attached light dependent resistor can also be used to make the
lighting adaptive to the environment.
Elite 2 keyboard using a webpage served over a USB connection from a Raspberry
Pi Pico (2). ADC readings from an attached light dependent resistor can also be
used to make the lighting adaptive to the environment.
![Web interface for setting individual LED RGB values](ui.png)
@@ -12,23 +12,23 @@ lighting adaptive to the environment.
### Hardware
You will need the following hardware to make the device:
- Raspberry Pi Pico
- Raspberry Pi Pico or Raspberry Pi Pico 2
- USB extension cable
- light dependent resistor such as GL5528 (specific part number may vary)
- 10k ohm resistor (resistance value may vary)
You will need to cut the USB extension in half and connect the wires from the
female end to the Raspberry Pi Pico. The default configuration is to attach the
USB's green wire to pin 1/GP0 and USB's white wire to pin 2/GP1. You will also
need to connect the red to 5V VBUS/VSYS (since you'll be powering from the
female end to the Raspberry Pi Pico (2). The default configuration is to attach
the USB's green wire to pin 1/GP0 and USB's white wire to pin 2/GP1. You will
also need to connect the red to 5V VBUS/VSYS (since you'll be powering from the
USB host device, VBUS should be fine) and the black to any ground pin. Pin 38
is the closest and most convenient. While you can connect the Raspberry Pi Pico
to the host device using the micro USB port and a micro USB cable, since
(2) to the host device using the micro USB port and a micro USB cable, since
you have already sacrificed half of the USB extension cable, you might as well
use the male half to create a standard USB-A connection. If you wish to do so,
then simply connect the red and black wires of the male connector end to
VBUS (5V) and GND, respectively. For the data wires, you can solder them to the
two test points TP2 and TP3 on the back of the Raspberry Pi Pico. The white
two test points TP2 and TP3 on the back of the Raspberry Pi Pico (2). The white
cable goes to TP2 and the green cable to TP3.
![Back of Raspberry Pi Pico with USB connections to TP2 and TP3](back.jpg)
@@ -49,23 +49,23 @@ hole for the LDR to detect ambient light.
## Software
Flash the elite2_rgb.uf2 file from the latest
Flash the elite2_rgb-pico.uf2 or elite2_rgb-pico2.uf2 file from the latest
[release](https://git.kkozai.com/kenji/alloy_elite2_rgb/releases) to the
Raspberry Pi Pico, and connect the keyboard to the female USB port and insert
the male USB connector of the device into your host device such as PC.
Raspberry Pi Pico (2), and connect the keyboard to the female USB port and
insert the male USB connector of the device into your host device such as PC.
To load the UI for configuring the RGB lighting, open a browser to the page at
http://alloyelite2.usb, or if that doesn't load, to http://192.168.226.1
(226 is E2 for "Elite 2" in hexademical). From the webpage, you can click on
(226 is E2 for "Elite 2" in hexadecimal). From the webpage, you can click on
any individual key that you want to configure and change the color using the
color selector or by manually inputting the RGB color value into the text
boxes. To finalize setting the color for the selected key(s), click on the
"Set Color" button.
To save the lighting configuration to the Pico 2 so that it loads the next time
it is powered on, click on the "Save" button under the "Flash Memory" section.
If you make unsaved changes and want to reload the configuration from memory,
you can also click the "Load" button to reset to the last saved setting.
To save the lighting configuration to the Pico (2) so that it loads the next
time it is powered on, click on the "Save" button under the "Flash Memory"
section. If you make unsaved changes and want to reload the configuration from
memory, you can also click the "Load" button to reset to the last saved setting.
If the checkbox next to "Adaptive" is selected when setting the color, the key's
brightness will automatically adjust with the ambient lighting, as determined by