Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions hackpads/Pinuspad/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Pinuspad

The macropad of your Dreams (or at least mine)!

The process of making this was surprisingly painless. Even things I thought were going to pose big challenges, such as the pcb wiring, turned out to be quite simple. I wanted a simple but powerful macropad with a big rotary encoder. I haven't decided on the cap for it yet but a large circular one would be ideal. Just imagine how satisfying it'd be to adjust the volume of your _10h baby shark loop_ with this knob.

### Featuring:

- 9 customizable mechanical buttons
- A rotary encoder
- A fancy 0,96" oled display

### Take a look
![](assets/assembly%20front.png)
![](assets/assembly%20back.png)
![](assets/pcb%203d.png)
![](assets/schematic.png)
![](assets/pcb.png)

### Firmware

Pinuspad uses custom QMK firmware. Please note that this won't be the final version. I will iron it out once I have assembled Pinuspad.

### Bill of Materials

- 1x SEEED XIAO RP2040
- 9x Cherry MX style brown switches
- 9x blank black DSA keycaps
- 9x Through-hole 1N4148 Diodes
- 1x EC11 Rotary encoder
- 1x SSD1306 128x64O LED (5V VCC, 3.3V logic, I2C)
- 2x 4.7k resistor
- 4x same screws as orpheuspad and corresponding nuts
- 1x white 3d printed case bottom
- 1x white 3d printed case top

### No-supports version

![](assets/assembly%20back%20no%20supports.png)

You can find both versions in the "cad" directory. "Production" only contains the supportsless file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hackpads/Pinuspad/assets/assembly back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hackpads/Pinuspad/assets/assembly front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hackpads/Pinuspad/assets/pcb 3d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hackpads/Pinuspad/assets/pcb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added hackpads/Pinuspad/assets/schematic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added hackpads/Pinuspad/cad/Pinuspad case.3mf
Binary file not shown.
3 changes: 3 additions & 0 deletions hackpads/Pinuspad/firmware/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"C_Cpp.dimInactiveRegions": false
}
15 changes: 15 additions & 0 deletions hackpads/Pinuspad/firmware/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Encoder
#define ENCODER_A_PINS { GP29, GP0 }
#define ENCODER_RESOLUTION 4

// Matrix
#define MATRIX_ROWS 3
#define MATRIX_COLS 3

#define MATRIX_ROW_PINS { GP1, GP2, GP4 }
#define MATRIX_COL_PINS { GP26, GP27, GP28 }

// Oled
#define I2C_DRIVER I2CD1
#define I2C1_SDA_PIN GP6
#define I2C1_SCL_PIN GP7
41 changes: 41 additions & 0 deletions hackpads/Pinuspad/firmware/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"manufacturer": "WilmervH",
"keyboard_name": "pinuspad",
"maintainer": "WilmervH",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"cols": ["GP26", "GP27", "GP28"],
"rows": ["GP1", "GP2", "GP4"]
},
"processor": "RP2040",
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
},
"layouts": {
"LAYOUT_ortho_3x3": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},
{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2}
]
}
}
}
73 changes: 73 additions & 0 deletions hackpads/Pinuspad/firmware/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

enum layer_names {
_BASE,
_MACRO,
_ARROWS
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ─────────────
* │ 7 │ 8 │ 9 │
* ├───┼───┼───┤
* │ 4 │ 5 │ 6 │
* ├───┼───┼───┤
* │ 1 │ 2 │ 3 │
* └───┴───┴───┘
*/

[_BASE] = LAYOUT_ortho_3x3(
DF(_ARROWS), KC_PRINT_SCREEN, DF(_MACRO),
KC_PAGE_UP, KC_PAGE_DOWN, KC_MEDIA_PLAY_PAUSE,
KC_COPY, KC_COPY, KC_FIND
),

[_MACRO] = LAYOUT_ortho_3x3(
DF(_BASE), KC_F13, DF(_ARROWS),
KC_F14, KC_F15, KC_F16,
KC_F17, KC_F18, KC_F19
),

[_ARROWS] = LAYOUT_ortho_3x3(
DF(_MACRO), KC_UP, DF(_BASE),
KC_LEFT, KC_NO, KC_RIGHT,
KC_NO, KC_DOWN, KC_NO
)
};

const uint16_t PROGMEM encoder_map[][2][2] = {
[_BASE] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD), ENCODER_CCW_CW(KC_RIGHT, KC_LEFT) },
[_MACRO] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD), ENCODER_CCW_CW(KC_RIGHT, KC_LEFT) },
[_ARROWS] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD), ENCODER_CCW_CW(KC_RIGHT, KC_LEFT) },
};

#ifdef OLED_ENABLE
bool oled_task_user() {

oled_write_P(PSTR("Layer: "), false);

switch (get_highest_layer(layer_state)) {
case _BASE:
oled_write_ln_P(PSTR("Base"), false);
break;
case _MACRO:
oled_write_ln_P(PSTR("Macro"), false);
break;
case _ARROWS:
oled_write_ln_P(PSTR("Arrows"), false);
break;
default:
oled_write_ln_P(PSTR("Undefined"), false);
}

led_t led_state = host_keyboard_led_state();
oled_write_ln_P(led_state.num_lock ? PSTR("NUM: ON") : PSTR("NUM: OFF"), false);
oled_write_ln_P(led_state.caps_lock ? PSTR("CAPS: ON") : PSTR("CAPS: OFF"), false);

return false;
}
#endif
23 changes: 23 additions & 0 deletions hackpads/Pinuspad/firmware/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# pinuspad

Project repo: [Pinuspad](https://github.com/WilmervH/Pinuspad)

* Keyboard Maintainer: [WilmervH](https://github.com/WilmervH)

Make example for this keyboard (after setting up your build environment):

make pinuspad:default

Flashing example for this keyboard:

make pinuspad:default:flash

See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

## Bootloader

Enter the bootloader in 3 ways:

* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
9 changes: 9 additions & 0 deletions hackpads/Pinuspad/firmware/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
OLED_ENABLE = yes
OLED_TRANSPORT = i2c
OLED_DRIVER = ssd1306

ENCODER_ENABLE = yes
ENCODER_MAP_ENABLE = yes

# required for rp2040
LTO_ENABLE = yes
Loading