Skip to the content
2 layers263.1 × 80.5 mm4x12, the printed circuit board in 3D

The very first device to use the SquidHID firmware

Size
263.1 × 80.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
259
Nets
119
Pads
1,199
Tracks, vias
3,809, 264
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
27 Nov 2025
Updated
19 Dec 2025

Overview

4x12 is an open-source printed circuit board by gargum, from the gargum/4x12-Tentacle repository on GitHub. It is a 2-layer board of 263.1 × 80.5 mm with 259 parts on 119 nets, routed with 3,809 tracks and 264 vias.

README

README.md

Tentacle

Tentacle

The Tentacle is the first device to use the SquidHID firmware! It is a 4x12 keyboard utilising a Japanese duplex matrix.

This keyboard has been created in order to help with the process of porting SquidHID to as many ecosystems as possible!

Features

  • Simultaneous Choc and MX switch support
  • Per-key LEDs
  • 128x64 OLED screen
  • Rechargeable battery system based around the TP4056
  • Designed for testing SquidHID functionality on all versions of the ESP32 Super Mini, and all versions of the Xiao Seeed

Firmware

This keyboard uses SquidHID, which is an Arduino IDE library at the time of writing.

To flash this on your keyboard, first make sure your installation of Arduino IDE has the NimBLE-Arduino library installed.

Afterwards, simply download the SquidHID repository as a .ZIP file, and extract it into the Arduino/libraries/ directory where NimBLE-Arduino is also stored.

Next, for the ESP32 C3 Super Mini, modify the included config.h file as follows:

C++
/**
* @file config.h
* @brief User function toggles for conditional compilation and feature-setting
*/

#define TRANSPORT        BLE

#define KEYBOARD_ENABLE   true
#define MEDIA_ENABLE      true
#define STENO_ENABLE      true
#define MOUSE_ENABLE      true
#define DIGITIZER_ENABLE  true
#define GAMEPAD_ENABLE    true
#define SPACEMOUSE_ENABLE false  // Please note that if the Spacemouse is turned on, the Mouse, Digitizer and Gamepad must be turned off. 

#define LED_ENABLE        true  
#define LED_PIN           20    // The Tentacle's string of SK6812 MINI E LEDs are using Pin 20 on the ESP32 C3 Super Mini as the Data pin.
#define LED_COUNT         48    // The Tentacle uses a string of 48 NeoPixel LEDs in total.

#define OLED_ENABLE       true  // The OLED connected the Tentacle is 64 pixels tall and 128 pixels wide.
#define OLED_HEIGHT       64
#define OLED_WIDTH        128

#define I2C_ENABLE        true  // The OLED used by the Tentacle relies on I2C, so I2C must be enabled for it to function.
#define SDA_PIN           8
#define SCL_PIN           9

At this point, you should be able to use the following sketch to flash your ESP32-C3 Super Mini keyboard:

C++
/**
* @file Tentacle.ino
* @brief Main sketch for the Tentacle 4x12 keyboard
*/

#include <SQUIDHID.h>

SQUIDHID esp("SquidHID", "SquidHID", 100);

MATRIX(matrix) = { 
     {1, 3}, {1, 7}, {2, 4}, {3, 1}, {3, 7}, {4, 3}, {5, 1}, {5, 7}, {6, 4}, {7, 1}, {7, 5}, {10,4}, 
     {1, 4}, {1,10}, {2, 5}, {3, 2}, {3,10}, {4, 6}, {5, 2}, {5,10}, {6, 5}, {7, 2}, {7, 6}, {10,5}, 
     {1, 5}, {2, 1}, {2, 6}, {3, 5}, {4, 1}, {4, 7}, {5, 3}, {6, 1}, {6, 7}, {7, 3}, {10,2}, {10,6}, 
     {1, 6}, {2, 3}, {2,10}, {3, 6}, {4, 2}, {4,10}, {5, 4}, {6, 2}, {6,10}, {7, 4}, {10,3}, {10,7} 
};

LAYER(base_layer) = {    
      KC_ESC,  KC_Q,    KC_W,    KC_E,    KC_R,   KC_T,    KC_Y,   KC_U,    KC_I,    KC_O,   KC_P,    KC_BSLS, 
      KC_TAB,  KC_A,    KC_S,    KC_D,    KC_F,   KC_G,    KC_H,   KC_J,    KC_K,    KC_L,   KC_SCLN, KC_QUOT, 
      KC_LCTL, KC_Z,    KC_X,    KC_C,    KC_V,   KC_B,    KC_N,   KC_M,    KC_COMM, KC_DOT, KC_SLSH, KC_RCTL, 
      MO(1),   KC_LGUI, KC_MINS, KC_PGDN, KC_SPC, KC_BSPC, KC_ENT, KC_LSFT, KC_PGUP, KC_EQL, KC_RGUI, MO(2)
};

LAYER(function_layer) = {

Variants of the firmware for the other compatible microcontrollers will be added as they are built and tested! Check the Sketches directory to see which versions have been fully tested and implemented!

Power Circuit

The Tentacle uses a TP4056 alongside 3x2N7002 transistors, a 10k resistor, and an SPDT to toggle between charging and discharging.

The common pin on the SPDT switch is connected to the 5V/VIN pin on the microcontroller. The two other pins are connected to I+ and O+ respectively on the TP4056 module.

When I+ and 5V are connected via the switch, I+ triggers two transistors. The first on connects I- the GND on the microcontroller, while the second transistor connects a pull-up to GND, which in turn prevents O- from being connected to GND.

When O+ and 5V are connected via the switch, the pull-up is able to do its job, which is to trigger the third transistor, allowing O- to connect to GND.

With this arrangement, one switch toggles between two more complex states - O+ to 5V + O- to GND, and I+ to 5V + I- to GND. This ensures both convenience, and safety.

Below is a crude diagram of the wiring for this setup:

TP4056 Power Circuit

Parts

259
QtyValueFootprintReferences
48ComboDiodeD14, D14, D14, D14, D14, D14, D14, D14, D14, D14, D14, D14, D14, D14, D14, D14 +32
28, , , , , , , , , , , , , , , +12
7MountingHole_2.2mm_M2_DIN965MountingHole:MountingHole_2.2mm_M2_DIN965CiHole1, CiHole1, CiHole1, CiHole1, CiHole1, CiHole1, CiHole1

The 83 most common of 259 parts.

Similar boards

  • 2 layers148 × 84.5 mmPanel daisy, the printed circuit board in 3D

    Panel daisy

    ohmtech-rdi/eurorack-blocks

    Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust

    259 parts410
  • 2 layers97 × 97 mmPCBA ZONA LED, the printed circuit board in 3D

    PCBA ZONA LED

    intechstudio/grid-hardware

    259 parts59GPL-3.0
  • 2 layers100 × 70 mmRTD2662Board, the printed circuit board in 3D

    RTD2662Board

    KerJoe/RTD2662Board

    Prototype board for RTD2662 display controller

    259 parts24
  • 2 layers285 × 94.6 mmKeyboard, the printed circuit board in 3D

    Keyboard

    andrewcchen/blu60

    259 parts20
  • 2 layers100 × 100 mmTrv, the printed circuit board in 3D

    Trv

    Polski-Zwiazek-Krotkofalowcow/qo-100-transverter

    Auxiliary unit for the QO-100 transverter, providing:

    259 parts11
  • 2 layers478 × 183 mmHC2000, the printed circuit board in 3D

    HC2000

    badrianiulian/HC2000

    HC2000 Project

    259 parts9
  • 2 layers100 × 100 mmHdmilight v3, the printed circuit board in 3D

    Hdmilight v3

    esar/hdmilight-v3

    HDMI Light v3 - FPGA based Ambilight clone with direct HDMI input

    259 parts8GPL-2.0
  • 2 layers467.5 × 140 mmMiddle, the printed circuit board in 3D

    Middle

    Ciaanh/keyboards

    259 parts4

Questions

How big is the 4x12 PCB?

It measures 263.1 × 80.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the 4x12 use?

259 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 4x12 KiCad files?

From the gargum/4x12-Tentacle repository on GitHub, at the commit this page was made from: the board is KiCAD/4x12.kicad_pcb and its schematic KiCAD/4x12.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 4x12 design in my own project?

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