Skip to the content
2 layers68.9 × 56.9 mmRgb led controller, the printed circuit board in 3D

The RGB micro is a 2 key macropad with a joystick, an OLED Display, and one RGB LED - giving the user multiple ways to change an LED to any color and brightness they want! This serves as the first PCB I have created and…

Size
68.9 × 56.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
12
Nets
17
Pads
45
Tracks, vias
115, 19
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
1 Apr 2026
Updated
29 Jul 2026

Overview

Rgb led controller is an open-source printed circuit board by Rishaan-Dukhande, from the Rishaan-Dukhande/Micropad_RGB repository on GitHub. It is a 2-layer board of 68.9 × 56.9 mm with 12 parts on 17 nets, routed with 115 tracks and 19 vias.

Its parts include 5 resistors, 2 connectors, 1 IC and 1 diode. It belongs with the lEDs and displays and keyboards and input boards of this library.

README

README.md

Rishaan RGB micro hackpad

The RGB micro is a 2 key macropad with a joystick, an OLED Display, and one RGB LED - giving the user multiple ways to change an LED to any color and brightness they want! This serves as the first PCB I have created and is a great introductory project to develop PCB, CAD, and firmware skills for engineering! I created this project to develop these skills and enhance my engineering skills and knowledge. I have used RGBs and there is a color game called hues and cues, and this LED allows you to access a pallet just like the game, but in real life! Features, Images, and steps to recreate this project are listed below.

Demo

Video Title

Features:

  • Portable 3D case with openings for components and USB connection
  • Seeeduino XIAO SAMD21 controller
  • 1 RGB LED for bright color display
  • 2 tactile switch buttons for modes and presets
  • Small OLED screen that displays the current RGB value in real time.
  • Joystick for smooth & dynamic brightness and color control

How it works

The RGB Micropad is a mini RGB LED controller. The joystick navigates a full 360° color wheel — pushing in any direction changes the LED to that hue in real time. SW1 toggles between Color mode and Brightness mode, while SW2 cycles through 8 color presets. Pressing the joystick button activates Saturation mode, letting the user dial between vivid and pastel tones and creating a larger array of colors for the LED to display. The OLED screen shows the current mode, color name, RGB values, and brightness percentage at all times.

PCB

Here's my PCB! Kicad was used to create both the schematic and layout of the pcb.

Schematic

PCB

The 1x4 connector on the top is for connecting the Oled Screen (SSD1306 0.91" OLED I2C 128x32) The 1x5 connector on the bottom center of the pcb is for connecting the controling joystick

Sizes and PCB Info

  • Board size: 56.95mm x 68.85mm
  • 2 layer PCB
  • Designed in KiCad 9.0

Firmware

Written in CircuitPython. The main.py file enables the user to have the following controls:

  • SW1 → Toggle between Color mode and Brightness mode
  • SW2 → Cycle through 8 color presets
  • Joystick button → Toggle saturation mode on/off
  • Joystick X/Y → Navigate color wheel (Color mode) or adjust brightness (Brightness mode)
  • OLED display → Shows current mode, color name, RGB values, and brightness %

BOM:

Here is everything used in the RGB micro hackpad. Note that most of the prices come in sets because components cost the least when they are bought in bulk.

QtyComponentNotePrice
1Seeeduino XIAO SAMD21Main processor~$5.40
1SSD1306 0.91" OLED I2C 128x32Displays brightness and color info~$7.99
1Analog thumbstick joystick module KY-023Joystick control~$7.99
1RGB LED 5mm common cathodeLED that is being controlled~$8.99 (100 pack)
210KΩ resistorPull up resistors for buttons~$8.99 (kit)
1220Ω resistorRed LED pinincluded in resistor kit
247Ω resistorGreen and Blue LED pinsincluded in resistor kit
2Tactile push button 6x6mmControl modes for joystick control~$5.99 (pack)
12.54mm pin header 1x04OLED screen connector~$6.99 (pack)
12.54mm pin header 1x05Joystick connectorincluded in pack above

Steps to Reproduce

Parts

Order the parts in the Bill of Materials. These will be soldered on the PCB manually later on (unless specified in JLCPCB)

PCB Manufacturing

  1. Download PCB/gerbers.zip (in PCB folder of repository)
  2. Upload to JLCPCB or PCBWay (You can get grants from hackclub if you edit the PCB before upload!)
  3. Place the order - remember to pick the least expensive shipping!

Assembly

  1. Solder resistors R1-R5 onto the PCB. Utilize the following resistor values
  2. Refer to the table above to read resistor values before incorporating them. The table below has the resistor values with their placement on the PCB.
R#Value
R1220Ω
R247Ω
R347Ω
R410KΩ
R510KΩ
  1. Solder RGB LED into the D1 slot on the PCB
  2. Solder tactile switches SW1 and SW2.
  3. Solder 5 pin header into the slot for the Joystick
  4. Solder 4 pin header into the slot for the OLED screen
  5. Solder XIAO SAMD21 on the top left of the board

Flashing Instructions (Get firmware onto the PCB)

  1. Copy or download the firmware as a .ino file and open it in arduino IDE
  2. Use a USB-C transfer cable and plug it into the seedunio XAMD 21 and a computer
  3. Upload the code using arduino IDE
  4. The RGB Micropad will automatically begin to work (it can be plugged in directly to power)

Verify your RGB Micropad works!

  1. Plug in via USB (either computer of any electricity source)
  2. OLED should show RGB Micropad splash screen
  3. Move joystick to change LED color or brightness (depends on the mode you are on)
  4. Press SW1 to toggle between modes! Mode 1: Color Mode 2: Brightness
  5. Press SW2 to cycle through preset colors for LED
  6. Press Joystick button to toggle saturation mode (This is an advanced mode for an additional array of colors)

AI Usage

AI was used during the project as a step-by-step guide. The firmware was also written by AI.

Devlog

Session 1 — Schematic Design

The schematic was designed in Kicad. This included the following components:

  1. XIAO SAMD21
  2. RGB LED
  3. Joystick module
  4. OLED screen
  5. Two tactile buttons

Session 2 — PCB Layout

Note) This takes about 2 hrs for beginners

  1. Layout of all components (If you are replicating, be creative and change locations of components).
  2. Added GND copper pour so I don't have to route GND pins of every component
  3. Routed the PCB connections between XIAO board and components
  4. Created Silkscreen for aesthetics including Hack Club logo and component labels.

Session 3 - Error with pullup resistors

  1. Edited schematic by adding 10KΩ pullup resistors for both tactile switches
  2. Used Ohm's law to calculate resistor values for RGB LED pins a) Blue and Green pins receive 47Ω resistors b) Red pin receives 220Ω resistors c) This occurs because they have different voltage requirements in order to power the color
  3. Update PCB layout to include the resistors (2hrs).

Session 4 — Firmware

  1. Wrote CircuitPython firmware. This enables the PCB to have the following capabilities: a) Implemented color wheel for color mode control b) Brightness control from Joystick c) Mode navigation button to control both color and brightness with one Joystick d) Easily use joystick to change LED characteristics

Session 5 — Case Design

Designed sandwich mount 3D-case in Fusion 360. The sandwich mount design can be found as the 5th mount in this Different keyboard mounts document.

Bottom case (1hr)
  1. Created bottom case with 0.4 mm clearance for PCB on all sides
  2. Added 10mm thick walls all around board and 3.2mm diameter mounting holes
Top case (1 hr)
  1. Measured placement of components on PCB and created openings
  2. Added fillets to strengthen design and make it look good
  3. Added project name, author, and hackclub svg logo

Session 6 - README and Github Polish

  1. Reviewed current github
  2. Added devlog, images, and project info to the README.

session 7 - Assembly (3-4 hrs)

  1. Soldered components to the PCB
  2. Re-designed the case to better fit PCB
  3. Created Demo Video

Extra stuff

I am ready to create more complex hackpads. Through this project, I was able to gain PCB making skills and refine my CAD skills. I am now confident that I can create electronic projects at a much faster pace with the use of these digital designing tools. If you have any project recommendations, please feel free to share them!

Parts

12
QtyValueFootprintReferences
210KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4, R5
247Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2, R3
2SW_PushButton_Switch_THT:SW_PUSH_6mmMode, Presets
1220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ2
1LED_RGBLED_THT:LED_D5.0mm-4_RGB_Wide_PinsD1
1LOGOLOGOlogo
1MOUDLE-SEEEDUINO-XIAOfootprints:XIAO-Generic-Hybrid-14P-2.54-21X17.8MMU1

Similar boards

  • 2 layersNrf bga, the printed circuit board in 3D

    Nrf bga

    github-linguist/linguist

    Language Savant. If your repository's language is being reported incorrectly, send us a pull request!

    12 parts14kMIT
  • 2 layers66.9 × 74.5 mmDeskHop, the printed circuit board in 3D

    DeskHop

    hrvach/deskhop

    Fast Desktop Switching Device

    12 parts7.9kGPL-3.0
  • 2 layers40 × 15 mmSensors, the printed circuit board in 3D

    Sensors

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    12 parts3kApache-2.0
  • 2 layers42.7 × 56.5 mmTle6240 driver, the printed circuit board in 3D

    Tle6240 driver

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    12 parts1.2k
  • 2 layers49 × 25 mm5v boost regulator, the printed circuit board in 3D

    5v boost regulator

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    12 parts915
  • 2 layers28.3 × 10.3 mmTap Photosensor PCB, the printed circuit board in 3D

    Tap Photosensor PCB

    VoronDesign/Voron-Tap

    Tap is a nozzle-based z-probe for the V2 and Trident printer designs. The entire toolhead moves to trigger an optical switch. Tap offers many advantages:

    12 parts716GPL-3.0
  • 2 layers25.4 × 70.4 mmTpmsniffer, the printed circuit board in 3D

    Tpmsniffer

    stacksmashing/pico-tpmsniffer

    A simple, very experimental TPM sniffer for LPC bus

    12 parts696

Questions

How big is the Rgb led controller PCB?

It measures 68.9 × 56.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Rgb led controller use?

12 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Rgb led controller KiCad files?

From the Rishaan-Dukhande/Micropad_RGB repository on GitHub, at the commit this page was made from: the board is PCB/rgb_led_controller.kicad_pcb and its schematic PCB/rgb_led_controller.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Rgb led controller design in my own project?

Its repository states no licence, so its author keeps all rights: ask Rishaan-Dukhande before reusing the design.