Skip to the content
2 layers70 × 58 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
70 × 58 mm
Copper layers
2
Thickness
1.6 mm
Parts
33
Nets
47
Pads
151
Tracks, vias
269, 28
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
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 70 × 58 mm with 33 parts on 47 nets, routed with 269 tracks and 28 vias.

It is built around the AVR64DD32-I/PT, SP481ECN and DMG2301L. Its parts include 10 capacitors, 9 connectors, 7 resistors, 3 ICs and 1 transistor. It belongs with the interfaces and adapters boards of this library.

Main components

3

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

33
QtyValueFootprintReferences
6100nFCapacitor_SMD:C_0805_2012MetricC3, C5, C6, C7, C8, C9
310nFCapacitor_SMD:C_0805_2012MetricC2, C4, C10
3RResistor_SMD:R_0805_2012MetricR4, R5, R6
2Conn_02x03_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ5, J6
2MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2
2RJ45_Shieldedkiu-footprints:GDLX-S-88KJ7, J8
2SP481EPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU2, U3
110RResistor_SMD:R_0805_2012MetricR2
110kResistor_SMD:R_0805_2012MetricR1
11MResistor_SMD:R_0805_2012MetricR7
11x02_JumperConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ9
1330RResistor_SMD:R_0805_2012MetricR3
1470uFCapacitor_SMD:CP_Elec_8x10C1
1AVR-UPDI-6eAVR:eAVR6-UPDI-FJ1
1AVR64DD32Package_QFP:TQFP-32_7x7mm_P0.8mmU1
1Conn_01x06Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ2
1Conn_01x10Connector_IDC:IDC-Header_2x05_P2.54mm_VerticalJ3
1DMG2301LPackage_TO_SOT_SMD:SOT-23Q1
1SW_PushButton_Switch_SMD:SW_Push_1P1T_NO_6x6mm_H9.5mmSW1
1Screw_Terminal_01x03TerminalBlock_RND:TerminalBlock_RND_205-00233_1x03_P5.08mm_HorizontalJ4

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 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 × 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

    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 layers70 × 72 mmSPINC AA Charger, the printed circuit board in 3D

    SPINC AA Charger

    CoretechR/SPINC

    DIY Automatic Battery Charger Using RP2040

    101 parts467GPL-3.0
  • 4 layers70 × 54 mmPicoLab, the printed circuit board in 3D

    PicoLab

    CoretechR/PicoLab

    Web-GUI Embedded Multitool

    285 parts327GPL-3.0
  • 2 layers192.4 × 50 mmOmote, the printed circuit board in 3D

    Omote

    OMOTE-Community/OMOTE-Hardware

    Open Source Remote - Hardware

    187 parts157GPL-3.0
  • 4 layers55 × 97 mmMelodio SelfMate V2, the printed circuit board in 3D

    Melodio SelfMate V2

    zeeblaze/Melodio-SelfMate

    Your Ultimate Portable Music Companion For Home Automation.

    121 parts53
  • 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

Questions

How big is the Kha led ikea node PCB?

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

What parts does the Kha led ikea node use?

33 parts, built around the AVR64DD32-I/PT, SP481ECN 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 superseded/kha-nodes/kha-led-ikea-node-reva/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.