Skip to the content
2 layers48.1 × 49.8 mm2812LEDChain, the printed circuit board in 3D

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
48.1 × 49.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
8
Pads
70
Tracks, vias
110, 14
Pours
3
Routed
Yes
KiCad
KiCad 4
Created
8 Oct 2016
Updated
17 Jun 2018

Overview

2812LEDChain is an open-source printed circuit board by jacksitlab, from the jacksitlab/2812LEDChain repository on GitHub. It is a 2-layer board of 48.1 × 49.8 mm with 11 parts on 8 nets, routed with 110 tracks and 14 vias.

Its parts include 3 capacitors, 3 resistors, 3 connectors and 2 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

11
QtyValueFootprintReferences
210kResistors_SMD:R_0603R2, R3
21uCapacitors_SMD:C_0603C2, C3
11nCapacitors_SMD:C_0603C1
147kResistors_SMD:R_0603R1
1CONN_01X02Pin_Headers:Pin_Header_Straight_1x02P1
1CONN_01X03Pin_Headers:PINHEAD1-3_SMDP3
1CONN_02X04Pin_Headers:PINHEAD1-8_SMDP2
1LD59015TO_SOT_Packages_SMD:SOT-23-5U1
1MSP430F5739Housings_DFN_QFN:QFN-40-1EP_6x6mm_Pitch0.5mmU2

More from jacksitlab/2812LEDChain

2
  • 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.

    44 parts
  • 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

Similar boards

  • 2 layers60 × 30 mmController, the printed circuit board in 3D

    Controller

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    11 parts3kApache-2.0
  • 2 layers103 × 30.5 mmTS Front Endcap, the printed circuit board in 3D

    TS Front Endcap

    EEVengers/ThunderScope

    ThunderScope GitHub Repo

    11 parts1.3kMIT
  • 2 layers26 × 30 mmExpansion Card, the printed circuit board in 3D

    Expansion Card

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    11 parts1.1kCC-BY-4.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    11 parts1kGPL-3.0
  • 2 layers10 × 20 mm2 connector Sensor Board, the printed circuit board in 3D

    2 connector Sensor Board

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    11 parts915
  • 2 layersFet module, the printed circuit board in 3D

    Fet module

    ByteWelder/Decktility

    A handheld PC

    11 parts855CC-BY-SA-4.0
  • 2 layers47 × 33 mmSevensegment led display module, the printed circuit board in 3D

    Sevensegment led display module

    tardate/LittleArduinoProjects

    a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

    11 parts803MIT
  • 2 layers42.5 × 36.8 mmDevboard, the printed circuit board in 3D

    Devboard

    basilfx/TRADFRI-Hacking

    Hacking IKEA TRÅDFRI products, such as light bulbs, window blinds and other accessories.

    11 parts743CC-BY-4.0

Questions

How big is the 2812LEDChain PCB?

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

What parts does the 2812LEDChain use?

11 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 KiCad files?

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

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

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