- Arduino (e.g., Uno, Nano)
- KY-004 Key Switch Module
- KY-016 RGB LED Module
- Jumper wires
- VCC → 5V, GND → GND, SIG → Pin 2
- Reads HIGH when pressed, LOW when released.
For more details, check the full guide:
Using the Key Switch Module KY-004 with Arduino
- VCC → 5V, GND → GND, R Pin → Pin 9, G Pin → Pin 10, B Pin → Pin 11
- Controls RGB color by adjusting Red, Green, and Blue pins.
For more details, refer to:
KY-016 RGB Full Color LED Module
- Connect the modules.
- Upload
KY-004.ino
andKY-016.ino
to Arduino. - Test: Press the key switch and change LED colors.
- No output: Check connections.
- LED issue: Verify RGB wiring.
This version includes the links for further details and keeps the information concise.