RGB LED
Off topic → Electronics → RGB LED
@Joel_GI
Then do you know the process of making a muti-color LED (that cycles through 6 different colors), output one color solid on?
Thanks @PanFritz. It is PWM. I was given this mouse that has 3 LEDs that cycle through. I want to make it so it stays on one color. I’m new to muti-color, so I don’t exactly know what to do, to have a one color constant output if that is possible. I think I need to do something with the micro controller.
Okay. He said this is the mouse
A lot of people were asking the same question on how to stop it from cycling through all the colors. The answer is no due to there not being any software to change shit. So now I am wondering if there is a hardware way to do it?
Here is a picture of the insides of the mouse Closer picture of components circuit board
There are actually 4 wires that go into each LED.
The cycling is the way it came. It is annoying as fuck and I wish there was a way to change it. It is the micro controller outputting different signals like this:
I want the cyan color constant, so I first need to have only the Green & Blue ON, then find a way to have them always ON.
I could easily cut the Red wire, but that wouldn’t exactly get me where I want.
This is not exactly rocket science… Wrote you a struct you can use if you wish.
struct RGB_Led
{
uint8_t redPin;
uint8_t greenPin;
uint8_t bluePin;
RGB_Led(uint8_t red, uint8_t green, uint8_t blue)
{
redPin = red;
greenPin = green;
bluePin = blue;
pinMode(red, OUTPUT);
pinMode(green, OUTPUT);
pinMode(blue, OUTPUT);
digitalWrite(red, LOW);
digitalWrite(green, LOW);
digitalWrite(blue, LOW);
}
void setColor(uint8_t red, uint8_t green, uint8_t blue)
{
analogWrite(redPin, red);
analogWrite(greenPin, green);
analogWrite(bluePin, blue);
}
};
RGB_Led led(3, 5, 6); // Make sure these pins are PWM compatible.
void setup()
{
pinMode(4, OUTPUT); //These two lines are just my ground pin X) couldnt be bothered acctualy pluging it into ground.
digitalWrite(4, LOW);
led.setColor(50, 10, 30); // And have fun.
}
void loop()
{
/* add main program code here */
}
@yop_tropix
I thought about that, but I the micro controller is outputting a slow breathing like pulse; I would still need to modify something to keep it always on. Or maybe I could just by pass all that shit and just tap a normal Cyan LED into the power. Maybe this?
The first minute shows what this mouse’s animation looks like.
Would replacing the Muti-Color LEDs with a regular cyan LED work?
Emmm sure this is easy :!
Put a pull down resistor on the pin that has to be off, then pullup pin to the pins that have to be on HF :D
So put a pull down resistor just on the RED? Why not just cut it off since we don’t need it at all?
I’m confused on your last sentence. Pull up resistor? “HF”?