2026202520242023202220212020201920182017201620152014
463211152313307215210213462
1 / 33 older

hexagonal neopixel tiles | Smol Version with 42 LEDs

2026-05-28 20:39:54



I have a CH32V003 version.with 42 LEDs now and could not get Arduino to work with it before. I now looked into it again and am very close to uploading to the SAO from Arduino.

First I had to make the compiling for the Adafruit_Neopixel library work. There's an issue with the hardware flag. You have to change the library slightly to work with the arduino core.

Arduino Core: https://github.com/openwch/arduino_core_ch32

Fix: https://forum.arduino.cc/t/ch32v003p4-sleep-and-wakeup/1290315/18

Change anything in .c and .h file from

defined(ARDUINO_ARCH_CH32)

to this:

defined(ARDUINO_ARCH_CH32) || defined(CH32V00x)

Then I had to change some doubles to floats variables, hopefully all the libs still work. Also added a const to the fixed variables to move them to Program Flash. 


The Arduino compiler is missing a flag for the CH32V003 to run with the internal 48MHz oscillator - something I later noticed by testing the hackaday CH32V003 supercon addon with a simple 1sec blink sketch. Reading this issue I thought it was fixed, but the blink don't lie. So following the issue I added the following flag to the compiler steps. This will basically break compiling for every other CH32 chip though, so be aware. 

https://github.com/openwch/arduino_core_ch32/issues/27
 

# the tag: -DSYSCLK_FREQ_48MHZ_HSI=48000000

compiler.S.flags= -DSYSCLK_FREQ_48MHZ_HSI=48000000 ...
compiler.c.flags= -DSYSCLK_FREQ_48MHZ_HSI=48000000 ...
compiler.cpp.flags= -DSYSCLK_FREQ_48MHZ_HSI=48000000 ...

 Uploading with the linux computer works, but with my mac I run into a libusb problem, that complains about the installed libusb architecture of my computer being wrong. After a few "chatGPT tells me to install new homebrew versions with rosetta" episodes I just gave up. You can also just upload the binary file you can export from arduino onto the CH32V003 by using minichlink.

./minichlink -w whateverfile.ino.bin flash

Side note: I had to again update the LED arrangement array

const uint8_t circular[4][12] = {
  {  0,  1,  2,  3,  4,  5, 255, 255, 255, 255, 255, 255},
  {  8,  9, 13, 14, 18, 19, 29, 24, 34, 35, 39, 40 },
  {  7, 10, 12, 15, 23, 20, 28, 25, 33, 30, 38, 41 },
  {  6, 11, 17, 16, 22, 21, 27, 26, 32, 31, 37, 36 }
};

price tag project boxes | and I'm reverting to analog lol

2026-05-07 11:49:02

So long story short, the tags were awesome, but somehow they lost the image data after a bit or the data on the server got compromised somehow. This project felt too static for displays that can easily update daily or more with fresh data, so I'm okay with that. Already found a good home for them, at least a home with money to spend on them.

Soot Sprite Simple Add-On SAO | velour stickers

2026-04-18 11:48:17

There were two choices for the shape of the velour stickers: either cut out the perfect circle and then live with the consequences of misplacing them - or cutout the circle after applying a bigger square. I went for the latter, which worked out ok! I'm going over every corner of the PCB with a black marker anyways, to keep the appearance as black as possible. The velour is great for absorbing the light shining on it.

Soot Sprite Simple Add-On SAO | Resin-casting the LEDs

2026-04-18 11:42:55
I found some molds on Aliexpress that seem to fit well with the soot sprites in shape and size, so I will not make my own molds for this. With every run I get around 25 weirdly shaped LEDs, which is nice. I even have a leftover mold in form of stormtrooper ice cubes now.

Raspberry PI Zero with Qualia displays | ugh log 2

2025-04-23 01:35:15

"Compensation for displays which use overscan is tricky under Wayland, and we haven’t quite got it working yet, so this has been removed for now. The vast majority of displays nowadays don’t need it, but we will be putting it back when we have worked out how best to do it"

So wayland doesn't allow for overscan settings, which sucks because both displays I'd like to use have about 80 pixels that they're not showing.

Raspberry PI Zero with Qualia displays | log ugh

2025-04-22 13:19:32

My LED driver was not correct, I burned the backlight of my display when accidentally hitting the memory button of my power supply, sending 60V to my Display woops.

Took me forever to put two code examples for the PIOs together. Now I'm back to using the Qualia board to send the commands first and then see if the Raspberry is sending the right info at least. no dice yet, might have to connect the reset pin.

I'm thinking about designing V2 of the board now, before endulging all of this.

Raspberry PI Zero with Qualia displays | Current State

2025-04-01 11:25:57

Since Bookworm — the new version of Raspberry Pi OS, things have changed with setting up external displays that are connected through the GPIO pins of the 40pin header. You can connect displays in an RGB565, RGB666 or RGB888 mode and there are presets for generic displays that don't need special setups. Thankfully it's easy enough to read the documentation of the Raspberry PI boards and follow through to make the PI zero yell RGB on all pins I chose. Just be aware if you're googling that you might run into outdated tutorials!

The HD371001C40 display that I chose from adafruit needs to be initialised through a 9-Bit SPI interface. In my first glance over existing code I thought I would be able to just copy the init code array of the adafruit examples and send that through a real SPI port of the RP2040 and be done with that.

Sadly it is not that easy. Adafruit is using a special routine to send the codes through a shift register that's connected through I2C. In that function it also reads certain codes from the array and figures out which byte is a command and which one is a data packet. So only sending these additional packets through an 8Bit port just doesn't make sense to the display at all, as the display is expecting the first bit to be a command / data flag.

From here I could go two routes: I can try bitbanging 9 bit SPI from the Raspberry Pi directly, like the cool kids from pimoroni are doing - or I could start learning a bit about the PIOs of the RP2040 that I have slapped on my test board and do it that way. I chose PIOs. Because that sounded more fun.

After turning to some AIs, I finally understood why the people who are telling me how cool and helpful LLMs are for coding, are also the people who seem to be always frustrated about their code not working and not figuring out why exactly.

Since the 9-bit SPI feels like making three LEDs blink in different speeds, I should come a long way with the tutorials I have spotted so far.

Raspberry PI Zero with Qualia displays | PCB for testing display

2025-03-19 15:22:41

Mysterio SAO | final boards are in

2025-02-18 19:00:17

Thin PCBs are in and I'm super happy - so glad since I've ordered 50 of them lel

Mysterio SAO | Results are in

2025-01-21 10:27:54

I have to admit I'm a bit underwhelmed - it feels too obvious now and the skull itsell is still blurry. After a bit of brain storming on mastodon, I'm now at the following stack up:

4 Layer boards, but thinner than 1.6mm. The skull details can be on bottom layer or the one after the FR-4. I will probably remove the reflection from the board, moast of the time it looks like a hello kitty bow and isn't brighter than anything around it. Just realised that I don't like the highlights on the diamond scarf brooches. Wondering about adding green LEDs behind them.

The light bleeding is gone thanks to the 4L with two layers basically being just copper. 

Programming the CH32V003

The hackaday badge can be used as a programmer for the CH32V003, it even came with a little board that featured some LEDs and the chip. After some group-effort debugging we fixed the python script in the discord and were able to let the LEDs blink differently.

So from V1 to V2 I changed the chip to feature the CH32, forcing me to try compiling code for the chip next. Thankfully there's ch32v003fun by CNLohr! I followed the instructions and installed the RISC-V toolchain threw brew first. I skipped all the probably helpful programmer tips and guides, since I already had my trusty badge.

The "fun" examples for the chip included code for neopixels, but the chosen pin was not available on the 8 Pin version. 

#define NR_LEDS 160
const int pin_number = 6;
#define BITS_PER_LED 24
#define TIME_SLICES_PER_BIT 4 // 4 is more reliable, 3 has less overhead.
const int gpio_pin = PD6;
GPIO_TypeDef * const gpio_port = GPIOD;

Further down in the example there's a hidden PD0 that I replaced with "gpio_pin" later - I should turn that into a pull request [edit: done]. For whatever reason I don't know yet: when I change the LED number to 4, it gets very flickery, probably some timing that scales with the number that doesn't like a reduction to 2.5% 

I also don't quite understand why there's a pin_number and a gpio_pin variable.

Production of 3rd version of the board will start on February 5th - thanks to purple stopmask, ENIG plating and 0.8mm thickness. I've ordered 50 and will populate as many as I have chips and LEDs for it for Hackaday Europe! 

hexagonal neopixel tiles | revived for congress 38C3

2024-12-24 20:53:45

We needed some decorations for congress and I remembered that I have these PCBs flying around somewhere. Too bad I couldn't find all 50 PCBs, so I came up with making some with LED strings as well - with folding the strip carefully, you just have to solder the cable on.

Mysterio SAO | 2nd revision

2024-11-28 13:27:36

I got the tip to try 4 layer PCBs for better shading and blocking, so that's what I did! Here's the copper stack up. 

Han SAOlo | Some thoughts after SuperCon

2024-11-11 15:38:37

This was the most popular simple add-on that I handed out and even before there were some people writing me that they'd like to have one. Before next year's Europe event, that has a high chance of happening again in Berlin, and before Congress, I'd like to make an update to this badge. 

The badge needs a place for a pin and a CR2032 battery, so it can be usd stand alone as well and I can gift it to friends unaware of SAO headers and pinouts of such! I can't find notes on the foot print I made for #K.I.T.T. - KNIGHT RIDER badge/brooch, but I have one kit with me and plenty of pins and battery cases at home still.

Skate SAO | found some more trucks

2024-11-08 20:04:25

For supercon I populated 4 of these boards that I made for the Supercon Add-on contest, but didn't publish before bringing them to Pasadena. These 10 packs of the trucks reduce the BOM considerably! There's probably something you can do with the UV PCB stuff, basically print your favorite deck in small and then add trucks to it. 

https://www.aliexpress.com/item/1005008003174723.html

Yo Dawg SAO - introducing SAOAO | Someone adapted the standard

2024-11-02 18:15:29

Awesome to see that someone added the SAOAO header to their SAO. Couldn't find it here, but its on github  https://github.com/bwasserm/sensaor 

TARS SAO | I2C hickup

2024-10-25 03:37:16

On the TARS SAO there are two quiic connectors, one was meant to connect to the I2C0 and the other to I2C1 capable pins of the RP2040 module. Sadly I mixed up pins and numbers and managed to connect both to I2C1 pins, just different ones. So best to ignore the SAO QUIIC connector. A rough I2C scanner is now running on TARS, making it possible to check for things on the bus. I just hope the badge RPI gets along well enough with a multi-master situation.

TARS SAO | I2C peripheral and "EEPROM"

2024-10-24 07:38:01

Arduino made it fairly easy to setup the I2C connection as a peripheral. I was able to read data from I2C and set that data as the displayed name of the simple addon owner for the name tag program! I Realised I have used wire1 for badge connection though. For the quiic connector I'm using wire apparently.

Yo Dawg SAO - introducing SAOAO | considerations for europe

2024-10-23 12:16:03

I should use smd headers and smd side glowing faders and blinkies for mass producing them. 

The Schedule SAO | the idea

2024-10-17 16:59:34

Since 2022 I'm running a little website with the schedule of the supercons / Europe events - it feels longer, but this is what I have. But I always wanted to have the schedule on my badge(s) as well and this feels like a reasonable aproach - you can reuse it for multiple events on multiple badges. 

I will try to make it as easy as possible to update the data on the eeprom,  hopefully with an export from my schedule site. https://supercon.davedarko.com/supercon24.php

The PCB is a small adapterboard, I used silkscreen to make it look a bit like a calendar showing the month November of 2024 with the supercon weekend being silver.

Since Aisler has a coupon "AUTUMN24" going (valid till end of year), I've ordered 12 PCBs for 3 Euros and the DS3231 modules were bought on aliexpress through their 3 for 2,99 program and I ended up with 12 modules for 12 Euros. 

hello my name is SAO | bagged and tagged

2024-10-14 23:04:09

With the help of a wonderful friend the ~90ish red/green/blue simple add-on kits are all now packed! It's fairly simple to solder, definitely beginner friendly!

1 / 33 older