Christmas Lights Controller

https://github.com/tinkersprojects/RGB_LEDhttps://github.com/tinkersprojects/RGB_LEDhttps://github.com/tinkersprojects/RGB_LED

This project was more of a test to see if I can get some Christmas lights working with full PWM control. whiles designing the circuit/PCB, I added some extra components to allow this project to have more functions and controls. This lighting control system could be used for an event coming up in the next year (2020).

Powering

The system is powered by a 24V AC power supply. this power supply powers the controller and the lights. From some experimentation, the LEDs are brighter if the AC power is used but looks jittery. Knowing that the LED will not light up when the voltage is negative (because its a diode) and does not gets powered. A full-bridge rectifier was used to invert the negative power into positive power. This removes most of the jittery from the light from the LED.

No capacitors were added after the full-bridge rectifier because the LEDs will be powered with this full-bridge rectified AC power. To power the microcontrollers, a diode was used to separate the full-bridge rectified AC power from the microcontrollers DC power. The microcontrollers DC power has large capacitors to rectify the AC into DC power.

Lighting

The LEDs on the Christmas lights strings use PWM to fade the light. The RGB_LED Library (found here) was used to control the fading within the Arduino program for the microcontroller. The PWM signal from the microcontroller switches a set of BJTs and power Mosfets to power the LEDs.

Microcontroller

This system can be controlled from 1 of 3 different microcontrollers, ESP8266, ATMEGA328P and ATTINY13. All these controllers are used for different applications and cost different amounts to install onto the PCB (including parts cost). The ATMEGA328P is the default that can be used for almost any application. The ATTINY13 offers a lower cost but cannot do perform like the ATMEGA328P. The ESP8266 can do what the ATMEGA328P can do but with the addition of WiFi.

Other functions

WiFi and DMX can be installed to increase control over the lighting. The WiFi can only be used with the ESP8266 and the DMX can only be used with the ATMEGA328P

Code for Project

GNU General Public License v3.0

#include <RGB_LED.h>

RGB_LED LED(9,10,11);

void setup() 
{
  LED.setFunction(Fade);
}

void loop() 
{
   LED.run();
}

Code for Project

GNU General Public License v3.0

#include <RGB_LED.h>

RGB_LED LED(9,10,11);

void setup() 
{
  LED.setFunction(Fade);
}

void loop() 
{
   LED.run();
}

Code for Project

GNU General Public License v3.0

#include <RGB_LED.h>

RGB_LED LED(9,10,11);

void setup() 
{
  LED.setFunction(Fade);
}

void loop() 
{
   LED.run();
}

Related Projects

DMX Light

DMX Light

For years I have been looking into DMX controllers, DMX lights and MIDI controllers to see how they work and how I could make some lights/controllers my self. I have made a number of DMX controllers that sends the DMX signal to the lights but I have not made a DMX light before. This light is the first DMX light that I have made. The controller is the PLEX controllerwhich allows easy access to …
Read more


RGB_LED Library

RGB_LED Library

RGB LEDs are used everywhere, in many different products and devices. This Arduino library is to the control RGB LED's colour and fading between colours. Almost every setting can be controlled through this library to control the RGB LEDs. The library contains preset colours and functions to make it easier to construct your RGB LED project. The library can be found: …
Read more


DMX Controller Mk2

DMX Controller Mk2

This DMX controller to made to control stage/party lights through the DMX signal. This DMX signal is widely used for stage lighting systems at festival and clubs. This is the second DMX controller that I have made but works differently from the first. The First controller, 8 address in a row are selected that can be changed. 1 byte can be changed per fader. Most values in the bit steam don't …
Read more


DMX Controller

DMX Controller

This DMX controller to made to control stage/party lights through the DMX signal. This DMX signal is widely used for stage lighting systems at festival and clubs. I have some lights that I take to parties that i would want to have more control over, thankfully they use the DMX interface to control them. For a while I have been wanting to make a DMX controller to control the lights, smoke …
Read more


Latest Projects

Popular Projects