LED Stair light project

Soldato
Joined
28 Sep 2004
Posts
3,128
Location
Devon, UK
Thought I'd make a thread on my current stair light project, it's my first time messing about with an arduino and coding for it. Not sure if this is the right part of the forum? It seemed most suitable!

My aim is to make digital LED Stair lights which are controlled from 2 PIR sensors and a lux meter. The led lights are a digital 5m strip which are individually addressable (you can turn each one on and change its colour separate from the rest) PIR Sensor at the bottom of the stairs and one at the top, depending on where you are and which sensor is triggered it lights up one by one in the way in which you are walking.

I started really simple and have kept adding more and more things, now it's going to have a potentiometer which can change the colour of the leds.

I've got all the bits together and been playing around with some code (pulling my hair out, re reading it multiple times) so I'll soon be building it up and trying it out properly.


WS2801 5m Led Lights

806%20Small_zpsjjthdix5.jpg


805%20Small_zpsxiengdub.jpg



5v 10amp Power Supply

810%20Small_zpsubnm4slu.jpg


811%20Small_zpsg4kyc7ez.jpg



150mm x 76mm project box

807%20Small_zps5hdq25tu.jpg


808%20Small_zpse2xp4qru.jpg



Female Mini DIN Connectors

813%20Small_zpsh1ddt4cb.jpg



Male Mini DIN Connectors

784%20Small_zps51op22fe.jpg



PIR Sensors

793%20Small_zpsruyna8p9.jpg


794%20Small_zpsy9rwv55v.jpg



BH1750 Light Sensor

791%20Small_zpsbxj2ojai.jpg



Male and Female DC Connectors

785%20Small_zpsgxr5pbma.jpg



10K Potentiometers

786%20Small_zpsklvo61gn.jpg



10m 4-Core Small Cable for the PIR Sensors

788%20Small_zpsdh9i12bf.jpg



3 Pin Header Connectors

792%20Small_zpszf3lgvgt.jpg



Prototype housings for the PIR Sensors, need to check and see which one suits better before re-printing them and acetone smoothing.

795%20Small_zps5gfma9zc.jpg


797%20Small_zpsekcjygw1.jpg


799%20Small_zpsnsxe2in2.jpg


801%20Small_zpsllqhxkxv.jpg



And finally the Arduino UNO

802%20Small_zpsrzj6hxd5.jpg


803%20Small_zpsmemjolzv.jpg
 
I had a play with LED strips like these back in Nov when putting up the Xmas window display at my wife's work.

Suggested something like this to her and i need to get another Raspi + my first Arduino at some point to play with. Will be following this with interest :)

Can always post the code here or in the coding section, some of us may be able to help :)
 
I had a play with LED strips like these back in Nov when putting up the Xmas window display at my wife's work.

Suggested something like this to her and i need to get another Raspi + my first Arduino at some point to play with. Will be following this with interest :)

Can always post the code here or in the coding section, some of us may be able to help :)

I'd always messed about with my PI before but honestly the arduino is so much easier and more fun. No operating system to stop working or freeze. Just simply a script which loops it's perfect for something like this.

I do have some issues with my code. It does work but I think it could be quite abit shorter. I'm doubling and tripling up some things which I don't think I need to.

My bathroom is lit with these strips, and my built in wardrobes.

Have you got the digital led strip or the analog version?
 
Another use for these strips is under cabinet lighting in the kitchen, i used these strips for all of mine plus kick plate lighting too (its cheap so why not :)) It looks far better than traditional spot under cabinet lights as it provides a nice continuous light along the surface.
 
Done a few more bits to this today, soldering some of the connectors mainly. Next up is mounting some of the connectors to the project box and mounting the arduino + vero board.

Mini Din Female connectors soldered ready for the PIR sensors

821%20Small_zpsxkzlvgp2.jpg


822%20Small_zpsv8lfj7v5.jpg



Male soldered and made for the PIR Sensor cable itself

823%20Small_zps6wxidrni.jpg



Potentiometer wired up ready to fit

825%20Small_zps0zcsgqdl.jpg



BH1750 Light sensor wired also ready to fit

826%20Small_zpsl9lycrip.jpg
 
A[L]C;27530376 said:
Subscribed. Decided to go overkill and start a fun project to build a bivvy box with rgb led strip, pir and other bits. Some vids of what I'm trying to achieve on my thread here...http://forums.overclockers.co.uk/showthread.php?t=18647696


Edit...btw where did you get the holding arms with the crocodile clips?

Search for "Helping Hands" - ebay amongst others have them :)
 
A[L]C;27530376 said:
Subscribed. Decided to go overkill and start a fun project to build a bivvy box with rgb led strip, pir and other bits. Some vids of what I'm trying to achieve on my thread here...http://forums.overclockers.co.uk/showthread.php?t=18647696


Edit...btw where did you get the holding arms with the crocodile clips?

That project looks cool :) I stole the arms thing from the missus, she uses it for her jewelery.
 
Did any of you replace the power supply that came with the strip?

I've seen them listed on ebay and discussed here and it seems like the PSU could be a weakness.
 
A[L]C;27530774 said:
Cheers will look out for them. Do you notice any damage from the crocodile clips?

No they aren't strong enough to damage wires, just hold them in place.


Did any of you replace the power supply that came with the strip?

I've seen them listed on ebay and discussed here and it seems like the PSU could be a weakness.

Mine, being the digital version, didn't come with a PSU. They also run on 5v so it was difficult trying to find a 10amp 5v PSU.
 
looks good mate. the only suggestions I have is to use a simple LDR over the lux meter (set up as a voltage divider, you would only need 1x analog input instead of SPI) and to use a IR obstacle avoidance type sensors over the PIR's. I would use a rotary encoder over the POT also. Been considering going down these lines for a little while now myself :)

edit... and I'd also recommend using a clone Nano or Pro mini (around £2-3 on the auction site) and saving the Uno for breadboard / prototyping :)
 
Last edited:
Back
Top Bottom