aboutsummaryrefslogtreecommitdiff
path: root/keyboard/hhkb/README
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/hhkb/README')
-rw-r--r--keyboard/hhkb/README151
1 files changed, 151 insertions, 0 deletions
diff --git a/keyboard/hhkb/README b/keyboard/hhkb/README
new file mode 100644
index 000000000..65f7dcab5
--- /dev/null
+++ b/keyboard/hhkb/README
@@ -0,0 +1,151 @@
1Alternative Controller for HHKB
2===============================
3
4Feature
5-------
6- Mouse Keys
7- NKRO on USB(PJRC Tennsy only)
8- Keymap Layers
9
10
11Customize Keymap
12----------------
13see keymap.c.
14
15
16
17Build
18=====
19PJRC Teensy
20-----------
210. Edit matrix.c.
22 adjust scan code to your pin configuration.(see doc/HHKB.txt for pinouts)
231. Define macros in config_pjrc.h.(Optional)
24 VENDOR_ID, PRODUCT_ID and string descriptor.
25 IS_COMMAND
262. Edit Makefile for MCU setting and build options.
27 MCU, F_CPU
28 MOUSEKEY_ENABLE, EXTRAKEY_ENABLE, NKRO_ENABLE
293. Build hex file.
30 $ make -f Makefile.pjrc
314. Program MCU.
32 $ make -f Makefile.pjrc program
33
34
35V-USB
36-----
370. Edit matrix.c and usbconfig.h.
38 adjust scan code to your pin configuration.(see doc/HHKB.txt for pinouts)
39 define macros for V-USB in usbconfig.h.
401. Define macros in config_vusb.h.(Optional)
41 IS_COMMAND
422. Edit Makefile.vusb for MCU setting and build options.
43 MCU, F_CPU
44 MOUSEKEY_ENABLE, EXTRAKEY_ENABLE
453. Build hex file.
46 $ make -f Makefile.vusb
474. Program MCU.
48 $ make -f Makefile.vusb program
49
50 Using a bootloader to program for convenience is recommended.
51 Once program this V-USB bootloader at first, you can program MCU without
52 extra programmer. You should have reset switch to start up as bootloader
53 mode in this case.
54 USBaspLoader:
55 http://www.obdev.at/products/vusb/usbasploader.html
56
57
58iWRAP
59-----
600. Edit matrix.c and usbconfig.h.
61 adjust scan code to your pin configuration.(see doc/HHKB.txt for pinouts)
62 define macros for V-USB in usbconfig.h.
631. Define macros in config_iwrap.h.(Optional)
64 IS_COMMAND
652. Edit Makefile.iwrap for MCU setting and build options.
66 MCU, F_CPU
67 MOUSEKEY_ENABLE, EXTRAKEY_ENABLE
683. Build hex file.
69 $ make -f Makefile.iwrap
704. Program MCU.
71 $ make -f Makefile.iwrap program
72
73
74
75Hardware
76========
77PJRC Teensy
78-----------
79 +---------------+
80 | Teensy++ |
81 | |
82 | | HHKB
83 | | ~~~~
84 | PB0-2|------->ROW(6-8)
85 | PB3-5|------->COL(9-11)
86 | PB6|------->ENABLE(12)
87 | PE6|<-------KEY(4)
88 | PE7|------->PREV(5)
89 | |
90 | |
91 | |
92 +---------------+
93
94
95V-USB
96-----
97 +---+ +---------------+
98USB GND | | ATmega168 |
99~~~ C3 | |
1005V <-------+--------+---|Vcc,AVCC | HHKB
101 R1 | | ~~~~
102D- <----+--+-----R2-----|INT1 PB2-4|------->ROW(6-8)
103D+ <----|---+----R3-----|INT0 PC0-2|------->COL(9-11)
104 Z1 Z2 | PC3|------->ENABLE(12)
105GND<----+---+-----------|GND PB0|<-------KEY(4)
106 | PB1|------->PREV(5)
107 | |
108 GND+-C2--+--|XTAL1 RXD|------->Debug Console
109 X1 | TXD|<-------Debug Console
110 GND+-C3--+--|XTAL2 RST|---SW--+GND
111 +---------------+
112R1: 1.5K Ohm
113R2,R3: 68 Ohm
114Z1,Z2: Zener 3.6V
115C1,C2: 22pF
116C3: 0.1uF
117X1: Crystal 20MHz(16MHz/12MHz)
118SW: Push Switch(Optional for bootloader)
119
120
121iWRAP
122-----
123 +---------------+ WT12
124 5V | ATmega168 | 5V/3.3V~~~~
125 +-----+---|Vcc,AVCC PC4|---/--->iWRAP(RxD)
126USB | C3 | PC5|<--/----iWRAP(TxD)
127~~~ | + | |
1285V <--BATT + GND | | HHKB
129 R1 | | ~~~~
130D- <----+-----+--R2-----|INT1 PB2-4|------->ROW(6-8)
131D+ <----|---+----R3-----|INT0 PC0-2|------->COL(9-11)
132 Z1 Z2 | PC3|------->ENABLE(12)
133GND<----+---+-----------|GND PB0|<-------KEY(4)
134 | PB1|------->PREV(5)
135 | |
136 GND+-C2--+--|XTAL1 RXD|------->Debug Console
137 X1 | TXD|<-------Debug Console
138 GND+-C3--+--|XTAL2 RST|---SW--+GND
139 +---------------+
140
141R1: 1.5K Ohm
142R2,R3: 68 Ohm
143Z1,Z2: Zener 3.6V
144C1,C2: 22pF
145C3: 0.1uF
146X1: Crystal 12MHz
147SW: Push Switch(Optional)
148BATT: Li-Po Battery, Battery Charger and Voltage Regulator(5V and 3.3V).
149
150
151EOF