Difference between revisions of "LED Retrofit"

From Fixme.ch
Jump to: navigation, search
 
(28 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Ongoing_Projects]]
+
[[Category:Closed_Projects]]
After having recently bought in a RGB LED Strip into the hackerspace, I received a lot of positive feedback about it. 2 people even gave me 20 CHF each to buy more LED Strips so that they can be used around the hackerspace. In particular, around the perimeter of the room next to the ceiling, where there is a little ledge. Eventually, they could be added under tables, on shelves, and so on to improve lighting within the HS. Here are 2 videos and a pic I took of how they look like:
+
<gallery>
+
File:Beta-LED-Strips-at-HS.JPG|LED Strip above the solder station
+
File:LED-Strips-from-close-up.mp4|Video of the strip from afar
+
File:LED-Strips-Up-Close.mp4|Video of the strip from up close
+
</gallery>
+
  
I have also uploaded a video on [http://www.youtube.com/watch?v=Ao-ws8F6UJA youtube] where you can see me looking at them up close. Please note the many solder points, indicating that the factory that made these strips either used a poor manufacturing process, or simply took rejected strips, chopped them up into the pieces that worked, and soldered them together to sell at a lower price.
+
{{warning|'''Please note that this page has been depreciated.''' See [[LED_Lighting]]}}
  
 
== What are LED Strips? ==
 
== What are LED Strips? ==
Here is an exhaustive explanation and tutorial from [http://www.ladyada.net/products/rgbledstrip/| laydyada]. In essence, there are 3 SMD (Surface Mount Technology) RGB (Red Green Blue) LEDs (Light Emitting Diodes) on a segment with 3 resistors which allow the ~3 v LEDs to be drivven using a 12v power supply. These 'segments' are continuously joined together to form spools 5 meters each. Sometimes you can buy them in smaller bits (1 meter, 50 cm, 1 foot, etc), but sticking to a 5 meter spool is the best.  
+
The idea with the LED Retrofit is to provide the HS with an effective yet sleek lighting solution, by using color-changeable LED strips which are controllable via the network.  
  
== Where to buy? ==
+
Here is an exhaustive explanation and tutorial from [http://www.ladyada.net/products/rgbledstrip/ laydyada]. In essence, there are 3 SMD (Surface Mount Technology) RGB (Red Green Blue) LEDs (Light Emitting Diodes) on a segment with 3 resistors which allow the ~3 v LEDs to be drivven using a 12v power supply. These 'segments' are continuously joined together to form spools 5 meters each. Sometimes you can buy them in smaller bits (1 meter, 50 cm, 1 foot, etc), but sticking to a 5 meter spool is the best.
The dilema I have is that for around ~60$ I can cover the perimeter of the hs with basic 5050 LED RGB Strips from eBay, like the ones that I bought in, however there are several other, attractive options available:
+
==== eBay ====
+
The precise LED Strips that I bought can be found [http://www.ebay.com/itm/120897032000| here]. I am not too happy with the quality, so I may get a refund, or a partial refund in the near future. My biggest concern is that there are way too many solder points leading me to believe that these strips are of crap quality, and won't last the specified 50'000 hours.
+
  
You must understand that there are several types of LED Strips. If you want RGB LEDs, you can either choose 3528, 5050 and 5060 SMD package sizes. The most common one is 5050, and I highly recommend you stick to that. The next variable is LEDs/meter. The ones currently at the hs are [http://www.ebay.com/sch/i.html?_stpos=1234&_sop=15&_fcid=193&gbr=1&_localstpos=1234&_nkw=5050+rgb+5m+30+150+-60+-300+-cathode&_clu=2&rt=nc&LH_BIN=1| thirty LEDs/meter], however I sugest that we buy the [http://www.ebay.com/sch/i.html?_stpos=1234&_sop=15&_fcid=193&gbr=1&_localstpos=1234&_nkw=5050+rgb+5m+60+300+-30+-150+-cathode&_clu=2&rt=nc&LH_BIN=1| six-ty LEDs/meter] kind, so that there is double the brightness.
+
Currently there are 5x5m of [http://www.ebay.com/itm/5m-SMD-5050-RGB-SMD-LED-Flexible-Strips-300-LEDs-Strip-12V-60-LEDs-Meter-/150960156950?pt=US_Car_Lighting&hash=item2325ed3116 5050 RGB LED Strips] @ 60 LEDs/m placed on the ledge just under the ceiling. Each 5 meter segment is individually connected to the Arduino-based controller via repurposed 230v cables. The Arduino is connected to the local network via an ethernet shield, and it controls the LEDs by PWMing a signal to 3 mosfets (1 for each color) which switches the 12vdc from the modded 400w ATX PSU.  
  
There are also various degrees of waterproof-ness available. The basic kind (epoxy) is very bad, does not last long, and starts to yellow very quickly. Especially if it is poorly made. For this, you have to pay approx 5$ extra for the strip on ebay, where as in reality it is nowhere near as expensive. The next kind of coating is epoxy+silicone sleeve. This is better, but still has epoxy. The most expensive kind (although the material price difference is minimal) is silicone coated in a silicone sleeve. This can withstand the toughest conditions, and still look new years from now.  
+
== How to control them?==
 +
You can get the code from git:
 +
<pre>
 +
git clone ssh://gitolite@foo.fixme.ch:1337/led-strip.git
 +
</pre>
  
==== Specialized sites ====
+
Or you can use a basic online interface found [http://led.fixme.ch/rgb here] (accessible only via internal network).
If the website is based anywhere else other than China, don't even bother. The markup is ridiculous (heck, even eBay's markup is pretty big!). If it is in China, avoid, unless the price is very good, meaning that it is either a super-low quality thing, or a fake. Either way, '''avoid'''.
+
  
==== TaoBao ====
+
== How to compile ? ==
Prices are very similar to eBay. Not worth the risk, added shipping cost, and time in my opinion unless buying a lot.  
+
* There is a library problem which need to be adresse, but since then, there's a chroot on foo with the correct settings to compile/upload the code
 +
ssh foo.fixme.ch
 +
sudo su
 +
/root/enter-chroot.sh
 +
cd /root/led-strip/LedStripDriver
 +
make
 +
# Put the USB cable from foo to the leds
 +
make upload
 +
# Remove the USB cable
  
==== Manufacturers ====
+
== Improvements ==
Great for bigger orders, however on smaller ones, the shipping can be prohibitive (most insist on using DHL, adding a ton of shipping fees + unwanted taxes). The prices are really good though. Like 1.45$ a meter good.
+
* '''Figure out a way to fix brightness issue''' I think we should feed each 5m segment from multiple sides, or even split it into smaller pieces (it is suspected that the pcb traces aren't thick enough for the current). Maybe use individual power supplies every couple of meters coupled with their own (more basic) control circuitry that get commands from central Arduino? I suspect that there is a significant voltage loss along the connecting cable because of the low voltage and long distance, using 230v AC could help. We could also experiment in raising the voltage as long as it does not bypass the specified wattage, and that no single LED gets more than its designed voltage. Maybe the mosfets are the wrong kind?
 
+
* '''Better control options''' maybe a nicer web-interface with more options (See [https://fixme.ch/wiki/LED_Retrofit#Uses Uses] below), as well as an android app.
== Plan of Action ==
+
* '''Moar LED strips''' place LED strips in other places, e.g. to replace the crappy CFL in the middle of the room (maybe use [http://www.aliexpress.com/item/Brand-New-5050-5M-LED-300-SMD-Warm-White-Flexible-non-Waterproof-Light-Strip-12V-Free/465436346.html pure white LED strips] instead of RGB ones), electronics bench, inside fridge, foyer, inside thermibel :) ?
Here are the steps which need to be taken in order to upgrade the lighting at the HS:
+
#Decide on type of LED Strip
+
##Get the brighter (60 LEDs/meter) or the cheaper (30 LEDs/meter) strip?
+
##Get the cheaper but lower quality one or the better quality but more expensive one?
+
#Buy 20 meters of LED Strip and wait a couple of weeks for it to get here
+
#Create an Arduino sketch with networking capabilities to control the strips
+
#???
+
#Profit!!!
+
  
 
== Uses ==
 
== Uses ==
 
* Control remotly using a script (netcat)
 
* Control remotly using a script (netcat)
 +
** Web server running on an Arduino board to control the LEDs: http://leds.fixme.ch/rgb
 +
** Little scripts for the current implementation inside the repository
 
* Controled by the music (color, intensity)
 
* Controled by the music (color, intensity)
 
* Special program: Burger time, etc
 
* Special program: Burger time, etc
 +
* Philips ambilight-like for projected videos
 +
* Time dependent light (i.e. automatically dimming)
  
== Suggestions ==
 
==== This time ====
 
====== Iteration 1 ======
 
I would recommend to get these [http://www.ebay.com/itm/5M-16-4FT-300LEDS-60leds-M-5050-SMD-RGB-Flexible-Strip-Lights-DIY-12V-/160768057949?pt=LH_DefaultDomain_0&hash=item256e85e25d#ht_3226wt_1144| 5050 RGB 60 LEDs/meter Strips] instead of the cheaper ones (like the ones that I've got), seeing as the seller has very good feedback, with no real issues concerning his LED Strip selling - I'm sure it's better to pay 15 CHF extra to get double the brightness and good quality strips. If you don't want to waste an extra 8CHF, you can get [http://www.ebay.com/itm/5M-16-4FT-300LEDS-60leds-M-5050-SMD-RGB-Flexible-Strip-Lights-DIY-12V-/160768057949?pt=LH_DefaultDomain_0&hash=item256e85e25d#ht_3226wt_1144| these], but have a look at the guy's reputation. If you guys insist on staying with the original plan, we can get [http://www.ebay.com/itm/5M-RGB-5050-SMD-150leds-30leds-M-No-Waterproof-Flexible-LED-Light-Strips-DIY-Car-/160748617598?pt=US_String_Lights_Fairy_Lights&hash=item256d5d3f7e#ht_2935wt_1144| these ones] then.
 
  
We will also need a 400w power supply (or multiple smaller ones), some serious mosfets, optocouplers (do we?), an Arduino, network interface, a [user:gcmalloc], and a bunch of various bits 'n pieces. For the power supply I suggest we get 2 185-200w constant current ones ('''''this is a must''''' if we want to control the strips easily), or something along the lines. I'm sure we'll find something. Plus, we probably won't be using all the power at once, unless we're outputting white at max power (that would be equivalent to the power output of a 60w incandescent lightbulb every meter), so I guess a power supply of about 350w total will do.
+
= Photos =
 +
<gallery>
 +
File:Beta-LED-Strips-at-HS.JPG|LED Strip above the solder station
 +
File:LED-Strips-from-close-up.mp4|Video of the strip from afar
 +
File:LED-Strips-Up-Close.mp4|Video of the strip from up close
 +
File:LED-night-fixme.png|LEDs strip installed and visible from the outside
 +
File:LED_Retrofit_blue.jpg|Hackerspace LED Retrofit in blue
 +
File:LED-strip-controller-tinkering.jpg|Tinkering with the setup
 +
File:leds-controler.jpg|Housing for the Arduino and power supply
 +
File:Sofa-led.jpg|LEDs above sofa area (24v 3528 240 LED/m strips)
 +
File:Table-led.jpg|Bright LEDs above table area (same as sofa)
  
'''Currently, I have 60 CHF out of the 75 CHF required to get the good LED Strips.''' We will also need to find a constant current power supply.
+
File:HS-trigger-and-LED-control.png|Interface for controlling the LEDs and HS status
 +
 
 +
</gallery>
  
====== Iteration 2 ======
+
== Links ==
''Got a better idea?
+
* [https://learn.sparkfun.com/tutorials/building-large-led-installations Sparkfun's guide to large LED installations]
Please share, I'm eager to hear other people's opinions!''
+
* [http://nodes.nurdspace.nl/ DMX controlled LEDs], installation/setup [[NurdNodes]]
 +
* [http://www.ladyada.net/products/rgbledstrip/ Laydyada's tutorial and background info]
 +
* [http://wiki.muc.ccc.de/moodlamp_30 CCC's Moodlamp (DE)]
 +
* [http://electronics.stackexchange.com/questions/19413/why-doesnt-my-5050-led-strip-draw-as-much-power-as-i-expect Why doesn't my 5050 led strip draw as much power as I expect?]
 +
* [http://www.ebay.com/itm/5m-SMD-5050-RGB-SMD-LED-Flexible-Strips-300-LEDs-Strip-12V-60-LEDs-Meter-/150960156950?pt=US_Car_Lighting&hash=item2325ed3116 The LED strips that were used]
 +
* [https://tindie.com/shops/ch00ftech/qr-clock-1/ QR LED Clock]
  
==== Next time ====
+
Control
Put LEDs under the tables, instead of the lightbulbs, and even on the shelves!
+
* [http://leds.fixme.ch/rgb Web control interface]
 +
* ssh://gitolite@foo.fixme.ch:1337/led-strip.git Git repo
  
 
= Project Leader =
 
= Project Leader =
Line 67: Line 79:
 
* [[User:Rorist|Rorist]]
 
* [[User:Rorist|Rorist]]
 
* [[User:gcmalloc|gcmalloc]]
 
* [[User:gcmalloc|gcmalloc]]
 +
* [[User:Francois|Francois]]
 +
* [[User:Freestorm|Freestorm]]

Latest revision as of 15:03, 14 November 2019


Warning Warning: Please note that this page has been depreciated. See LED_Lighting


What are LED Strips?

The idea with the LED Retrofit is to provide the HS with an effective yet sleek lighting solution, by using color-changeable LED strips which are controllable via the network.

Here is an exhaustive explanation and tutorial from laydyada. In essence, there are 3 SMD (Surface Mount Technology) RGB (Red Green Blue) LEDs (Light Emitting Diodes) on a segment with 3 resistors which allow the ~3 v LEDs to be drivven using a 12v power supply. These 'segments' are continuously joined together to form spools 5 meters each. Sometimes you can buy them in smaller bits (1 meter, 50 cm, 1 foot, etc), but sticking to a 5 meter spool is the best.

Currently there are 5x5m of 5050 RGB LED Strips @ 60 LEDs/m placed on the ledge just under the ceiling. Each 5 meter segment is individually connected to the Arduino-based controller via repurposed 230v cables. The Arduino is connected to the local network via an ethernet shield, and it controls the LEDs by PWMing a signal to 3 mosfets (1 for each color) which switches the 12vdc from the modded 400w ATX PSU.

How to control them?

You can get the code from git:

git clone ssh://gitolite@foo.fixme.ch:1337/led-strip.git

Or you can use a basic online interface found here (accessible only via internal network).

How to compile ?

  • There is a library problem which need to be adresse, but since then, there's a chroot on foo with the correct settings to compile/upload the code
ssh foo.fixme.ch
sudo su
/root/enter-chroot.sh
cd /root/led-strip/LedStripDriver
make
# Put the USB cable from foo to the leds
make upload
# Remove the USB cable

Improvements

  • Figure out a way to fix brightness issue I think we should feed each 5m segment from multiple sides, or even split it into smaller pieces (it is suspected that the pcb traces aren't thick enough for the current). Maybe use individual power supplies every couple of meters coupled with their own (more basic) control circuitry that get commands from central Arduino? I suspect that there is a significant voltage loss along the connecting cable because of the low voltage and long distance, using 230v AC could help. We could also experiment in raising the voltage as long as it does not bypass the specified wattage, and that no single LED gets more than its designed voltage. Maybe the mosfets are the wrong kind?
  • Better control options maybe a nicer web-interface with more options (See Uses below), as well as an android app.
  • Moar LED strips place LED strips in other places, e.g. to replace the crappy CFL in the middle of the room (maybe use pure white LED strips instead of RGB ones), electronics bench, inside fridge, foyer, inside thermibel :) ?

Uses

  • Control remotly using a script (netcat)
    • Web server running on an Arduino board to control the LEDs: http://leds.fixme.ch/rgb
    • Little scripts for the current implementation inside the repository
  • Controled by the music (color, intensity)
  • Special program: Burger time, etc
  • Philips ambilight-like for projected videos
  • Time dependent light (i.e. automatically dimming)


Photos

Links

Control

Project Leader

Participants