ArduinoCandleEffectNeoPixel icon indicating copy to clipboard operation
ArduinoCandleEffectNeoPixel copied to clipboard

Simulated candle moving-flame-effect with multple leds using a Neopixel ring running from an Arduino

ArduinoCandleEffectNeoPixel

(C) 2017 Alain van Hanegem This is a 'simple candle effect' using a 12-led neopixel ring.

It uses 3 values of yellow and red and fades to new randomized group values at 10Hz rate. The program runs at 100Hz to update the leds. It really gives a nice effect of a candle moving flame.

Snapshot of the candle with a neopixel ring

Hardware

This is the neopixel used. You can use any Arduino, having 5V to power your Neopixel ring and provide a data output pin to drive the bus of the neopixel.

In case you'll be using a LI-ion/PO powered solution, make sure to connect your neopixel to Vbat, as there probably isn't any 5V available from your battery.

License

See the LICENSE file for license rights and limitations (MIT).

Notes

  • Using neopixel strips: use a 470 ohm resistor on your data line to protect the first LED from spikes that can occur.
  • Using rings: no need to add extra; the resistor is already on the ring

Acknowledgments

  • Created for inspiration and fun