Skip to content

Pull‐Up Resistor

hasu@tmk edited this page Aug 28, 2023 · 6 revisions

https://github.com/tmk/tmk_keyboard/wiki/FAQ#pull-up-resistor

Keyboard converter needs pull up resistor on signal lines in most cases. Without the pull-up resistors it may not work correctly.

Place the resistor between VCC and signal line like diagram below. In general 1K-4.7K Ohm is recommended for keyboard converters. Consult with instructions of target converter.

Power rating

You can use 1/10W or higher power rating of resistor. See this for resistor power rating.

IBMPC converter

Keyboard                                       MCU(AVR)
   -----.                                      ,-----.
      5V|------------------------------+--+----|VCC  |
        |                              |  |    |     |
        |                              R  R    |     |
        |                              |  |    |     |
    DATA|------------------------------|--+----|PD0  |
   CLOCK|------------------------------+-------|PD1  |
        |                                      |     |
     GND|--------------------------------------|GND  |
   -----'                                      `-----'
R: 1K Ohm resistor

https://geekhack.org/index.php?topic=103648.msg2840078#msg2840078

ADB Converter

You must have an external pull-up resistor between VCC(5V) and DATA(PD0) line. 1k ohm is strongly recommended.(470 ohm is more legitimate? see this.)

4.7k-10k won't work in some cases like longer curled cable or daisy-chained multiple devices. See Troubles below.

Keyboard                                       MCU(AVR)
   -----.                                      ,-----.
      5V|---------------------------------+----|VCC  |
        |                                 |    |     |
        |                                 R    |     |
        |                                 |    |     |
    DATA|---------------------------------+----|PD0  |
        |                                      |     |
     GND|--------------------------------------|GND  |
   -----'                                      `-----'
R: 1K Ohm resistor

https://geekhack.org/index.php?topic=14290.0

https://github.com/tmk/tmk_keyboard/wiki/Apple-Desktop-Bus#pull-up-resistor

Troubles

People have had many troubles without pull-up.

IBMPC

ADB