Skip to main content
40 votes
Accepted

Addressable RGB strip works fine individually but cannot set all LEDs to full white

I would suspect that it is a voltage drop in the power rails caused by the current draw. Probably cheap construction with copper tracks that are just too thin and so have too high a resistance. To ...
Majenko's user avatar
  • 105k
8 votes
Accepted

How does an LED in an LED-strip like WS2811 know when it should be on or off

The WS2811 is the driver chip, that is embedded into the strip. In principle it is some kind of shift register, that outputs PWM values, and on the strip they are daisy-chained (data output of one is ...
chrisl's user avatar
  • 16.5k
6 votes
Accepted

How do I control the onboard LEDs of my Arduino Nano 33 BLE Sense?

There are 3 LEDS on the Nano 33 BLE: A power LED on pin 25 (yes, you can turn off the power LED programmatically); A built-in LED on pin 13; An RGB LED with red on pin 22, green on pin 23, and blue ...
ocrdu's user avatar
  • 1,795
5 votes
Accepted

How do I turn off a 12V 3A RGB LED strip?

That's pretty simple: when you turn off all the colours you are actually turning off the entire strip with very minimum leakage current in each of the three FETs.
Roberto Lo Giacco's user avatar
5 votes
Accepted

Setting 10 RGB Strips Independently from Single Arduino

You could use chainable RGB drivers like these: They are based on the P9813 chip and can be used with the FastLED library. You can find them on Aliexpress or eBay, if you search for "STM32 rgb". ...
gre_gor's user avatar
  • 1,682
5 votes

How does an LED in an LED-strip like WS2811 know when it should be on or off

The LED units don't have any unique addresses of their own, instead they are indexed by their position in the string of LEDs. When you feed data into the first LED, you put the entire sequence of ...
vurp0's user avatar
  • 151
5 votes
Accepted

FastLED: Can't address led individually

The description in the link of where you bought the strip says: Description: LED Type: 5050SMD with External IC WS2811 (1 IC control 3leds) So, this is probably as intended. Note the ...
jose can u c's user avatar
  • 6,974
5 votes

Addressable RGB strip works fine individually but cannot set all LEDs to full white

Majenko's answer is correct, and you could also verify it with the test performed. Since it is an issue I encountered myself in the past in a similar case, I want to share some measurements I took on ...
frarugi87's user avatar
  • 2,721
4 votes
Accepted

Controlling a digital 12V addressable RGB led strip with Arduino?

The only signal you need to worry about is DIN (data in) which is normally 5V from an Arduino. Use that to switch a MOSFET or transistor to convert the digital pulses to 12V. In other words, the ...
Nick Gammon's user avatar
  • 38.6k
4 votes
Accepted

Fading LED Lights

You could look at this example, which fades an LED using PWM. https://www.arduino.cc/en/Tutorial/Fading Basically you use analogWrite to control the output of the pins with finer resolution, 0-255 ...
Code Gorilla's user avatar
  • 5,637
4 votes

Directly powering a single 32x16 RGB LED matrix (without external PSU)

When powered through USB, the total current consumption is limited to 500mA by the USB interface. If you are using the power connector, the total current is limited by the on board 5V regulator to 1A. ...
Fauzan's user avatar
  • 375
4 votes
Accepted

RGB LED strip 100m

100 Meters of 5050 SMD strip LEDs will require roughly 120-200 amps. However, you cannot drive a 100 meter strip from a single power supply. The thin copper traces in the LED strip can only handle so ...
AJ_Smoothie's user avatar
4 votes
Accepted

What can I do to increase the amount of LEDs I can power with a pro micro?

As Majenko already mention, use a separate power supply. Use that power to power the LED strip(s). Use the MCU to control the data and clock lines. Connect grounds together.
Michel Keijzers's user avatar
4 votes
Accepted

WS2812B are only white on custom board

The WS2812B chips are very sensitive to timing. They rely on pulses being just the right length for things to work. It is common if the timing is off that you just end up with white. Since you have a ...
Majenko's user avatar
  • 105k
3 votes

How many WS2811 LED strips can I control with Arduino?

There are three factors to consider when driving strings of these LEDs from an Arduino: How much memory the Arduino has - each LED takes at least 3 bytes of RAM (possibly more depending on the ...
Majenko's user avatar
  • 105k
3 votes
Accepted

Whats wrong with my code?

The errors are self-explanatory. You just have to read them carefully. ‘B54A3AC5’ was not declared in this scope The compiler doesn't know what "B54A3AC5" means. Nor do I, but I gess you may mean ...
Edgar Bonet's user avatar
  • 43.9k
3 votes
Accepted

Is there a way to put multiple integers in a method?

Check your spelling Intensity instead of Intesity. Consider using switch instead of if-then-else. Define left, right and middle as [integer] constants somewhere (and probably something more ...
AJD's user avatar
  • 205
3 votes

Wearable GPS LED help

I think others have addressed the need for you to modify the strip colors based on distance or bearing or... whatever you want to show. Here's a NeoGPS version of that sketch. I think it may be ...
slash-dev's user avatar
  • 2,029
3 votes

TLC5917 Electrical Characteristics

The concepts of HIGH and LOW, and thus the voltages associated with those concepts, apply only to logic signals. LED drivers are not logic signals - they are constant current sinks. The voltages you ...
Majenko's user avatar
  • 105k
3 votes

for() loop doesn't seem to break?

Consider the sequence of values of "fadeIn". It starts at 8 and in incremented by 16. So: 8, 24, ... 248, 264, ... . It is never exactly 255. So you never break out of your "for" loop. There is ...
st2000's user avatar
  • 7,435
3 votes
Accepted

Unexplainable int behavior in encoder/LED project

Here: CRGB leds[NUM_LEDS]; you are defining an array of NUM_LEDS objects of the CRGB type. Valid indices for this array range from 0 to NUM_LEDS-1. Here: for (int i = 0; i <= NUM_LEDS; i++) { ...
Edgar Bonet's user avatar
  • 43.9k
3 votes
Accepted

Arduino is incorrectly reading serial input from C# program

Your Serial receive code is not correct in some ways: You should only read from Serial, if there is really something to read. For the first read, that is not the problem, since you checked against ...
chrisl's user avatar
  • 16.5k
3 votes

What can I do to increase the amount of LEDs I can power with a pro micro?

Managing your power budget is a normal part of electronics projects. You can only draw about 500 mA total from the USB port, and less than that from the 5V line if your Arduino is powered from USB. If ...
Duncan C's user avatar
  • 5,702
3 votes

FastLED library: How can I adjust the brightness of a single pixel on an absolute scale?

There is no dedicated function to adjust brightness. You can (however) do this by using the HSV color model. Breaking HSV (Anachronism) into Parts: H (Hue) Controls the Color itself. S (Saturation) ...
chrisl's user avatar
  • 16.5k
3 votes

Why are transistors necessary before LEDs?

The port pins of your Nano can deliver current in a quite limited range, and six LEDs need a lot more to shine brightly. The transistors are amplifying the available current. However, 4k7 resistors in ...
the busybee's user avatar
  • 2,102
3 votes
Accepted

How to change brightness of LED light?

To change the brightness of any RGB color you need to multiply each color component by the brightness ratio. Lets look at some examples: Red is 255,0,0 in RGB. Full brightness is represented by 1, ...
chrisl's user avatar
  • 16.5k
2 votes
Accepted

Prevent 5V output on Arduino Nano 5V pin

A simple diode is all you need. The USB power already goes through a diode, so another diode the same will create a "highest voltage wins" situation. That is, if the voltage provided by the USB port ...
Majenko's user avatar
  • 105k
2 votes
Accepted

Same code in setup() and loop() give different results

After some discussion it turned out to be a hardware problem. For the sake of completeness I'll outline the suggestions I made. There was some initial confusion (see the edits) where the hasBeenSet ...
Nick Gammon's user avatar
  • 38.6k
2 votes
Accepted

DHT sensors with RGB LED

So far I only get 1's and 0's Before moving into the LED parts, you have to make sure that your system can correctly read the DHT sensor. There are debugging example from arduino-info....
duck's user avatar
  • 1,258
2 votes
Accepted

Better cycling through the RGB colors

I think it's worth noting that the three 255 values for RGB colour space is just one way to encode the 255^3 (16,581,375) colours. These include each and every brightness level too. If you are ...
Mazaryk's user avatar
  • 1,149

Only top scored, non community-wiki answers of a minimum length are eligible