aboutsummaryrefslogtreecommitdiff
path: root/keyboards/nyquist/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/nyquist/readme.md')
-rw-r--r--keyboards/nyquist/readme.md167
1 files changed, 167 insertions, 0 deletions
diff --git a/keyboards/nyquist/readme.md b/keyboards/nyquist/readme.md
new file mode 100644
index 000000000..b2bf01389
--- /dev/null
+++ b/keyboards/nyquist/readme.md
@@ -0,0 +1,167 @@
1The Nyquist Keyboard
2====================
3
4The Nyquist is a 60% split ortholinear board by [Keebio](https://keeb.io). It has been designed in a similar manner to the Let's Split v2 by /u/wootpatoot. Each half of the keyboard is arranged in a 5x6 grid. There is an option to use a 2u key with PCB mounted MX stablizers, in place of the two innermost 1u keys on the bottom row.
5
6
7## Build Guide
8
9Since the design is very similar to the Let's Split v2, the build guide for that can be used while the build guide for the Nyquist is being fully developed. A build guide for putting together the Let's Split v2 can be found here: [An Overly Verbose Guide to Building a Let's Split Keyboard](https://github.com/nicinabox/lets-split-guide)
10
11There is additional information there about flashing and adding RGB underglow.
12
13## First Time Setup
14
15Download or clone the whole firmware and navigate to the keyboards/nyquist directory. Once your development environment is setup, you'll be able to generate the default .hex using:
16
17```
18$ make serial
19```
20
21You will see a lot of output and if everything worked correctly you will see the built hex file:
22
23```
24nyquist_rev1_serial.hex
25```
26
27If you would like to use one of the alternative keymaps, or create your own, copy one of the existing [keymaps](keymaps/) and run make like so:
28
29
30```
31$ make YOUR_KEYMAP_NAME
32```
33
34If everything worked correctly you will see a file:
35
36```
37nyquist_rev1_YOUR_KEYMAP_NAME.hex
38```
39
40For more information on customizing keymaps, take a look at the primary documentation for [Customizing Your Keymap](/readme.md##customizing-your-keymap) in the main readme.md.
41
42Features
43--------
44
45For the full Quantum Mechanical Keyboard feature list, see [the parent readme.md](/readme.md).
46
47Some features supported by the firmware:
48
49* Either half can connect to the computer via USB, or both halves can be used
50 independently.
51* You only need 3 wires to connect the two halves. Two for VCC and GND and one
52 for serial communication.
53* Optional support for I2C connection between the two halves if for some
54 reason you require a faster connection between the two halves. Note this
55 requires an extra wire between halves and pull-up resistors on the data lines.
56
57### 2u Support
58In place of the two innermost 1u keys on the bottom row, a single 2u key can be used. If you choose to use this option, then in your keymap, set the innermost key on the bottom row to what you want the 2u key to be. For example, if using the 2u key on the left half of the board, set the keycode for the lower right key.
59
60Required Hardware
61-----------------
62
63Apart from diodes and key switches for the keyboard matrix in each half, you
64will need:
65
66* 2 Arduino Pro Micro's. You can find theses on aliexpress for ≈3.50USD each.
67* 2 TRRS sockets and 1 TRRS cable, or 2 TRS sockets and 1 TRS cable
68
69Alternatively, you can use any sort of cable and socket that has at least 3
70wires. If you want to use I2C to communicate between halves, you will need a
71cable with at least 4 wires and 2x 4.7kΩ pull-up resistors
72
73Optional Hardware
74-----------------
75
76A speaker can be hooked-up to either side to the `5` (`C6`) pin and `GND`, and turned on via `AUDIO_ENABLE`.
77
78Wiring
79------
80
81The 3 wires of the TRS/TRRS cable need to connect GND, VCC, and digital pin 3 (i.e.
82PD0 on the ATmega32u4) between the two Pro Micros.
83
84Then wire your key matrix to any of the remaining 17 IO pins of the pro micro
85and modify the `matrix.c` accordingly.
86
87The wiring for serial:
88
89![serial wiring](imgs/split-keyboard-serial-schematic.png)
90
91The wiring for i2c:
92
93![i2c wiring](imgs/split-keyboard-i2c-schematic.png)
94
95The pull-up resistors may be placed on either half. It is also possible
96to use 4 resistors and have the pull-ups in both halves, but this is
97unnecessary in simple use cases.
98
99Flashing
100-------
101From the keymap directory run `make SUBPROJECT-KEYMAP-avrdude` for automatic serial port resolution and flashing.
102Example: `make rev1-serial-avrdude`
103
104
105Choosing which board to plug the USB cable into (choosing Master)
106--------
107Because the two boards are identical, the firmware has logic to differentiate the left and right board.
108
109It uses two strategies to figure things out: look at the EEPROM (memory on the chip) or looks if the current board has the usb cable.
110
111The EEPROM approach requires additional setup (flashing the eeeprom) but allows you to swap the usb cable to either side.
112
113The USB cable approach is easier to setup and if you just want the usb cable on the left board, you do not need to do anything extra.
114
115### Setting the left hand as master
116If you always plug the usb cable into the left board, nothing extra is needed as this is the default. Comment out `EE_HANDS` and comment out `I2C_MASTER_RIGHT` or `MASTER_RIGHT` if for some reason it was set.
117
118### Setting the right hand as master
119If you always plug the usb cable into the right board, add an extra flag to your `config.h`
120```
121 #define MASTER_RIGHT
122```
123
124### Setting EE_hands to use either hands as master
125If you define `EE_HANDS` in your `config.h`, you will need to set the
126EEPROM for the left and right halves.
127
128The EEPROM is used to store whether the
129half is left handed or right handed. This makes it so that the same firmware
130file will run on both hands instead of having to flash left and right handed
131versions of the firmware to each half. To flash the EEPROM file for the left
132half run:
133```
134avrdude -p atmega32u4 -P $(COM_PORT) -c avr109 -U eeprom:w:eeprom-lefthand.eep
135// or the equivalent in dfu-programmer
136
137```
138and similarly for right half
139```
140avrdude -p atmega32u4 -P $(COM_PORT) -c avr109 -U eeprom:w:eeprom-righhand.eep
141// or the equivalent in dfu-programmer
142```
143
144NOTE: replace `$(COM_PORT)` with the port of your device (e.g. `/dev/ttyACM0`)
145
146After you have flashed the EEPROM, you then need to set `EE_HANDS` in your config.h, rebuild the hex files and reflash.
147
148Note that you need to program both halves, but you have the option of using
149different keymaps for each half. You could program the left half with a QWERTY
150layout and the right half with a Colemak layout using bootmagic's default layout option.
151Then if you connect the left half to a computer by USB the keyboard will use QWERTY and Colemak when the
152right half is connected.
153
154
155Notes on Using Pro Micro 3.3V
156-----------------------------
157
158Do update the `F_CPU` parameter in `rules.mk` to `8000000` which reflects
159the frequency on the 3.3V board.
160
161Also, if the slave board is producing weird characters in certain columns,
162update the following line in `matrix.c` to the following:
163
164```
165// _delay_us(30); // without this wait read unstable value.
166_delay_us(300); // without this wait read unstable value.
167```