Arduino Project for controlling LEDs build into my bar using TLC5940 drivers and Touchscreen Interface
- The Bar has 41 beer mugs with each containing 6 RGB-LEDs (controlled by 3 channels). Therefore the colour of each mug can be controlled individually.
- Light-scenes are stored on a SD-Card and are simple textfiles that can be written on a computer.
- A big part of the project is a filebrowser API that is use by the GUI library to graphically choose a Light-scene from the SD-Card.
This project need a special hardware setup to work:
- The display used is a 5" TFT with 480x272 pixels using a SSD1963 controller. Generally any display compatible with the UTFT library can be used --> If a different display resolution is used the ledTFT-Library must be modified to fit the screen size
- A Capacitive touch panel with a GLS1680 controller. If a resistive touch panel is used (recommended! The GLS1680 touch controller makes lot of problems) you can add e.g. the URTouch library. Again the ledTFT-Library.
- A SD-Card containing the Folder Light-Scenes is connected to the Arduino via SPI.
- 8 TLC5940 controllers daisy-chained connected to the Arduino according to the setup found on the library GH-Page.
To make this project work the software has to be adapted to the used hardware:
- Using a different screen resolution: Most of the ledTFT-Library must be modified to fit the screen size
- Using a different touch panel the updateDisplay Function must be modified in ledTFT.c to read the coordinates.
- Add the Folder Light-Scenes to a SD-Card (Formatted in FAT or FAT32 system). Change the SPI-ChipSelect PIN in ledTFT.h for your used CS-Pin
- Modify the number of used TLC controllers in the tlc_config.h. To use a different LED-setup the code in the LEDControl-Library msut be hugly modified.
Used Third-party Libraries:
-
Touch driver GSL1680: https://github.com/ESTBLC/GSL1680
-
Filesystem for SD card: https://github.com/greiman/SdFat
-
TLC5950 LED Driver: https://github.com/PaulStoffregen/Tlc5940
-
TFT Control: http://www.rinkydinkelectronics.com/library.php?id=51
- Linus Reitmayr
This project is licensed under the MIT License - see the LICENSE.md file for details

