Skip to content

Latest commit

 

History

History

strobe

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
template
true

Strobe

Level :

What does it do ? ✨

This tempalte shows how to use neopixels and an ESP32 to produce consistent flashes. With an ESP32 this template achieved less than a millisecond of delta between two loops.

Unless you need really consistent flashes you probably don't need this template, a UNO can achieve 2~3 milliseconds of delta if it goes at fast as it can and only need to worry about the LEDs.

This template should work on any board, but the faster the better. Putting this on a UNO isn't going to change much.

What hardware is needed ? 💾 🔌

  • An ESP32
  • Some ws2812B (a.k.a. Neopixels)
  • A computer

Software dependencies 🌈 📂

How to run ? 🚀

  • once everything is installed and wired up, just plug the ESP32 and press the "upload" button.

How to modify ? 🔩 🔨

  • open the serial plotter and tweak flashesPerSecond, boardDependentOffset, and deltaCompensation to suit your needs.

How one could improve the template 🦾

  • using FreeRTOS to see if having a task scheduler could improve the consistency.
  • using the second core of the ESP32 to offload everything that isn't related to the LEDs
  • ditch the ws2812B because we might just be limited by their communication protocole and their chip.