I took me a while to get the strip working with my Arduino.
The next step was to figure out what to do with the strip.
after some time the idea came to me: a Bluetooth controllable floor lamp.
I ordered 4 extra bright ‘warm’ White Led strips, in order to make the Floor lamp useable on a daily basis.
I need to say, I made this lamp a couple of months ago,
before I head the intension to put in on here.
this mean I did not take much pictures or draw sketches.
Step 1: Parts
-Arduino Nano v3.
-1 meter WS2801 RGB led stip
-4x Samsung 1550lm/m 3000K 5050 LED Strip
-USB Bluetooth Dongle
-12v DC Power supply.
-12v DC to 5v DC converter.
-4x IRLZ34 (MOSFET).
-5x 1N4007 Diodes.
-4x 10K ohm resister.
-4x 1K ohm resister.
-4x 470 Ohm resister.
-a bread board.
-a prototype PCB.
-3x screw terminals.
-9mm x 35mm Wood beam
-25mm Carbon tube.
-25mm aluminium hollow profile Beam.
-50cmx50cm 1mm thick aluminium plate.
-2meter m8 stud.
-couple of m8 nuts
-USB connector en mounting.
-LOTS OF WIRE.
-LOTS OF SOLDER.
Step 2: Code for the Arduino
so I used Bluetooth because his is a protocol supported by both.
After some testing with a separate Arduino and Bluetooth module I was able to send a string from Android to Arduino.
SO first the code for the Arduino, on the next page I’ll talk about the Sender device (android or Win)
I wanted to make a simple program that could easily be expanded.
I know that the sender device would send a string of 4 digits.
For example “R255”
From this I know the color R= RED and the intensity = 255
The same goes with Blue =B Green = G and White = W
And make use of a X I could use Extra functions as in Blink FAST or Rainbow the RGB lights.
So in de Arduino code a splinted the received code into to parts. The first is the Letter that indicates the color of function.
and the second part exists of the 3 digets telling me the brightness of the color, OR a number of the Extra Function.
Controlling the White lights is simple. I just used the PWM signal. 0 = off, 255 is fully on.
example : “analogWrite(PWMLED1, 255); “ PWMled 1 is FULLY on.
For Controlling the RGB leds I used the SPI and Adafruit_WS2801 library .
this allows me to easy control every LED on the strip.
For example the build in function. “rainbowCycle”
this shows a nice rainbow on the lamp.
And last I build in a function to stop a loop ( for example flashing).
For more INFO. Look in the ARDUINO_CODE
Step 3: Sending Code
I Used Eclipse for the Android app
And Visual Studio for the Windows application.
For more INFO
Download the projects an read the comments.
(cannot find Android Project, if I find it, I will upload it here)
Step 4: Hardware. the Lamp Itself
Wood for the base structure,
the frame on which the Cotton cloth would be stretched and mounted on.
the aluminium and Steel for the frame to hold the wooden frame in place
and a aluminium foot outer sill.
And Carbon for the Lamp Foot
First the Frame:
Consist of 3 squares of 30cm wooden slat.
which are held by 2 steal threaded bars connected to another by an aluminium square tube.
The first 2 wooden squares are connected by the same aluminium square tube.
The last one, the foot. Has a Carbon tube mounted in between
After this was done. In gluid the RGB an Bright White LEDs onto the aluminium square tube.
an covered the foot with an aluminium sheet.
Step 5: Hardware, Electronics
I Knew what I needed for the Led strips and for the Bluetooth module.
RGB, All the LEDs are connected in Series. The First passes one the Data and Clock to the second
so I needed to have a chain of 32 LEDs
The White light only needed 12V and Ground, but I wanted more control. So I spited the LED and wanted to control each side secretly .
White Light: (4x) (each side 1 strip)
See the Diagram (sorry for the bed drawing).
The RGB Stip is directly connected to the Arduino on Port 11 and 12>
The white light uses the PWM ports (9, 6, 5, 3)
and the Bluetooth module is connected to the Rx and Tx port ( 0 and 1) on the Arduino.
For controlling the 12v power with a 5v PWM I needed to use a MOSFET,
I used a IRF9530. In combination with a 470 resister in between the Arduino PWM.
and a 10K Pull Down resistor.
On the drawing I only draw 1 circuit with the MOSFET. But for each PWM port (4x) there is the same diagram.
On the 5V power in on the Arduino I used I Diode, this because if I power it by USB (for debug and programing) the rest of the system is not powered on.
especially the Bluetooth module, this used the same Rx an Tx port as the USB.
And a couple of Diodes between the PWM and MOSFET. Just to protect the Arduino if something should go wrong
I only using a 12v adapter for powering, the power convert converts the 12v to a 5v for the Arduino, RGB LED strip and Bluetooth module
After hours of soldering, an gluing, the Electronics were inside of the lamp
Step 6: Final Steps
I bought a pies of Cloth a the local store, about 1meter by 1.5meter,
I measured is for a thigh fit. An m girlfriend sowed it together.
Step 7: End Result:
But the Electronis work fine!!!
Android App + lamp:
Lamp Overview, Almost down (ignore the clothespin!! :) )
If you have any questions, don’t hesitate to ask them in the comments below