Sunday, June 9, 2013

Hacking $10 Jansjo Ikea LED lamp


Needed: Lamp for bed headboard used for night time reading.

I wanted a light that would be bright, dim and not be hot.The Jansjo looked good except the color, stand and switch.

Time to starting hacking.




First I changed the color from White to brown to match the color of the wooden head board. I was able to pop the lens out (not easy without leaving minor marks on edges) of the lamp head in order to full cover with spray paint. Easiest way was to not attach the based and just hang the light by the cord. With the lens out I was able to mask off the LED and reflector.

Next I needed a new based that would attache to the head board. The plastic bracket is made from scraps that were glued and sanded. The original design was setup to enable it to swing out of the way, however the hooks used weren't big enough. It is now screwed directly into the headboard. The back of the headboard was not finished and not viewable otherwise.

Dimming LEDs is typically done using a PWM method of controlling the power. Found an LED "Dimmer" on Amazon that didn't fit the requirements however looked hackable also.  This $6 dimmer was setup to control 12v at 8amps, however the Jansjo lamp was 4 volts and .75 amps.

The dimmer uses a Microchip PIC micro controller (uC) to generate the PWM control of a power transistor based on the analog voltage referenced from a 10K potentiometer. Most uCs used 5 or 3.3volts, this one was 5v. Tracing the circuit board of surfaced that the positive input was tied to the positive output indicting that the power transistor was switching the negative side for the PWM.

To modify the dimmer to operate at 4v rather than 12v, a jumper wire was added (the white wire in the picture) to by pass the voltage regulator that dropped the expected 12v input to 5v for powering the PIC uC. The dimmer works fine with the 4v input from the Jansjo transfer.

Adding the dimmer also resolved a design defect of the original switch on the Jansjo. The switch wore on quickly with little use. It was simple rocker that didn't always maintain contact so the light would flicker or not turn on fully without pressing very hard on the switch. Putting the dimmer on removed that defective switch.

The case for the dimmer was roomed and replaced with 1" shrink tube. The setup will be located behind the headboard and does not require significant protection. The potentiometer will be extended easier given the connector. I plan to use servo wire and connector to mount the pot within easy reach.

So far no issues after building this for two lights and running for 8 hours. This dimmer/PWM generator has some potential for other uses such as motor control or other types of lights.  Easy to hack.

This light that now meets all of the requirements cost time (off set by learning experience and excuse to build something) less than $20. Nice!

Saturday, June 8, 2013

Roomba 595 added to StempleLABS Robot Collection

This is the iRobot Roomba 595 (Pet Series). Costco has stocked this for a while, and each time shopping I have been tempted to one up. This is $300 less then the latest and greatest at $299.  After spending a bunch of time researching the broken Roomba 770 I had planned on getting one.
After first use downstairs (no virtual walls), it returned to the dock sooner than I expected.  Turns out the dust bin was full.  I am going to mess around with the bigger bin from the 770 to determine if backwards compatible.  770 is bigger and has different air path for suction. The 595 did big up a lot of dirt that I didn't expect was on the ground.  House includes a dog + dog door, so he is in and out a lot!  Nice job Roomba, surprised at the size of some of the items it sucked up.