This program combines the Neopixel library from Adafruit and the IRLremote library to create a remote controllable LED strip. Anyone who is interested in development should take a look at FastLED, which provides many more functions to manipulate the colors. I found FastLed after i was nearly done with this project.
For further development, take a look at a VS Code, which supports the development of Arduino projects including sketch uploading and serial monitor.
** This is my C++ learning project, so improvements are welcome. **
- Adafruit_NeoPixel: LED Strip library
- IRLremote: Infrared library
Install the dependencies with the Arduino IDE and open the ** led.ino **. Now configure the values and then upload the sketch to your Arduino.
Depending on the strip you are using, configure the transmission configuration and the stripe length(PIXEL_COUNT). More Info
#define PIXEL_COUNT 100
Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, NEO_BRG + NEO_KHZ800);
Configure the pin layout. Keep in mind, that the IR receiver only works with interrupt enabled pins .
#define RECV_PIN 2 //IR Reciver
#define BUTTON_PIN 3 //Button: manually switch modes
#define PIXEL_PIN 9 //LED strip data
A quick schema of my used hardware. The pin-configuration of the led.ino matches this picture.
- Arduino-MemoryFree: the free memory function