A doorbell that rings when pressed
Pressing the button turns the NeoPixel ring blue and plays two tones.
Indicator
ws2812bGPIO5 V logic
Why this support circuit is added
5 V addressable LEDs. Up to 60 mA per pixel — budgeted for 8 pixels (480 mA); longer strips need their own 5 V supply.
Grounded in the catalog and golden patterns (real open-source circuits). Every auto-inserted part comes with a reason.
Using this part in a project adds the circuit below, each element with its reason.
WS2812B needs HIGH ≥ 0.7×VDD = 3.5 V; a 3.3 V MCU is out of spec, so a 74AHCT125 buffer lifts it to 5 V (Adafruit Überguide). Omitted on 5 V MCUs.
300–500 Ω in series with data protects the first pixel from ringing and overshoot (Adafruit Überguide).
≥100 µF bulk cap across the supply absorbs the inrush when pixels switch on (Adafruit recommends 1000 µF).
Any of these #includes identifies this part
#include <Adafruit_NeoPixel.h> #include <FastLED.h>
Run them in the browser, no login needed.
Pressing the button turns the NeoPixel ring blue and plays two tones.