Skip to the content
2 layers22.9 × 30.7 mmOnewire led, the printed circuit board in 3D

An RGB LED driver on a modified one-wire bus

Size
22.9 × 30.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
11
Pads
30
Tracks, vias
50, 0
Pours
1
Routed
Yes
KiCad
KiCad 3
Created
5 Apr 2015
Updated
11 Apr 2015

Overview

Onewire led is an open-source printed circuit board by kcuzner, from the kcuzner/onewire-leds repository on GitHub, published under the MIT licence. It is a 2-layer board of 22.9 × 30.7 mm with 11 parts on 11 nets, routed with 50 tracks and 0 vias.

It is built around the ATTINY13A-PU. Its parts include 6 resistors, 2 diodes, 1 capacitor, 1 IC and 1 connector. It belongs with the lEDs and displays boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

One-wire LED

Purpose

This project is part of a larger team design project. This particular portion is an RGB LED controlled by its own power wire using a variant of the 1-wire protocol.

Protocol

The standard 1-wire protocol uses only two lines: power and ground. Data is transmitted to and from slave devices by a master device by toggling the power line low for short periods of time. The slave devices maintain their power during these short losses using a diode-capacitor rectifier circuit. However, this protocol is not suitable for devices requiring more than a few hundred microamps due to the fact that a large pullup resistor is used on the power line and drawing too much current causes an unacceptable voltage drop.

This device uses a modified version of the protocol that sacrifices the bi-directionality of the protocol for the ability to supply comparatively large amounts of current to attached devices. This is accomplished by using a P-channel MOSFET to switch the power off on the master side in short intervals. No pull-up resistor is used and there is no corresponding open collector transistor on the slave devices (thus removing the bi-directional capability). So long as the capacitor on the slave side of the bus is large enough to sustain their individual current draw, the bus can provide both data and power to devices requiring several several 10s of milliamps of current to operate property (such as an RGB led controller).

This protcol has been modified from the actual 1-wire specification to be simpler to use with a 100KHz tick rate on the master in addition to necessary modifications due to the loss of bidirectionality.

The protocol is as follows:

  • A reset is performed by holding the line low for 480uS. This device will listen for a continuously low input for the full 480uS without any additional edges. The master should allow the line to float for another 480uS. Normally, the presence pulse would be read during this time. However, there is no presence pulse in this system.
  • Following a reset, A falling edge must occur within 70uS. This marks the start of the LSB of the transmitted byte.
  • To write a 0, the master brings the line low for 60uS. The slave will sample between 20-30uS following the falling edge. Following this, the master will allow the line to float for 10uS before beginning the next bit.
  • To write a 1, the master brings the line low for 10uS and releases it. The slave will sample between 20-30uS following the falling edge. The master will allow the line to float for 60uS after the initial low pulse.
  • A transaction consists of the reset pulse following by 8 write pulses.

Parts

11
QtyValueFootprintReferences
3RR4R2, R3, R4
110KR4R1
11N4148D3D1
12K2R4R6
1470uCP3VC1
18K2R4R5
1ATTINY13A-PDIP-8__300IC1
1CLVBA-FKA4-PLCCLED1
1CONN_2SIL-2-WIDEP1

Similar boards

  • 2 layers99.7 × 63.9 mmNES CN ROM-256-05, the printed circuit board in 3D

    NES CN ROM-256-05

    emeargt/nes-cnrom

    KiCad project for NES-CN-ROM-256-05 cartridge schematic and PCB

    17 parts31CC-BY-SA-4.0
  • 2 layers100 × 61.4 mmCart, the printed circuit board in 3D

    Cart

    digilogistist/The-Open-Source-USB-NES-Project

    USB-NES and NES-FASTGFX product engineering repository

    38 parts24CC0-1.0
  • 2 layers100 × 100 mmMotherboard, the printed circuit board in 3D

    Motherboard

    Terminus-IMRC/RPiCluster2

    Yet another Raspberry Pi cluster, version 2

    334 parts9
  • 4 layers243.8 × 243.8 mmSbc 8088, the printed circuit board in 3D

    Sbc 8088

    miselin/M88

    The M88 Computer

    218 parts2CERN-OHL-P-2.0
  • 6 layers100.1 × 112 mmPicones, the printed circuit board in 3D

    Picones

    WiiMake/picones

    In the last 40 years, technology has advanced to the point were what used to be done in hardware can now be done in software. This project uses an rp2350 to emulate a ROM chip on an NES Cartridge.

    59 parts1
  • 2 layers27.9 × 15.2 mmFF2 20241213 1510, the printed circuit board in 3D

    FF2 20241213 1510

    25mmHg/AlteFabrik191126

    Flimmerfeen2.0

    12 partsBSD-3-Clause
  • 2 layers140 × 60 mmA277d led tachometer, the printed circuit board in 3D

    A277d led tachometer

    bazsimarkus/a277d-led-tachometer

    An analog LED tachometer controlled by an East German A277D chip (clone of UAA180), featuring an integrated ATtiny13A-based digital ignition pulse generator for testing.

    61 parts
  • 2 layersHeart, the printed circuit board in 3D

    Heart

    CesarOtoniel/charlieplexedHeart

    Charlieplexed LED sequencer with the shape of a heart. Intended to be mounted on wired LED sign and not on the PCB.

    20 partsApache-2.0

Questions

How big is the Onewire led PCB?

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

What parts does the Onewire led use?

11 parts, built around the ATTINY13A-PU. 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 Onewire led KiCad files?

From the kcuzner/onewire-leds repository on GitHub, at the commit this page was made from: the board is kicad/onewire-led.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Onewire led design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).