Pocket Keyboard
First attempt at building a keyboard from scratch
Top Layer
Bottom Layer
PCB Layout
Components
Component | Label | Quantity |
---|---|---|
Atmega32u4 | 1 | |
16MHZ Crystal | Y1 | 1 |
Micro USB Connector | 1 | |
22OΞ© | R1, R2 | 2 |
10KΞ© | R3 | 1 |
330Ξ© | R4 | 1 |
22pF | C1, C2 | 2 |
1uF | C3 | 1 |
LED | D0 | 1 |
1N4148 | D1-D70 | 70 |
TL3303 Tactile Switch | SW | 70 |
5-way Switch | S1 | 1 |
Schematic
Firmware
- Based on TMK's onekey example
cd firmware/keyboard/pocket_kbd
make -f Makefile
- press the reset button
sudo dfu-programmer atmega32u4 erace --force --debug 5
sudo dfu-programmer atmega32u4 flash firmware.hex --debug 5
- power cycle board, it should now appear as an USB keyboard