Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rgb-led]

RGB (Red, Blue and Green) LED (Light Emitting Diode).

0
votes
1answer
21 views

keeping an RGB LED turned on after button press

So here's the code I'm working with //20 or 10 rgb led inputs for life counter const int RED_PIN = 12; const int GREEN_PIN = 11; const int BLUE_PIN = 10; const int buttonPin1 = 21; const int ...
0
votes
2answers
40 views

Arduino RGB LED not working all the time?

I was creating an RGB LED System with one 1 RGB LED controlled by an IR Remote. I wanted to assign a button to trigger a mood-light which cycles through the rainbow, and that works fine. But when I ...
0
votes
1answer
28 views

Addressable RGB LED Strip

I am looking to create an addressable RGB LED strip circuit with my NodeMCU v3 Wi-Fi. I am looking at a strip of 150 RGB LEDs, 5 meters long, so 30 LED/m. But I am only going to use about 50 LEDs for ...
0
votes
0answers
32 views

Flickering issue with powering WS2812B LEDs

Hello I'm having a flickering issue with my WS2812B LEDs, I know that it's obviously something that I have done incorrectly and to rule one possible issue out that it cannot be the Arduino code as it ...
0
votes
1answer
37 views

How would I go about powering addressable RGB LED light strip? [Arduino Nano] [closed]

The addressable RGB LED I have is WS2812B. I plan on controlling the LEDs via an Arduino nano. I have a total of 188 LEDs to supply power to. Would I require anything between the addressable RGB LED ...
0
votes
1answer
42 views

FastLED: Can't address led individually

I'm unable to access the first led in my strip with this code: void loop() { leds[0] = CRGB::White; FastLED.show(); delay(100); leds[0] = CRGB::Black; FastLED.show(); delay(100); } Instead, it ...
0
votes
1answer
20 views

Arduino with using Adafruit NeoPixel library set one color, fade random pixels in strip on and off

So I am trying to get random pixels to fade on and off at one color. I want to create a power moving inside an item effect. I have several examples of the whole strip fading in and out, but cant seem ...
0
votes
1answer
70 views

RGB LED strip 100m [closed]

Hello all, I'm working on RGB LED strip SMD 5050 5m This all setup is working on 12v 2A with about diagram. I want to use same connection with 100m of LED strip using Arduino. Please support ...
1
vote
0answers
92 views

FastLED fill_rainbow - Unexpected red pixel

I'm using FastLEDs builtin fill_rainbow function for generating a rainbow spectrum on an LED strip. The issue is, I get a random red pixel midway through the yellow region. I've tried it on 3 ...
0
votes
1answer
115 views

ATTINY85 with RGB LED

I'm trying to DIY about a dozen BlinkSticks (discontinued, Adafruit) pictured here I'm thinking to use a Digispark ATTINY85 to control a single RGB LED to show the status of some program running ...
0
votes
2answers
104 views

NodeMcu pins and an RGB LED

I'm using a NodeMcu for my project and am running out of pins to use. I have a MFRC522 Module, IR Receiver, Buzzer and RGB LED connected. I am facing the problem that whenever I start scanning for ...
1
vote
4answers
114 views

Multiple RGB led strips with Uno - options? [duplicate]

I know there's quite a few threads with similar answers already, but I hope you won't mind me asking anyways. One thread has what looks like a good solution but it's old and thought it may be better ...
0
votes
0answers
30 views

One color + shortcuts profile per software ? Arduino custom Macro keyboard - Cherry MX RGB

I am building a 26 RGB keys keypad to create a custom shortcut/macro keyboard. Arduino micro, 24 keys for shortcuts + 2 to set keyboard layers. (like a fn key) The idea is to auto trigger a different ...
1
vote
4answers
77 views

for() loop doesn't seem to break?

So I'm quite new to the whole Arduino coding but constructed a sketch that does work, but I think it doesn't work properly. So I'd love to get some advice on how to improve it. This script is ...
0
votes
1answer
87 views

Looking to blink entire led strip

I am fairly new to FASTLED programming and am looking to make my entire LED strip blink at the same time. Similar to the Example Sketch "Blink" however all 30 of my LEDS. I might just be having a ...
0
votes
0answers
37 views

RGB LED colour transitions with accelerometer

I try to convert an accelerometer's upper hemisphere x and y rotations - meaning clamping output only to z positive orientations - into two pre-defined colour transitions of an RGB LED, where x and y ...
0
votes
1answer
81 views

RGB LED strip controlled through PySerial only somewhat functional

I am trying to set up an LED-strip of 30 RGB LEDs (model WS2801). The strip is connected to an Arduino Uno and an external power supply and the goal is to send colors to the arduino using PySerial ...
0
votes
0answers
128 views

Output multiple arrays to single LED Strip

I'm currently working on a rather large LED display and am wondering if it's possible to output more than one CRGB LED array to a single pin (using offsets; I don't want to write different values to ...
0
votes
0answers
43 views

How to connect an addressable (ws2811) led-strip with long cable to an adruino?

I set up a light show on my Arduino and it worked perfect when I tested it. I connected the the data line of my 1 meters (3.2ft) of addressable ws2811 ledstrip direct on the breadboard next to the ...
0
votes
1answer
46 views

Fade effect analog RGB strip and NodeMCU

I have an analog or dumb RGB strip that I control with HTTP commands. I want to be able to make the strip fade between different colours when I call http://XX.X.X.XXX/fade. I want it to do this ...
1
vote
0answers
29 views

Problem with incrementing values of an RGB LED

I'm trying to use a remote control to control the red/green/blue values of an RGB LED using an Arduino Uno. Here's what I've got so far: #include <IRremote.h> #define IRPin 7 #define bluePin 9 #...
5
votes
2answers
573 views

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

I was experimenting with an Arduino board and an LEDstrip WS2811 it works all perfect, but I do not understand how a particular led knows when it is called or adressed. Does every led have a unique ...
0
votes
1answer
396 views

Need help in connecting 64x32 LED Matrix

I recently got a 64x32 LED Matrix. However, I'm not sure how to connect it to an arduino uno. I tried following the docs here: https://cdn-learn.adafruit.com/downloads/pdf/32x16-32x32-rgb-led-matrix....
0
votes
1answer
57 views

TLC5917 Electrical Characteristics

I am using an Arduino Uno to communicate over SPI to 3 cascaded TLC5917 chips corresponding to the Red, Green and Blue rows of an RGB LED Matrix. I am using direct output IO from the Arduino to power ...
1
vote
1answer
158 views

RGB LED strip inverted PWM

This bug/stupidity-of-myself/problem is killing me: I'm have created an RGB strip controller that cycles through the additive-rgb-color spectrum while turning a potentiometer. I have a pot hooked up ...
0
votes
0answers
54 views

FastLed code LEDs only displaying blue

I'm just starting out learning to code in Arduino, so I'm finding examples online and modifying them a bit. I found this bit of code online for pulsing LEDs. I tested it out and it worked fine to ...
3
votes
2answers
437 views

Setting 10 RGB Strips Independently from Single Arduino

I want to control 10 different 12V RGB LED strips independently from a single Arduino. As a clarification - I've setup a bunch of NeoPixels and understand how to wire and control them independently. ...
0
votes
0answers
102 views

Using TxD pin and NeoPixel library for RGB LEDs

I have no free pin on my ESP-12 but GPIO16 and TxD (GPIO1). I use Neo Pixel Library and this design: GPIO16 powers it on/off TxD uses to handle single-wire-based for LEDs (GPIO1) It works but it has ...
0
votes
1answer
122 views

How to fade out RGB strip?

I have a NodeMCU controlling an RGB strip. I have followed a guide and used this code: #include <ESP8266WiFi.h> #define redPin 13 //D7 - Red channel #define grnPin 12 //D6 - Green channel #...
-1
votes
2answers
192 views

How can I power an 8x8 led matrix? [closed]

I’m relatively new to Arduino. I got this 8x8 rgb led matrix: I’ve got no idea how to power it. Help please!!!
1
vote
0answers
106 views

Run 5V LED Matrix and LED Strip on one Arduino [closed]

I am fairly new to the Arduino community but have electronics and programming experience. I was able to connect and run a 5V RGB 8x32 LED matrix on my Arduino displaying some running text. Now I would ...
-1
votes
3answers
66 views

Wearable GPS LED help

I'm very new to Arduino and C++ and have been playing with the Flora Wearable GPS. However, nowhere I've looked has given me any help in setting and changing the color of the LEDs. The tutorial on ...
1
vote
1answer
42 views

RGB Not displaying Red when using LCD

I was testing my RGB (common anode) on its own playing with colours and got the red, green to work as desired. However, when I connected my LCD board to my Arduino Uno as well as the RGB (using the ...
0
votes
1answer
175 views

AnalogWrite only working for one pin of RGB LED

I'm working on some code for a Nerf blaster with an LED indicator light. When attempting to use analogWrite to PWM my LED pins, only one pin (blue) behaves as expected and dims down. The other two (...
-1
votes
3answers
72 views

Is there a way to put multiple integers in a method? [closed]

I'm working on a project that has 3 RGB LEDs. I want to make a simple method that I can call to control the LEDs for example: showColor(left, 255, 0, 50); Which would light up the left LED at 100% ...
0
votes
1answer
513 views

WS2811 LEDs have the wrong color unless I touch the data wire

This is an electrical/hardware issue, but for background, here's my setup: I'm using a Wemos D1 mini in conjunction with Home Assistant running on a RPi3. The MQTT setup works fine and the commands ...
1
vote
1answer
272 views

Problem with PWM function on RGB LED and IR

I'm having an issue in controlling a RGB LED with Arduino and a remote control. When including the library IRRemote.h (version 2.2.3), the blue channel only works in on/off logic instead of PWM. If I ...
2
votes
1answer
639 views

Control LED strip IR controller using Arduino

Is it possible to connect to one of these, which run at 12v, to turn on the LED strip using an ESP8266? It doesn't matter if it's an Arduino or the ESP8266, both should be able to do this. The board ...
0
votes
1answer
332 views

FastLED: “Invalid pin specified”

I have an Adafruit Trinket (5v, 16mhz, based off of the AtTiny85 chip), and am wishing to use it with a strip with 24 3 pin, individually addressable LEDs (WS2812B). When I try to compile my code, I ...
-1
votes
2answers
115 views

Whats wrong with my code?

Basically what i am trying to do is use an ir remote to turn an rgb on/off and have a few preset colors as well as being able to increase/decrease red/green/blue independently. I don't know much about ...
1
vote
0answers
325 views

Arduino PWM multiple RGB LEDs

I want to control 61 SMD 3528 RGB LEDs (KT-SMD3528-RGB) with 3 arduino Micro's 3 PWM pins. I learned from reading up that I'll have to use 3 NPN Transistors to control RGB LEDs and external power ...
0
votes
2answers
453 views

Multiple random Fire2012 sequence in same strip

I am trying to simulate 4 flickering flames on a single LED strip. The ws2812b strip has 60 LEDs. I cut and chained it into 4 chunks of 15 LEDs. Each chunk has a random Fire2012 sequence, however the ...
1
vote
1answer
56 views

Having a problem where the previous letter flashes after a space

im currently working on a stranger things letter board with an arduino and ws2811 leds and im having an issue where ever there is a space, the previous letter will be displayed. Ive tried going in and ...
0
votes
1answer
314 views

Low power RGB LED for wearable device

I am trying to prototype a wearable device which will have about 120 RGB LEDs. I was considering the WS2812B but they seem to draw about 50mA and so may not be a good option since I will be powering ...
1
vote
3answers
64 views

LEDs Randomly smooth transitioning, accounting for black or how-to switch using HSV

I am stuck trying to get it not to account for black in RGB. My first instinct was to use the HSV color spectrum over the RGB rainbow but, the same code will behaves differently in HSV. If i could ...
1
vote
2answers
68 views

How to add this old BASIC code snippet to work in Arduino C++ for FastLED?

I've been trying to implement this old code that randomly transitions to RGB color into my Arduino board that uses FastLED. Static Col1, Col2, Col3 As Integer Static C1, C2, C3 As Integer If (Col1 = ...
1
vote
1answer
248 views

How do I connect a LED strip to a Multiwii SE 2.5?

https://www.m.nu/neopixel/mini-skinny-neopixel-digital-rgb-led-strip-60-led-m-black-pcb-1m I just purchased this led-strip that I plan to use with my Multiwii SE 2.5. I power the Multiwii itself ...
0
votes
3answers
128 views

Two Arduinos get out of sync after a few seconds

I built a small PCB that has some LEDs (bare NeoPixel 5050) and an IR receiver on it. The microcontroller is an ATtiny85, and the PCB is powered by a LiPoly battery (3.7V). The circuit normally stays ...
-1
votes
1answer
776 views

Fading red to white to blue continuous loop on ws2812 LED strip

I'm a big noob when it comes to writing a sketch and have set myself a task for an upcoming 4th July project, which has come to a halt. I'm trying to set a strip of 30 LEDs to fade from red to white ...
0
votes
1answer
283 views

ESP8266 + NeoPixel - Cannot set pixel color, I got “Exception 29: StoreProhibited”

I'm trying to use NeoPixel on the ESP8266. I made simple test put all required code into setup() and loop() methods. Then, to keep everything in order I create a class LedModule which handle the led ...