Skip to content

obstruse/StrobeLight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scope

DotStar Strobe Light

Strobe Light using DotStar LEDS and ESP32.

The problem with using DotStar LEDS for this is that the LEDS are addressed one-at-a-time; it's a shift register. A fast strobe flash requires clocking the DotStar strip at a high frequency. For example, the images displayed here use a 288 LED strip clocked at 15 MHz, giving an on-time of 780 microseconds (1/1280 second). Exposure time for the 'double bounce' was 2 seconds at ISO 1600.

Unfortunately, the standard Adafruit_DotStar library doesn't operate at that speed. Best I could get with v1.2.0 ("BusIO version") set to 15MHz with 288 LEDs was 1/174 second on-time (software SPI) and 1/83 second on-time (hardware SPI).

Included is dotStar.cpp, a optimized version of the Adafruit_DotStar library v1.1.5. The modifications bring the 288-LED on-time to 1/526 second for software SPI, and 1/1280 second for hardware SPI. It should be possible to run the SK9822 LEDS at 30MHz clock, but it seems to depend on the length of the strip. With 288 LEDs, 19MHz is the highest clock frequency that works reliably.

Setup

The program can be compiled with either PlatformIO or Arduino IDE.

The first time it boots it will create a Soft Access Point with SSID: strobelight and PSK: carbondioxide.
Open http://strobelight.local/config to configure the WiFi

http://strobelight.local/ allows for selection of the strobe parameters:

Web Page

  • LEDs length of strip

  • Clock MHz SPI clock frequency in MHz

  • Fall Height distance object will fall in camera frame

  • Strobes/Fall number of strobe flashes during fall

  • Strobe begin flashing at rate determined by settings

  • Flash single strobe flash

Before taking a picture:

  • Dark Room Shield LEDS so that light doesn't spillover onto background
  • Set Shutter Speed Set shutter speed long enough to capture the object's motion. One or two seconds
  • Set White Balance Turn on the strobe and focus on a sheet of white paper to capture the white balance. The RGB LEDs aren't actually 'white'
  • Set Exposure Place the object in frame, open shutter, and press Flash to get a single strobe flash. Adjust ISO (or ISO and aperture if available) to get proper exposure.

Gallery

Fifteen MHz clock, one second exposure, ISO 1600

Bounce Gravity Slinky yardFlower

About

Strobe Light using DotStar LEDS and ESP32.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published