I'd like to control the brightness of a neopixel ring with a potentiometer, but all of the examples of this that I can find use analogRead() on a microcontroller to map the potentiometer value to the pixel brightness.
I'd rather cut the analogRead() out of the picture, and just wire the potentiometer inline with the voltage in on the neopixel ring - will this work, or do I risk damaging my ring?
Thanks -
Control Neopixel brightness with a potentiometer
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- bridgier
- Posts: 1
- Joined: Fri Sep 06, 2013 12:37 pm
- michaelmeissner
- Posts: 1832
- Joined: Wed Aug 29, 2012 12:40 am
Re: Control Neopixel brightness with a potentiometer
That won't work, since neopixels are a digital protocol. When you do do a show(), it sends a series of pulses down the wire, apart from headers, etc. it sends down 3 bytes per led giving the color values from 0..255, and the ws2812 chip then does an internal PWM on each of the 3 leds to get the appropriate power level. In addition, neopixels have a fairly narrow voltage bandwidth (3.5 to 5v).
Please be positive and constructive with your questions and comments.