Tag Archives: RGB

Christmas Lights 2017

Overview

This year (2017), I decided to put up some Christmas lights at home, they consist of basic shop-bought ones and also home made programmable ones.

There will be quite a few different parts to this projects so i’ll separate them into individual posts. Click the links below to access them…

The Pixel Lighting Controllers

Power Supply and Distribution

LED Pixel Grid

LED Pixel Spinner

Pixel Spinner

As part of my Christmas light display i’m going to build a couple of pixel spinners.

I drew up this very rough diagram so i had an idea of what i was doing.

I know, it’s poor. I do plan on getting to grips with some cad software at some point to make nice drawings. 

The ‘sticks’ are going to be made of 20mm PVC Electrical Conduit pipe, it’s reasonably priced and easy to work with. The center piece i designed and printed with my 3D printer…

It took a few attempts to get the hole sizing correct for the tubing to fit nice and snug, but it worked out well in the end…

As you can see in the image above, i’ve already started drilling the holes for the Pixels to sit in. To do this i built a little jig, this gives me a much better chance of getting the holes somewhere near the right place. 

Once i had drilled all the holes i cut the LED Pixel string into the correct lengths and pushed them into the holes. You have to be quite forceful to get some of them to fit in. It also helps to shave down some of the little rubber tabs slightly.

I then had to connect them all up – this was a slow process that involved soldering lots of connections. Every connection was covered in adhesive lined heat shrink tubing to make sure they’re waterproof. You can see the adhesive oozing out the end of the tubing. For the cable i used some ‘6 core alarm cable’ as i had an old reel kicking around. Needing only three cores, i doubled them up. I covered the whole lot with some ‘self-alignment tape’ to add another layer of waterproofing.

I wired it up for a test and it worked great other than a couple of the LEDs not working on a certain colour. They do work correctly if you put pressure on them in a certain direction, so one of the legs on the LED must have become disconnected. Probably whilst i was pushing them into the tube – something to remember for next time.

I then Attached the controller module and a loop so i could hang it on the wall,.

Xmas Lights Pixel Grid

Outside my home, facing the main road i have some railings, i decided to attach LED pixels to them to form a ‘pixel grid’. Think of it as an extremely low resolution LED TV. It should allow for some fancy patterns and even scrolling text.

So as usual the first thing to do is draft up some sort of design, so i came up with this..

Pixel Grid Design

So the total Pixel dimensions is 13 High x 48 Wide Giving a total of 624 Pixels.

Each pixel requires 3 data ‘channels’ (Red,Green,Blue) meaning a total of 1872 Data channels are needed. As the maximum limit of the ESPixel controllers is 512, I’ve divided the grid into 4, meaning each controller is configured for 156 Pixels (468 Channels).

The next step was to figure out how to power the LEDs and more importantly how to overcome the Voltage drop along the cables. As the strings are only 5V voltage drop is a big issue. I didn’t do any fancy calculations at this point. It was a simple case of ‘inject’ wherever reasonably possible. This is what you can see in the bottom right of the drawing. ‘Start’ is where the controller is connected, and the ‘pwr’s are the parts of the string that are also connected to the 5V supply.

Once i had it all designed, it was a simple case of cutting the strings up and soldering them all together. I had to add lengths of wire to allow them to reach from one column to another, and also add the extra wire in to ‘inject’ the power. All the connections were covered in adhesive lined heat shrink tubing to try and keep waterproof. This was a very boring process that took many hours.

 

After finishing that and giving them a test, the next job was to actually fit them all to the railings. This was another very tedious job that took many hours. Each Pixel is held on with two cable ties giving a total of 1248 cables ties that had to be fitted and trimmed.

If i do this again next year i will defiantly be making a some sort of bracket system or some other simple quick way to attach them. I got there eventually though, and i’m pretty impressed with how it turned out.

Xmas Lights Power Supply And Distribution

The LED Pixel lights i’ve put up require either 5V or 12V DC at reasonable high currents. To power them i’m using a PC ATX Power supply i got cheap of Ebay. It has a good power output along with built in overload / short circuit protection.

As we are dealing with small voltages, voltage drop along the cables is a concern. So i’m going to put the power supply as close to the lights as possible which will be outside. This also means i can run one small mains flex through the window, instead of trying to fit multiple thicker cables through.

To keep it protected from the elements the power supply is fixed an a generic IP rated enclosure with a bit of silicone. Whilst it has no airflow in the box, i won’t be using it at it’s full rated wattage, plus it’s very cold outside at the moment. Worst case scenario it will just shut its self of if it does get to warm. 

As you can see the box was fitted on my railings next to another. Mains 230v enters on the left and the low voltage DC comes out on the right, into another box. The box on the right is where the Pixel Grid and Pixel Star will be wired into. This keeps the mains nicely separated.

The cable between the two boxes is 4mm that i got from some rubbish jump leads. The cable i used to connect the different elements is 2.5mm Speaker Cable from Ebay. Any thicker cable than this would be allot more expensive and also a struggle to fit through cable glands and into crimps.

Each 1/4 of the Pixel Grid had it’s own 2.5mm supply cable from the power supply.

I 3D Printed junction boxes for making connections in, I found this nice design online and edited it to include another variable to fit a seal, you can find my version here.

I originally tried using an elastic band as a seal but in the end ordered some ‘rubber cord’ from Ebay that does the job well. To test it out i printed a box without holes and then submersed it in shallow water for half hour.

Upon opening the lid i was impressed to see just one tiny drop of water in the corner as you can see above. This means it should be fine when outside in a little rain.

To connect the cables within these junction boxes i used ‘wire nuts’ something that i believe is quite common in the states but not really seen here in the UK. They’re perfect for this as they’re quick and easy whilst still making a good reliable connection. They’re also reusable which is ideal in this temporary situation.

Despite running multiple cables, i still had an issue with the voltage dropping to low and the controllers when all the lights were set to white. This would freeze the micro controller meaning you’d have to reset the power supply to get them going again. As a test, i ran a separate power cable to the controllers on two of the 1/4s and it seemed to solve the issue – something to remember for next year.

I also had the same issue with the Pixel Spinner, to get around it on that one, i changed the supply voltage over to 12V and then used this 12v-5v step down regulator just before the lights.

Whilst advertised as waterproof when i purchased it from Ebay, it clearly wasn’t, so i wrapped it in some Self Amalgamating Waterproof Tape, this should hopefully do the job for a few weeks.

MySensors RGB Led Strip Controller

I’m a big fan of the RGB LED strips that are widely available online for very cheap, so i made a controller to wireless connect them the the rest of the home automation system.

The controller uses and Arduino Pro Mini and A NRF24l01 Transceiver module to communicate with the MySensors Gateway, i’ve used a simple but awesome PCB Designed by user Sundberg84 and modified it to suit my application. This saves allot of time soldering connections from the radio to the Arduino. I actually bought 10 of these boards as i know they will come in handy.

I couldn’t find any good examples of code for this, which i thought was surprising, so i ended up looking at a few different examples and piecing things together to get the desired result. The Node receives three numbers separated by a comma in the range of 0 – 100, in the order of RED,GREEN,BLUE. The Arduino then takes these numbers and fades the LEDs.

As these will be visible in some places around my home, i made a reasonable looking label for them, including space for writing helpful information. I also created a little logo to give it that little more professional look.

At the time of posting this, the code is very rough. It’s not annotated well, it’s got unnecessary bits and has a couple of bugs that need sorting. Hopefully i’ll get round to fixing it up soon. But in the mean time, is does work.

You can download the code here: MySensorsRGBWithOpenHab V1.1