Tune-up a Ikea Expedit shelve with a LED Strip

IKEA ExpeditI was tired of looking into my plain, dull, boring, tedious, monstrous Ikea Expedit shelve in the living room. And, it seems that the new trend at the independent furniture shops (ok, the Pakistani at Lisbon downtown) is to apply LED strips to all kind of furnishings: beds, tables, chairs, stools, sinks, whatever… and boom!!! Eureka, the aha moment, why not leave the bed and table alone, but cheer up my shelve! Also it made sense in a functional way, since at mid-light room I can barely see the stuff that i get from the inner guts of it.

Next day, was shopping day for LED strips in Ebay the global marketplace. Now bear with me, the shopping process is crucial for a good development of your project. There are several decisions you must take. First, the length of strip that you need, for the full IKEA Expedit we are talking about 1.47cm * 5 = 7.35m (and give yourself some cut margin and error margin). Next the LED type, the protection rating and color. For the LED types there are two mainstream options 3528 and 5050. They get their numbers because the dimensions of the chip, 3.5mm * 2.8mm for the 3528 and 5.0mm x 5.0mm for the 5050. So the 5050 is bigger than the 3528, are substantially brighter, with an average of 18 lumen Vs 6 lumen, but also more power angry 0.24W vs .08W. So, for decorative lighting your best bet should be the 3528 and for functional lighting or bright environments you should go for the 5050. Also, take care of the number of LEDs per meter, it should be clear now that a meter of strip with 60 3528s should output the same amount of light that of a meter with 20 5050s (but the first will look much more smooth)… now for the protection rating, you can check the full spec here, but i will break it down for you. The first number is for solid particle resistance and the second for the liquid protection. The common IP20, stands for 2 (protection against fingers or similar?!) and 0 (not protected against water), other common available IP in LEDS strips is IP65 (6 – No ingress of dust; complete protection against contact and 5 – Water projected by a nozzle (6.3 mm) against enclosure from any direction shall have no harmful effects). Usually higher the IP, higher the cost of the strip. For me, with 2 young, active and curious cats in the house, the choice was obvious (IP65)… finally, the color is mainly a question of personal taste, but if you want to change the color on the fly, the way to go is a RGB 5050 LEDs strip as each chip has the 3 main colors that combine into the color that you want (or some psychedelic effects).

This guide is for the 4×4 IKEA Expedit shelve, but is easy adaptable to other piece of furniture.

You will start with:
– 2 rolls of 3028 IP65 warm white
– a transformer (more on this later)
– wire for the connections, don’t worry too much about the thickness as the flow of power will be limited, but worry to get a flexible wire, the flexible the better
– electric block connector (for parallel connections, if series you don’t need this but a little more solder..)
– insulation tape
– a virgin IKEA expedit shelve

Tools:
– a multimeter to check continuity
– a soldering iron and some solder
– a wire stripping tool, or a knife or scissor or use or teeth (don’t use the teeth)
– a screwdriver for the electric block connectors
– a X-Acto knife
– a ruler to check out the dimensions is not a bad idea

Other stuff needed:
– a bottle of beer, so when you get thirsty don’t leave the workstation

You start to cut down five 1.47m segments Expedit Suppliesout of the LEDs rolls. The LEDs strips have a scissor mark that repeats itself along the way after some number of LEDs (mine was between each 3 LED). So look for the nearest mark and cut it with precision on the middle. It’s important that you cut cleanly at the middle as will be easer in the soldering step.

Now, you must decide what kind of connection you should do. You can go parallel or series. For parallel you have the advantage of less soldering to do, if one section stops to work the others will continue to, but you will use more wire, block connectors, and it will be a pain to hide the electric circuit if the fitment is in the middle of the room. The series will use less wire, no block connector, it will be easier to hide completely in the back side of the fitment, but much more soldering to do, and if one of the strips go bad (or the connection between) the upstream will also not work.

You should keep in mind a very important detail about LED strips. When you cut a piece in the pre-designated cutting zones, there is a transistor right before the connectors. This transistor will automatically close the circuit for you if there is no upstream continuity. So if you connect in series and connect a 12v transformer (in the right polarity) to the first LED segment it should light up, you don’t need to close the circuit in the other side. If you connect another segment to the first one (again check the polarity, the LEDs strip should have plus and minus markings) it behaves the same, lights up without the need of closing the circuit at the far end.

Expedit Wiring Diagram

Now, for the “funny” stuff, to solder the circuit. With the X-Acto knife remove the protection material (epoxy or silicone) above the solder points. Then with the hot iron melt way the remaining of the protection material. Drop a bit of solder into the solder points, then drop another bit into the end of the stripped wire. Then press and hold the wire against the solder point, and heat it up until both bits of solder melt and fuse. A quick demonstration video:

When it’s all done and fitted, means that is time to calculate the power consumption, and transformer requirements. Each LED uses 0.08W and one meter has 60 LEDs, for the sake of simplicity we will round the 1.47m segments to 1.5m. So each segment has 90 LEDs, 0,08W * 90 = 7.2W per segment. At 12v it gives (7.2 / 12) 0.6amps per segment. For 5 strips in parallel, the total output is 3amps.

To be safe the transformer should output 12v and 3amps (if it’s rated in Watts should be 36W). If you use a less powerfull transformer (let’s say a 1 amp) it can heat up and meltdown. If you feed the circuit with less voltage it will the lights will dim, and as you step down the voltage, eventually it will not light at all. The cost per hour of usage at full throttle is pretty cheap, as 36W/h at 0.20 cents the Kw/h sums at a cost of 0.0072 cents hour….

If all goes well the final result should be this:

expedit_leds

Exercice program – 12 weeks

After a major disruption in life… I’m starting again to take care of my body, some jogging (pain free!!), some gym, and a bit of open water swimming and surfing.  I think our body is one of our greatest treasures and should be well cared for. Besides, the physical is the the first pillar of a solid human foundation. The four pillars are: physical, mental, emotional and spiritual. As they are all chained together, when you work and improve one, it has a positive impact on the others too.
So now is the perfect opportunity to set a goal, and my goal is to keep the current weight (about 75Kgs) but to lower my body fat percentage. By the scientific method of seeing pictures of bodies with different percentages and comparing with myself, i can’t be far from the 25% percent. So the goal is around 15% body fat percentage.

The Exercise Program

Disclaimer, this is my own program. I spent some time experimenting what works for me and what doesn’t. Also, it addresses lots of personal variables, as time, more vs less crowded equipments at the gym, available items, hate of abdominal crunches, etc… you can take some ideas, but beware I’m not in any way an exercise expert, so don’t do anything that can hurt your health.

Weekly Program: 4 sessions (running, swimming, 2 times at gym). The order is irrelevant, and can change from week to week.

1 – A 10k, easy sub 60m run. But with some sprints to put the heart in high revs to burn off the accumulated particulate (actually the purpose of the sprints is to become more efficient runner by working above the lactate threshold). This is the primary cardio workout.

2 – A 45m swimming session in the pool. Just to swim non-stop at an easy pace. This is the main stretch, balance and relaxing training session. It also activates the muscles that can be left behind in the gym.

3 – A couple sessions in the gym. Maximum 50m each session.

Day 1
5m warmup: easy rowing/ciclyng and joints rotations

Shoulders (light weight as warmup follow-up)
Lateral Raise DB – 2×10 (lateral deltoid)
Alternating Front Raise DB – 2×10 (anterior deltoid)

Chest
Bench Press 3 sets of 12,10 and 8
Incline bench press, 3 sets of 12,10 and 8
Flies, 3 sets of 12,10,8 reps or
Dips, 3×10

Triceps
CGBP EZBar 4×10
French Press 4×10

ABS
Myotatic Crunch and
Vacuuming
Superset of 3×10

Day 2
5m warmup: easy rowing/ciclyng and joints rotations

Shoulders (light weight as warmup follow-up)
Lateral Raise DB – 2×10 (lateral deltoid)
Rear Lateral Raise DB – 2×10 (posterior deltoid)

Back
Cable pulldown 12,10,8
Pull-ups 15 (in many sets has needed)
Seated rows 12,10,8
Deadlifts 3×10

Biceps
Stand Up or Seated Curl 4×10
EZ Bar Curl 4×10 or
Preacher BB Curl 4×10
Hammer DB Curl 3×10

ABS
Myotatic Crunch and
Vacuuming
Superset of 3×10

Actually the hidden and true goal, is to stick with this the 12 weeks. To have the strength and discipline to follow this calendar (even in the no good mood days, brain off days, rainy days, etc). In every way, with or without visible results, it will build a stronger version of myself by doing it. So help me God.

W1: R G2 G1 S24
W2: R G2 G1 S40
W3: R G2 G1 S10 (Xmas Week)
W4: G2 R G1 S26 (New Year Week)
W5: G2 G1 R S30
W6: G2 G1 S30 R
W7: G2 S24 G1
W8:

I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough without ever having felt sorry for itself.

David Herbert Lawrence

Football pearls

Football (the sport that is actually played with the foot and a ball, not the boring stuff from the States that is played with hands and a gourd), and specially football players and managers are such a funny bunch 🙂 Here are some of the best comic pearls (true gems).

Bruma gives some kind of funny interview

Paulo Fonseca talks about a match with Eintracht Frankfurt

A true Mantorras classic

Bruno Carvalho, russians trónhónhó

Vitor Pereira, arabic press conference (must be something in the tea)

Futre, focused, and the Chinese player

Mourinho papellito

Futre, hilarious auto profile, the arms

Toni kicking ass of the arabians

Toni talking “spanish”

And for sure, much more yet to come.

PHP get a Youtube video duration

To make this work you need to go to Google Developers Console, create a project, enable the YouTube Data API v3, and get a key in authentication key in credentials. This is pretty much the difficult part.

Now the easy part, so easy and keystroke economic to do this in PHP… just a couple of lines, and it’s done:

define("API_KEY", ""); // Fill in your Google API Key
function getYoutubeDurationV3($id) { 
  $json = json_decode(
            file_get_contents('https://www.googleapis.com/youtube/v3/videos'.
                              '?part=contentDetails&d='.$id.'&key='.API_KEY)
          ); 

  $start   = new DateTime('@0');
  $youtube = new DateTime('@0'); 
  $youtube->add(new DateInterval($json->items[0]->contentDetails->duration));
    
  return $youtube->getTimestamp() - $start->getTimestamp();
}

Continue reading “PHP get a Youtube video duration”

How to calculate resistors for leds

For the, what resistor should i put in the circuit so my led don’t fry question. There is a very easy way, go to a on-line calculator site like http://ledcalculator.net/, input the values and bazinga you get an instant answer.

But that’s for sissies, the only way a real man does it, is calculating (preferably by head) applying Ohm’s Law:

ohm_law(behold, and bow twice, please)

Current (amps) equals to the proportion between potential difference (volts) and the resistance (ohms). Let’s say for a common red led (voltage is 2volts and current rating is 20mA), and a 9v battery power supply, the math is this:

(9v – 2v) / (20mA/1000A) = x Ohms
7 / 0.02 = 350 Ohms

But with these values in a led calculator, the result is 360 Ohms, what’s wrong with your math? Nothing. This is because of the so called “nearest preferred values resistors”. Resistors are available in a number of standard ranges (being the most common E24) in predefined scale. So you should round up to the next higher value. And from 350 Ohms the preferred resistor value is 360 Ohms.

With the resistance calculation done, you must find the right resistor. Again, there is the sissies method, go to a on-line resistor color code calculator like http://www.electronics2000.co.uk/calc/resistor-code-calculator.php, input the resistance and get the color codes (and vice-versa) or the mens method trough a resistor table:

resistor_table

So, a 360 Ohms resistor is the one in your resistors packs with a Orange (3), Blue (6) and Brown (36 * 10 = 360) band. The last band, that stands for tolerance is probably gold (with my very little experience in electronics never saw a silver resistor).

Disclaimer: remember that (as always) i decline every liability if you burn your LEDs, your head or the whole world because of this post.