https://github.com/ayan4m1/kle-pcb-generator
Generate EAGLE schematic/board from KLE JSON
https://github.com/ayan4m1/kle-pcb-generator
Last synced: over 1 year ago
JSON representation
Generate EAGLE schematic/board from KLE JSON
- Host: GitHub
- URL: https://github.com/ayan4m1/kle-pcb-generator
- Owner: ayan4m1
- License: mit
- Created: 2022-01-09T18:37:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-10T12:42:04.000Z (over 4 years ago)
- Last Synced: 2025-03-30T15:44:48.540Z (over 1 year ago)
- Language: JavaScript
- Size: 147 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kle-pcb-generator
This is a Node script which can transform JSON files from Keyboard-Layout-Editor into Autodesk EAGLE scripts which will generate a schematic and board for a given keyboard layout.
## features
- SMD or THT diodes
- Alps, Alps-MX, Choc, Choc X, or Hotswap switches
- Variable width/height keys
- Stabilizers for >= 2U keys
- Traditional or duplex matrix wiring
## not supported
- Rotated keys
- Stepped keys (ISO enter)
- MCU placement/wiring
## prerequisites
- [Node.JS 16](https://nodejs.org/download/release/latest-gallium/)
- [Clueboard Eagle libraries](https://github.com/clueboard/eagle_libs)
- Autodesk EAGLE
## usage
First, clone this repo. Then, open a terminal in the clone directory. Execute
```sh
npm i
```
Then, to run the script, use
```sh
node src/index.js example.json
```
Where example.json is a KLE JSON file in the same directory.
To get a list of the diodes and switches you can use, run `node src/index.js parts`.
## examples
Here is a numpad schematic:

And the matching board layout:

Here is a 69-key keyboard schematic:

And the matching board layout:
