Skip to the content
2 layers47.5 × 109.9 mmMainPad, the printed circuit board in 3D

A small macropad programmed using arduino featuring programmable key sets, a knob and an oled screed

Size
47.5 × 109.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
25
Nets
26
Pads
100
Tracks, vias
144, 3
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
17 Sep 2023
Updated
3 Oct 2023

Overview

MainPad is an open-source printed circuit board by Raphael-Leb, from the Raphael-Leb/Arduino-Macro-Pad repository on GitHub. It is a 2-layer board of 47.5 × 109.9 mm with 25 parts on 26 nets, routed with 144 tracks and 3 vias.

Its parts include 9 ICs and 8 switches. It belongs with the keyboards and input boards and the ESP32 and RISC-V boards of this library.

README

README.md

Arduino Macro Pad

A small macropad programmed using arduino featuring programmable key sets, a knob and an oled screed

Features

  • Xiao rp2040 microcontroller

  • Cherry mx keys

  • An oled screen displaying the shortcuts set

  • A clickable rotary encoder knob

    20230922_190033

20230922_190054

Design

PCB

The pcb was made using kicad, the design files are in Mainpad/PCBfiles. The keys are not organised properly, they need to be rearanged to match with the schematic. The keys are also not spaced enough for regular keycaps The gerber files are in Mainpad/ProdFiles, these should be all you need to produce more copies if you are unexperienced with pcb software image image

Software

The entire software is made with arduino, the firmware_2040.ino contains the logic and the pins.h contains the configuration for configuring layout as well as shortcuts. I tried to make this with a xiao esp32c3, but couldn't get the bluetooth keyboard and bluetooth mouse library working at simultanuously, so let me know if you find a fix. For now this will only work as a wired keypad. I will be making a frontend for configuring the pins.h in the near future.

Casing

The casing was made in solidworks with several models I found on grabcad. I had to make custom keycaps because the keys were too close together to fit standard caps, I followed the footprint's spacing but should've double checked if it was correct. I first modeled a casing with the pcb tilted upward to fit the angle of my keyboard, but then decided on making it flat instead. The files are still there if that's what you prefer, but they are incomplete. Initialy tried to make a press fit casing, but spacing proved to be quite a pain to nail down considering how 3d printed plastic warps. I used 6 m3 screws to secure everything. image

Parts

Parts

25
QtyValueFootprintReferences
8D_SmallDiode_THT:D_DO-35_SOD27_P7.62mm_HorizontalU2, U3, U4, U5, U6, U7, U8, U9
8SW_PushButton_Switch_Keyboard:SW_Cherry_MX_1.00u_PCBSW1, SW2, SW3, SW4, SW5, SW6, SW7, SW8
4MountingHole_3.2mm_M3MountingHole:MountingHole_3.2mm_M3Hole1, Hole2, Hole3, Hole4
1BatteryBattery:Battery_Panasonic_CR1025-VSK_Vertical_CircularHolesBT1
1RotaryEncoder_SwitchRotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mmKnob1
1SSD1306SSD1306:128x64OLEDScreen1
1SW_DPDT_x2Assorted parts:SLIDE-SWITCHPoweSwitch1
1Xiao-esp32c3Shogi:Seeeduino_XIAO-MOUDLE14P-2.54-21X17.8MMU1

Similar boards

  • 2 layers159.5 × 30 mmType f, the printed circuit board in 3D

    Type f

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    25 parts3kApache-2.0
  • 2 layers113.5 × 95.1 mmSweep high, the printed circuit board in 3D

    Sweep high

    davidphilipbarr/Sweep

    Sweep - a small promicro based keyboard inspired by the Ferris.

    25 parts2.1k
  • 2 layers58.4 × 114.3 mmPicoPedal, the printed circuit board in 3D

    PicoPedal

    hackclub/OnBoard

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

    25 parts915
  • 2 layers54 × 15 mmXyp gpib, the printed circuit board in 3D

    Xyp gpib

    xyphro/UsbGpib

    Versatile, cheap and portable USB to GPIB converter (USBTMC class based)

    25 parts690MIT
  • 2 layers50 × 76 mmVoron 0, the printed circuit board in 3D

    Voron 0

    dennisss/dacha

    Monorepo for awesome tools/projects/libraries

    25 parts397Apache-2.0
  • 2 layers237.5 × 102.9 mmStorage, the printed circuit board in 3D

    Storage

    jes/scamp-cpu

    A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

    25 parts301Unlicense
  • 2 layers43.3 × 21 mmNanoS3 Carrier, the printed circuit board in 3D

    NanoS3 Carrier

    UnexpectedMaker/esp32s3

    Assorted files for my ESP32-S3 development boards

    25 parts296

Questions

How big is the MainPad PCB?

It measures 47.5 × 109.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the MainPad use?

25 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 MainPad KiCad files?

From the Raphael-Leb/Arduino-Macro-Pad repository on GitHub, at the commit this page was made from: the board is MainPad/PCBfiles/MainPad.kicad_pcb and its schematic MainPad/PCBfiles/MainPad.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the MainPad design in my own project?

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