Skip to the content
2 layers50 × 50 mmKha led ikea node, the printed circuit board in 3D

Kha led ikea node

kiu/kha5

Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

Size
50 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
42
Pads
135
Tracks, vias
213, 25
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
16 Apr 2023
Updated
1 Nov 2026

Overview

Kha led ikea node is an open-source printed circuit board by kiu, from the kiu/kha repository on GitHub. It is a 2-layer board of 50 × 50 mm with 30 parts on 42 nets, routed with 213 tracks and 25 vias.

It is built around the AVR64DD32-I/PT, SP481ECN and AP63205WU, with the DMG2301L and MMBT3904 among its other parts. Its parts include 10 capacitors, 5 resistors, 5 connectors, 4 ICs and 2 transistors. It belongs with the interfaces and adapters boards of this library.

Main components

5

README

README.md

kha

Overengineered Modular RS-485 Multi-Master 19" Subrack Home Control

Repository

Hint: "bgt" is German for Baugruppenträger translating to subrack assembly

Protocol

RS-485 at 500 kbaud (8N1), half duplex, every node may send. Commands, addresses and registers are listed in kha-protocol.ods.

Frame

text
0x42 0x99 <len> <from> <to> <cmd> <payload ...> <crc>
  • 0x42 0x99 starts a frame. Inside a frame every 0x42 is followed by an extra 0x66, so 0x42 0x99 is always a start. The escape bytes are not counted and not part of the CRC.
  • len counts len, from, to, cmd, payload and crc: 5 + payload, payload up to 67 bytes.
  • CRC-8 (polynomial 0x31, init 0xFF, no final XOR) over all bytes from len to the last byte before the CRC.

Bus access

  • The stack counts 100 µs ticks on TCB2, which is reserved for the stack. Every falling edge on RX resets the count.
  • A node sends once the bus has been quiet for 10 + its own address ticks (1 ms + address × 100 µs). Addresses are unique, so no two nodes wait for the same slot.
  • After sending, a node waits once for the longest slot (10 + 0xF0 ticks), so the others get their turn first.
  • The bootloader commands F9–FC skip the slot wait to keep flashing fast: send TX off (F0) to the other nodes before flashing.

Firmware

  • Flash: bootloader at 0x0000–0x3FFF, app at 0x4000–0xFFFF. At every boot a node computes a CRC-32 over 0x4000–0xFFFF (without the final XOR) and reports it with the boot and app versions in its UP (E2) and ident (E1).
  • Bootloader: after a reset it waits 4 s for bootloader commands (FD keeps it there), then starts the app. Brown-out detection at 2.85 V. No lock bits, so UPDI can read and write a node.
  • Flashing over the bus: kha_fw.py; via UPDI: kha_updi.py.

Bus health page

kha-web shows the state of every node on a static web page: missing nodes, error counters, days since the last reboot, and whether nodes of the same board type run the same firmware. A collector follows the gateway's log passively, keeps the state in SQLite and exports a JSON file for the page. Screenshot with mock data:

Videos

Two hour deep dive lecture style video on youtube: https://youtu.be/BUSnTUGKZzc

kha on youtube

Photos

Misc

  • All PCBs use eAVR as connector for AVR flashing
  • It all started simple with lightdesk

Todo

  • Node: LED marquee node
  • Node: IrDA bridge (bridging the bus through a window)
  • Stack: Combine queued TX commands into single burst?
  • Stack: Merge similiar queued TX commands into single command?
  • Stack: Process TX commands as incoming RX commands?

Regrets

  • Terrible collision detection / avoidance
  • Buck converter capacitor generates audible noise

License

This project is licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) license.

Parts

30
QtyValueFootprintReferences
5100nFCapacitor_SMD:C_0805_2012MetricC2, C3, C5, C6, C7
210kResistor_SMD:R_0805_2012MetricR1, R2
210nFCapacitor_SMD:C_0805_2012MetricC1, C4
2680R DNPResistor_SMD:R_0805_2012MetricR3, R5
2MountingHoleMountingHole:MountingHole_3.2mm_M3_DIN965H1, H2
2RJ45_Shieldedkiu:GDLX-S-88KJ4, J5
2SP481EPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU2, U3
110uFCapacitor_SMD:C_0805_2012MetricC8
1120RResistor_SMD:R_0805_2012MetricR4
1220uFCapacitor_Tantalum_SMD:CP_EIA-6032-28_Kemet-CC10
14.7uHInductor_SMD:L_1210_3225MetricL1
147uFCapacitor_SMD:C_1210_3225MetricC9
1AP63205WUPackage_TO_SOT_SMD:TSOT-23-6U4
1AVR-UPDI-6kiu-eAVR:eAVR6-UPDI-FJ3
1AVR64DD32Package_QFP:TQFP-32_7x7mm_P0.8mmU1
1Conn_01x10Connector_IDC:IDC-Header_2x05_P2.54mm_VerticalJ2
1DMG2301LPackage_TO_SOT_SMD:SOT-23Q1
1MMBT3904Package_TO_SOT_SMD:SOT-23Q2
1PolyfuseFuse:Fuse_0805_2012MetricF1
1Screw_Terminal_01x02TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ1

More from kiu/kha

12
  • 2 layers240 × 100 mmKha bgt extend, the printed circuit board in 3D

    Kha bgt extend

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    69 parts5
  • 2 layers425.5 × 128.3 mmKha bgt backplane, the printed circuit board in 3D

    Kha bgt backplane

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    67 parts5
  • 2 layers426.7 × 128.3 mmKha bgt backplane, the printed circuit board in 3D

    Kha bgt backplane

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    67 parts5
  • 2 layers70 × 58 mmKha led ikea node, the printed circuit board in 3D

    Kha led ikea node

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    33 parts5
  • 2 layers320 × 11 mmKha led ikea kallax, the printed circuit board in 3D

    Kha led ikea kallax

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    32 parts5
  • 2 layers48 × 50 mmKha led ikea node, the printed circuit board in 3D

    Kha led ikea node

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    31 parts5
  • 2 layers160 × 100 mmKha bgt generic base, the printed circuit board in 3D

    Kha bgt generic base

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    30 parts5
  • 2 layers350 × 33 mmKha led ikea oxberg40, the printed circuit board in 3D

    Kha led ikea oxberg40

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    30 parts5
  • 2 layers50 × 53 mmKha remote, the printed circuit board in 3D

    Kha remote

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    29 parts5
  • 2 layers48 × 50 mmKha led ikea node, the printed circuit board in 3D

    Kha led ikea node

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    28 parts5
  • 2 layers200 × 10.2 mmKha led ikea rx4, the printed circuit board in 3D

    Kha led ikea rx4

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    28 parts5
  • 2 layers160 × 100 mmKha bgt audio base, the printed circuit board in 3D

    Kha bgt audio base

    kiu/kha

    Overengineered Modular RS-485 Multi-Master 19" Subrack Home Automation / Control

    25 parts5

Similar boards

  • 2 layers86.4 × 61 mmTalking counter, the printed circuit board in 3D

    Talking counter

    swharden/USB-Counter

    Open-source USB frequency counter

    60 parts25MIT
  • 2 layers18 × 43 mmNano DD32, the printed circuit board in 3D

    Nano DD32

    akouz/HBnode

    Microcontroller boards for HBus

    22 partsMIT
  • 2 layers40.6 × 63.5 mmPressureSensor, the printed circuit board in 3D

    PressureSensor

    swharden/PressureSensor

    Minimal complexity standalone digital pressure sensor

    25 partsMIT
  • 4 layers50 × 100 mmCRVFCU, the printed circuit board in 3D

    CRVFCU

    Kev1n8088/CRVFCU

    161 parts
  • 2 layers75.8 × 19.2 mm3S coinCellChargeController, the printed circuit board in 3D

    3S coinCellChargeController

    PocketConcepts/Pocket_PSU

    A variable current & voltage PSU with 3S lipo charging, balancing, and protection circuit using PPS.

    78 parts36
  • 2 layers70.5 × 49 mmStillness detector, the printed circuit board in 3D

    Stillness detector

    faludi/stillness-detector

    The Stillness Detector senses presence and motion to determine if there is a person standing in front of it and whether that person is currently standing still.

    24 parts3MIT
  • 2 layers44.3 × 46.3 mmCatear pcb, the printed circuit board in 3D

    Catear pcb

    TobleMiner/catear-pcb

    This repo contains the PCB for the Nekomimi project of @BenBE . It will be used to illuminate 3D printed catears.

    121 parts1
  • 2 layers90 × 50 mmNFC ESP32 V2, the printed circuit board in 3D

    NFC ESP32 V2

    alantrundle/bluetooth_app

    62 partsMIT

Questions

How big is the Kha led ikea node PCB?

It measures 50 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Kha led ikea node use?

30 parts, built around the AVR64DD32-I/PT, SP481ECN, AP63205WU and DMG2301L. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Kha led ikea node KiCad files?

From the kiu/kha repository on GitHub, at the commit this page was made from: the board is kha-nodes/kha-led-ikea/kha-led-ikea-node/kicad/kha-led-ikea-node.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Kha led ikea node design in my own project?

Its repository states no licence, so its author keeps all rights: ask kiu before reusing the design.