Live data from Hacker News

How to Create a LED Mask Using Arduino, NeoPixels, and C++

armaizadenwala.com

31–39 of 39 posts

Re: How to Create a LED Mask Using Arduino, NeoPixels, and C++

#32

Fun! It's amazing how ubiquitous WS2812Bs have become in such a short time. They're wonderful for everything from wearables to signage to room lighting, and there are 12V versions available if you want to drive longer strings. Some advice for people seeing this article in 2020: you might consider using a more modern microcontroller which supports DMA for new projects today. The ATMega328p which is used in Arduino Uno…

I'm a big fan of the STMicro nucleo L476RG. Multiple UARTS and SPIs, really low power, custom clocking and deep-sleep modes, 32x the flash of an Uno, and up to 80MHz. Comes in $13 arduino-like board, or a smaller $8 version like an Arduino micro.

The "BluePill" (STM32F103) is also good, really small and pretty cheap if you don't need the Arduino compatibility. You will need a dedicated programming tool (ST-Link), though. At least that's what I use for more than half of my WS2812B related projects.

Re: How to Create a LED Mask Using Arduino, NeoPixels, and C++

#33
post #31

C++? How about no.

Why would you want to program a microcontroller in any other language?

Because C++ is huge language with lot of history baggage that makes it easy to write bad code. I'd love to use something more elegant like Nim (with disabled GC). Note that only lowest layer of embedded project has to have direct access to memory mapped devices and for this I still prefer C.

Re: How to Create a LED Mask Using Arduino, NeoPixels, and C++

#34

Fun! It's amazing how ubiquitous WS2812Bs have become in such a short time. They're wonderful for everything from wearables to signage to room lighting, and there are 12V versions available if you want to drive longer strings. Some advice for people seeing this article in 2020: you might consider using a more modern microcontroller which supports DMA for new projects today. The ATMega328p which is used in Arduino Uno…

>ESP8266 boards let you control your patterns over WiFi.

I helped make this: http://magicshifter.net/

Re: How to Create a LED Mask Using Arduino, NeoPixels, and C++

#35

Earlier quoted context omitted.

Im building a setup now. Any tips on libraries for esp8266 to control the maximum number of leds via i2s DMA?

If you want maximum number of LEDs, I think you want the four-wire LED strips that are driven over SPI, like the APA102 and similar. Much faster than bit-banging on the three-wire strips.

If you want max number of LEDs you have to use HUB based LED panels. They are way cheaper. But harder to control.

Re: How to Create a LED Mask Using Arduino, NeoPixels, and C++

#36

I saw one of these last night at a show. It was pretty cool, but thought it was a little confusing to see so many rave masks (led and non-led) among so many surgical masks on sock people. We need LED rave surgical masks!

sick people

Re: How to Create a LED Mask Using Arduino, NeoPixels, and C++

#37

Earlier quoted context omitted.

If you want maximum number of LEDs, I think you want the four-wire LED strips that are driven over SPI, like the APA102 and similar. Much faster than bit-banging on the three-wire strips.

If you want max number of LEDs you have to use HUB based LED panels. They are way cheaper. But harder to control.

Got a link?

Re: How to Create a LED Mask Using Arduino, NeoPixels, and C++

#38

Earlier quoted context omitted.

If you want max number of LEDs you have to use HUB based LED panels. They are way cheaper. But harder to control.

Got a link?

For instance: https://nl.aliexpress.com/item/32969045578.html?spm=a2g0o.pr...

You can find how to control them if you search for HUB75. For a couple of dollars you got 2048 LEDS. You can get them in different sizes and LED pitches.

Re: How to Create a LED Mask Using Arduino, NeoPixels, and C++

#39
post #31

Earlier quoted context omitted.

Why would you want to program a microcontroller in any other language?

Because C++ is huge language with lot of history baggage that makes it easy to write bad code. I'd love to use something more elegant like Nim (with disabled GC). Note that only lowest layer of embedded project has to have direct access to memory mapped devices and for this I still prefer C.

The new ARC memory manager will replace GC.
Post reply on HN