Control Neopixel brightness with a potentiometer

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bridgier
 
Posts: 1
Joined: Fri Sep 06, 2013 12:37 pm

Control Neopixel brightness with a potentiometer

Post by bridgier »

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 -

User avatar
michaelmeissner
 
Posts: 1830
Joined: Wed Aug 29, 2012 12:40 am

Re: Control Neopixel brightness with a potentiometer

Post by michaelmeissner »

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).

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”