Arduino: build LED strip control - how it works
A self-made chain of lights is nice to look at. We will show you here how you can build an LED strip controller with an Arduino.
Arduino: build LED strip control - how it works
- You will usually find 4 different outputs on your LED strip. As a rule, 3 of them are responsible for the colors. "G" stands for "green", "B" for "blue" and "R" for "RED". The last pin is connected to ground.
- Solder various jumper cables to the outputs of the LED strip, which you can plug into the Arduino.
- Now it is a matter of programming the LED control. To do this, define all pins for the LEDs as output in the "void setup" with the command »pinMode (13, OUTPUT);«. With this code, for example, we defined pin 13 as the output.
- In the "void loop" you can now apply a voltage to the pin with »digitalWrite (13, HIGH);« or deactivate the respective LED again with »digitalWrite (13, LOW);«. With »delay (1000);« you can have the Arduino wait 1000 ms, exactly one second. You can program different flashing lights and control the Arduino LEDs.
In the next practical tip, we will show you how to control an LCD on the Arduino.