
OSO BOOK C1
joeycastillo/The-Open-Book
For details on how to build, test and use Open Book, I've made documentation available here.

Alternate firmware for Banggoods 32LED POV Stick
Led32stick is an open-source printed circuit board by adlerweb, from the adlerweb/banggood-32led-stick repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 224.8 × 27.9 mm with 38 parts on 20 nets, routed with 306 tracks and 18 vias.
Its parts include 32 diodes, 2 switches, 1 IC, 1 connector and 1 crystal.
This repository contains hardware documentation and software for Banggoods "DIY 32 Bit LED Shake Stick Kit". This repository is a supplement for BitBastelei #205(German).
The design itself is based on a STC11F02E microcontroller (8051-compatible, 2KB Flash, 2KB EEPROM). All LEDs are connectred in a 3-way-matrix (lines, rows and polarity). An additional direction-switch and a push button are also available. The chip can be programmed using a serial connection which is available on a separate pin header.
Design notes:
The provided design files can be opened using KiCad. The schematic schould be correct, the board layout is only a coarse drawing and should not be used as a reference without further checks
The software is written in C and intended to be compiled using sdcc. A project file for MCU 8051 IDE is included. Both tools are available for linux under a open source license, Windows-Versions should also be available.
In it's current state some basic functionallity is given, but the software is far from complere, see below for a list of known flaws.
At the top of the file a array of longs is defined. Every element represents one column of 32 LEDs, the left/highest bit will be drawn at the base of the unit. The first element will be drawn first. You can make the array wider or smaller using GRAPHSIZE above.
To draw a column the code will iterate every LED, switching the corresponding ports for LEDs to be lit either LOW or HIGH accordingly. LEDs and pins not used well be set to High-Z to avoid involuntary driving of other LEDs on the lines/columns of the LED-array.
The main program will first inizialize all ports as inputs (High-Z) with an exception for both buttons which will be driven using the "quasi bidirectional" mode, allowing us to use the MCU as pull-up.
The main loop will start drawing once the push-button is pressed. This should be replaced with the direction switch for proper drawing. It will begin using the first array element and draw it several times. If the timeout is up it will continue with the second column, etc. Drawing will automatically stop when reaching the last element or releasing the button.
The timeout is calculated dynamically, the code will start with one and increase the number of repetition if the draw was finished before releasing the button (of later changing the direction again). Thes isn't really feasible when using the push-button but should somewhat work one the direction switch is used.
Have a nice whish-list of things, that should be improved…
The IC can be programmed using a serial bootloader. You need a USB so TTL serial adapter to connect your PC to the board. Connect GND to GND, VCC to VCC/5V and cross RX/TX. On the software side you can use stcgal on linux or the official tool for windows (which is afaik not in english…). You have to start the flashing process on your PC first and then powercycle the IC to enter the serial bootloader.
For Linux you can use this command:
stcgal -P stc12 -p /dev/ttyUSB0 main.hex
Yes, the LED-board is using a stc11-IC, but the protocol is identical. Please be aware you need full access to your serial programmer, depending on your setup you have to start the process as root or use sudo.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 32 | LED | LEDs:LED-3MM | D1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +16 |
| 1 | 12MHz | Crystals:Crystal_Round_Horizontal_2mm | Y1 |
| 1 | 3xAA | Wire_Connections_Bridges:WireConnection_2.50mmDrill | BT1 |
| 1 | CONN_01X04 | Pin_Headers:Pin_Header_Straight_1x04 | P1 |
| 1 | SPST | Buttons_Switches_SMD:SW_SPST_REED_CT10-XXXX-G1 | SW2 |
| 1 | STC11Fxx | Housings_DIP:DIP-20_W7.62mm | IC1 |
| 1 | SW_PUSH | Buttons_Switches_SMD:SW_SPST_B3S-1000 | SW1 |

joeycastillo/The-Open-Book
For details on how to build, test and use Open Book, I've made documentation available here.


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


Ardumower/ardumower
Develop an open source robotic lawn mower (HW+SW reference platform)

CRImier/MyKiCad
My KiCad boards. Can't be bothered uploading individually anymore, so here you go.


It measures 224.8 × 27.9 mm and has 2 copper layers, 1.6 mm thick.
38 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.
From the adlerweb/banggood-32led-stick repository on GitHub, at the commit this page was made from: the board is hardware/led32stick.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).