An open API service indexing awesome lists of open source software.

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

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:

![numpad schematic](./examples/numpad-schematic.png)

And the matching board layout:

![numpad board](./examples/numpad-board.png)

Here is a 69-key keyboard schematic:

![69 schematic](./examples/69-schematic.png)

And the matching board layout:

![69 board](./examples/69-board.png)