KeyzPal_Mimic is an ESP8266-based project that allows you to control an LED strip using UDP commands sent over a network. It is designed to mimic the behavior of a keyboard's Caps Lock, Num Lock, and Scroll Lock LEDs, but with an LED strip.
- Emulates the Caps Lock, Num Lock, and Scroll Lock LEDs using an LED strip.
- Listens for UDP commands to control the LED colors and states.
- Supports customization of LED colors for each lock state.
- Saves and restores LED colors from EEPROM to retain settings after a power cycle.
- Works with any ESP8266 development board and compatible LED strip.
- This hardware is controlled by KeyzPal tray utility for windows. Get it here
- ESP8266 module (tested with ESP01)
- LED strip (NeoPixel or WS2812B)
- Arduino IDE (or compatible development environment)
- ESP8266WiFi library
- WiFiUdp library
- Adafruit_NeoPixel library
- Clone or download the KeyzPal_Mimic repository.
- Open the Arduino IDE and navigate to Sketch -> Include Library -> Manage Libraries.
- Search for and install the following libraries:
- ESP8266WiFi
- WiFiUdp
- Adafruit_NeoPixel
- Connect your ESP8266 module to your computer.
- Open the KeyzPal_Mimic.ino file in the Arduino IDE.
- Modify the code as needed (e.g., enter your network SSID and password).
- Upload the code to your ESP8266 module.
- Connect the LED strip to the appropriate GPIO pin on your ESP8266 module.
- Power on the ESP8266 module.
- Ensure that the ESP8266 is connected to your Wi-Fi network.
- The LED strip will initially turn red while it connects to Wi-Fi and initializes.
- Once connected, the LED strip will turn green briefly, then turn off.
- The KeyzPal_Mimic system is now ready to receive commands.
You can send UDP commands to the KeyzPal_Mimic system to control the LED strip. The commands are as follows:
- capsON: Turn on the Caps Lock LED.
- capsOFF: Turn off the Caps Lock LED.
- numON: Turn on the Num Lock LED.
- numOFF: Turn off the Num Lock LED.
- scrollON: Turn on the Scroll Lock LED.
- scrollOFF: Turn off the Scroll Lock LED.
- caps
color
: Set the color of the Caps Lock LED. Replacecolor
with a supported color name (e.g., Red, Green, Blue). - num
color
: Set the color of the Num Lock LED. Replacecolor
with a supported color name. - scroll
color
: Set the color of the Scroll Lock LED. Replacecolor
with a supported color name. - Reboot: Restart the ESP8266 module.
- Eeprom: Restore saved LED colors from EEPROM (for diagnostic purposes).
The following colors are supported for LED customization:
- Red
- Green
- Blue
- Purple
- White
- Yellow
- Aqua
- Orange
- Pink
- Magenta
- Lime
Contributions to the KeyzPal_Mimic project are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.
This project is licensed under the Apache license.