Skip to content

A led controller with physical knobs and buttons to controls ARGB led strips using Arduino.

License

Notifications You must be signed in to change notification settings

stef011/argb-led-car-controller

Repository files navigation

ARGB Led Car Controller

This is a simple controller for an addressable RGB LED strip. It uses an Arduino board, at least one button and a few potentiometers to control the color of the LED strip. This can be useful if you want to have a controller for addressable RGB LED strips in your car, but don't want to spend a lot of money on a controller with a lot of features you don't need like WiFi or Bluetooth.

Controller prototype The prototype of this controller.

Features

  • Cycle through the different pre-programmed effects with a button
  • Control the led strip with few potentiometers, for now, you can control:
    • Brightness
    • Color
    • Speed of the effect
    • A miscellaneous value that can be used to control the effect in different ways

How to use

Clone this repository

git clone https://github.com/stef011/argb-led-car-controller.git

Open the project in your favorite IDE, I use PlatformIO with Visual Studio Code.

You'll need to setup few things before uploading the code on your arduino board:

 Parameter File  Description
LED_PIN main.cpp The pin of the led strip
LED_COUNT main.cpp The number of leds in the led strip
MAX_BRIGHTNESS main.cpp The maximum brightness of the led strip
MAX_CURRENT LEDStrip.h The maximum current the ledStrip is allowed to draw
POT1_PIN Parameters.h Pin of the Brightness potentiometer
POT2_PIN Parameters.h Pin of the Color potentiometer
POT3_PIN Parameters.h Pin of the Speed or secondary color, saturation or fade speed potentiometer
POT4_PIN Parameters.h Pin of the effect speed or length potentiometer
BUTTON_PREV_PIN Controller.h The pin of the "previous" button
BUTTON_NEXT_PIN Controller.h The pin of the "next" button
LED_TYPE LEDStrip.h The type of the leds you're using
COLOR_ORDER LEDStrip.h The color order of the leds you're using

If you want to change the type of Leds you're using, you'll need to change the LED_TYPE parameter in the LEDStrip.h file.

Some types of leds have a different order of the RGB values, for instance the WS2812B leds have the order GRB, so you'll need to change the COLOR_ORDER parameter in the LEDStrip.h file.

Example wiring with Arduino Micro Pro

Wiring

Note: The wiring diagram is for the Arduino Micro Pro, but you can use any Arduino board.

Warning: If you have some weird behavior with the led strip and you are using a long cable for the data pin, please add a 220Ω resistor between the data pin on the arduino and the led strip. [Some explanations](https://arduino.stackexchange.com/a/78266/57443)

Contributing

Please check the Contribution guide file for more information.

Disclaimer

This is a work in progress, so it may not work as expected. If you find any bugs, please open an issue. This software is licensed under the MIT License, so you can use it for whatever you want. The software is provided as is, without any warranty of any kind.

About

A led controller with physical knobs and buttons to controls ARGB led strips using Arduino.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published