Skip to the content
2 layers44.9 × 48.2 mm2812LEDChain nutzen, the printed circuit board in 3D

2812LEDChain nutzen

jacksitlab/2812LEDChain

This Project is based on a little piece of Hardware I build for accessing 2812LEDs via I2C-Bus(aka TWI). In my special case I use a Raspberry PI to control them.

Size
44.9 × 48.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
44
Nets
25
Pads
216
Tracks, vias
444, 40
Pours
4
Routed
Yes
KiCad
KiCad 4
Created
8 Oct 2016
Updated
17 Jun 2018

Overview

2812LEDChain nutzen is an open-source printed circuit board by jacksitlab, from the jacksitlab/2812LEDChain repository on GitHub. It is a 2-layer board of 44.9 × 48.2 mm with 44 parts on 25 nets, routed with 444 tracks and 40 vias.

Its parts include 12 capacitors, 12 resistors, 12 connectors and 8 ICs. It belongs with the MSP430 boards of this library.

README

README.md

2812LEDChain

This Project is based on a little piece of Hardware I build for accessing 2812LEDs via I2C-Bus(aka TWI). In my special case I use a Raspberry PI to control them. The Clou: It is possible to wire them from board to board and control them seperately. So you can wire the seperated LEDChains from one to another. The Controller works like a simple 32bit adressable I2C-EEPROM where you can write the RGB-Values.

Why the extra board? There is already a lib for the raspi that can control 2812LEDs.

Yeah, thats right. But this lib is using the PWM-output Pin and many of my Projects are using this as it should be. That's why I want to put it on a place where I can control them with a seperate address.

Folders

  • pcb: all KiCAD files (Schematics and Layout files)
  • firmware: all microcontroller files for CodeComposerStudio(from Texas Instruments)
  • raspberry: all files to remote control the LEDChain from a Raspberry PI with python

Installation / Usage

Firmware installation

  • File > Import > Code Composer Studio > CCS Projects
  • Select Directory and Finish
  • Debug with a programmer (a launchpad also works) with connected TEST and RESET Pin. Don't forget GND.

For Raspberry PI with Python

  • copy ws2812ledchain.py to your python project folder
  • use it from a seperate file like this below.
text
	
	from ws2812ledchain import *

	chain=WS2812Chain(1)  //1 =>bus number(i2c-1 on raspi 2 and 3, i2c-0 on raspi 1)
	leds=chain.Add(0x44,256)  //0x44 => 7bit address of the chain element. 0x44 is the default. can be modified in firmware, 256 leds to handle
	leds.Test()
	leds.RingBuffer(500,0)  //shift forward every LED every 500ms 
	time.sleep(5)
	leds.RingBuffer(100,1)  //shift backward every LED every 100ms

For Raspberry PI with Web-API

  • install apache webserver
text
	pi@raspberrypi ~ $ sudo apt-get install apache2
  • copy ws2812ledchain.py and api.py to /usr/lib/cgi-bin/
  • change userrights for those files
text
	pi@raspberrypi ~ $ sudo chmod 0755 /usr/lib/cgi-bin/*.py
  • add cgi support in your apache config file
text
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>
  • maybe you have to enable cgi mod for apache
text
	sudo a2enmod cgi
	sudo /etc/init.d/apache2 restart
  • make a simple get request with javascript from your page (here with jQuery)
text
	$.ajax({
		url:'cgi-bin/api.py?task='+task,
		success: function(r){
			console.log(r);
		}
    });

TODO

  • Set RGBChain Length via Command
  • Change I2C-Address via Command
  • Add more functions ...

License

Beerware License.

Parts

44
QtyValueFootprintReferences
810kResistors_SMD:R_0603_HandSolderingR2, R2, R2, R2, R3, R3, R3, R3
81uCapacitors_SMD:C_0603_HandSolderingC2, C2, C2, C2, C3, C3, C3, C3
4Pin_Headers:PINHEAD1-8_SMDP2, P2, P2, P2
4Pin_Headers:PINHEAD1-3_SMDP3, P3, P3, P3
41nCapacitors_SMD:C_0603_HandSolderingC1, C1, C1, C1
447kResistors_SMD:R_0603_HandSolderingR1, R1, R1, R1
4CONN_01X02Pin_Headers:Pin_Header_Straight_1x02P1, P1, P1, P1
4LD59015TO_SOT_Packages_SMD:SOT-23-5U1, U1, U1, U1
4MSP430F2433Housings_DFN_QFN:QFN-24-1EP_4x4mm_Pitch0.5mmU2, U2, U2, U2

More from jacksitlab/2812LEDChain

2
  • 2 layers48.1 × 48.2 mm2812LEDChain nutzen2, the printed circuit board in 3D

    2812LEDChain nutzen2

    jacksitlab/2812LEDChain

    This Project is based on a little piece of Hardware I build for accessing 2812LEDs via I2C-Bus(aka TWI). In my special case I use a Raspberry PI to control them.

    44 parts
  • 2 layers48.1 × 49.8 mm2812LEDChain, the printed circuit board in 3D

    2812LEDChain

    jacksitlab/2812LEDChain

    This Project is based on a little piece of Hardware I build for accessing 2812LEDs via I2C-Bus(aka TWI). In my special case I use a Raspberry PI to control them.

    11 parts

Similar boards

  • 2 layers78 × 60 mmIce viz, the printed circuit board in 3D

    Ice viz

    muni-works/vcad

    BRep CAD kernel in Rust/WASM

    44 parts442Apache-2.0
  • 2 layers115 × 14.5 mmUFC Function Select, the printed circuit board in 3D

    UFC Function Select

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    44 parts431
  • 2 layers37.7 × 20 mmCandleLight, the printed circuit board in 3D

    CandleLight

    HubertD/candleLight

    stm32f0 usb can adapter (KiCAD)

    44 parts400
  • 2 layers88.9 × 88.4 mmTeensypi v91, the printed circuit board in 3D

    Teensypi v91

    simondlevy/Hackflight

    Minimalist flight-control toolkit for makers

    44 parts334GPL-3.0
  • 2 layers125 × 98 mm3-in-1, the printed circuit board in 3D

    3-in-1

    mudmin/AnotherMaker

    This is where I will store code snippets for AnotherMaker Videos

    44 parts258
  • 2 layers65 × 56.5 mmRPiG3iMac, the printed circuit board in 3D

    RPiG3iMac

    qbancoffee/imac_g3_ivad_board_init

    iMac G3 IVAD board initialization with an arduino

    44 parts240LGPL-3.0
  • 2 layers54.4 × 49.3 mmFx3 tn20k adapter, the printed circuit board in 3D

    Fx3 tn20k adapter

    Stefan-Olt/MISRC

    MISRC Is a multi channel RF capture device for FM RF, S-Video, CVBS RAW capture and anything else, but intended and supported for the decode family of projects vhs-decode, ld-decode, hifi-decode.

    44 parts236CC-BY-4.0
  • 2 layers250 × 32 mmPsu, the printed circuit board in 3D

    Psu

    shmoergh/moduleur

    Fully analog DIY-friendly modular synth

    44 parts222

Questions

How big is the 2812LEDChain nutzen PCB?

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

What parts does the 2812LEDChain nutzen use?

44 parts. 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 2812LEDChain nutzen KiCad files?

From the jacksitlab/2812LEDChain repository on GitHub, at the commit this page was made from: the board is pcb/2812LEDChain_nutzen.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the 2812LEDChain nutzen design in my own project?

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