- Planning the construction (Step1)
- The handmade shade (Step2+3)
- The electronic circuit for driving 3W LEDs with the ATmega8 controller (Step4)
- The Code (Step5)
- How to get it stand-alone (flash the Arduino bootloader with PonyProg and burn the sketch) (Step6) coming soon
Vid: Some Impressions
http://de.youtube.com/watch?v=apZ9NpaUG84
Pic1: The Moodlamp
Pic2: A mighty 3W LED
Remove these ads by
Signing UpStep 1Planning the construction:
On the first sheet you see some early ideas. "I chose the bottom-right design.
The second page shows some details for the construction.
measurements are experimental like each time, but ok for me ;-)
My hardware thoughts were:
- Can I handle the materials?
- Will the light shine through the shade?
- What proportion should it have?
- How many knobs and pots will I need for a simple interface?
My software thoughts were:
How many different functions should the lamp have?
- Automatic RGB fading with changeable speed
- Manual color adjustment
- White with adjustable brightness
| « Previous Step | Download PDFView All Steps | Next Step » |
















































Thank you
The lamp was my first experience with powerLeds and in the meanwhile I've found some smarter solutions to drive these leds.
I recommend you to use the MC34063 switching regulator as mentioned in this article:
http://translate.google.com/translate?hl=de&sl=auto&tl=en&u=http%3A%2F%2Fwww.mikrocontroller.net%2Farticles%2FKonstantstromquelle_fuer_Power_LED
In Germany I can get it for 0.27€ and the additional parts are available for cents.
I hope you can get it to work!
Regards,
jo
have you ever worked with a controller-board or electronic components like transistors and LEDs??
Here you have some links:
All the information you're looking for
http://www.arduino.cc/
just look for some details on "connecting to hardware" and look at some tutorials on "learning"
Here you see the pinout of the chip, compared with the pinNumbers on the board
http://arduino.cc/en/Hacking/PinMapping168
The platform is open source and I like that way of thinking.
If I can help you with your problem, it's just great.
GoodLuck,
jo
Here you get a simple loop for fading a led smoothly by trigonometric calculations:
Take any led you got and put it into digitalPin9, which supports PulseWidthModulation (to fade the led) take the other electrode of the led and put it through a resistor (about 100...500ohm) to +5V or GND
...Purpose: Fading a Led
Language: Arduino0012
...... Author: nejo0017
..........Date: 2009-03-03
For details on the Code: http://arduino.cc/en/Reference/Extended
*/
///////// the Arduino supports 8bit PWM on 6Pins:
int ledPin3=3; // connected to the red led
int ledPin5=5; // connected to the green led
int ledPin6=6; // connected to the blue led
int ledPin9 = 9; // red
int ledPin10 = 10; // green
int ledPin11 = 11; // blue
void setup()
{
// nothing for setup
}
void loop()
{
FadeLed(ledPin9); // calling the function
}
void FadeLed(int led) // create a function and give it the led as parameter
{
int value;
for(int i=0;i<360;i++)
{
value = 128 + 127*(-cos(i*PI/180));
analogWrite(led,value);
delay(10); // wait for 10 milliseconds
}
}
I didn't use a constant current source, just some PNP transistors to get enough current.
To limit the current I inserted a resistor between the Arduino and the base.
Collector: GND
Base: ArduinoPin - resistor - Base
Emitter: LED Cathode
The LEDs Anode is connected to 5V,
The next step was to connect the cathode through a PNP transistor on GND.
I used a Pot and a amperemeter to get the right current from the datasheet.
I think it was around 1000mA.
After getting the right current and brightness I checked the resistance and replaced it with a resistor.
That's it....... Very simple and not professional, but it works very good.
I hope the info was enough....
If you want to learn more about LED driving circuits, see this Instructable:
http://www.instructables.com/id/Circuits-for-using-High-Power-LED_s/
Regards,
jo
Check mine : Arduino_RGB_LED_Lamp_4bit_LCD_Display
Not using 3W RGB LED's but still effective, great outcome. Question for you. Are your 3W RGB LED's common Cathode?
I recently bought some 3W RGB LED's but there common Anode
Nicely documented too.
Special "bravo" for clear and properly scaled macro photos.
Solid 4 out of 5 stars for this!
before the questions begin...
"I clinched for the bottom-right design." = "I chose the bottom-right design"
"The measurement is virtuosic like each time" = "measurements are experimental" (where DID you find that word? :-)
"I found a square meter from 1mm clear plastic sheet in a hardware store." = "I found a 3 foot x 3 foot sheet of 30 mill plastic at the store"
"The plastic can be cutted with a sharp knife." = "Use a sharp knife to cut it"
"After cutting i grinded the sheets with sand paper" = "I frosted the plastic using sandpaper"
"All the plastic should hang on a windy construction of threaded bars from brass" = "Mount the plastic shades on the threaded brass supports" (I think)
"I drilled some holes and wormed them to get the M3 threaded bars fixed" = "I drilled and tapped the holes to match the 1/8th threaded bar"
"meantime I made a little plate from alloy" = "meanwhile, I made a heatsink"
"The plates were breaknecking clamped into my lathe." = "The discs were chucked in the lathe."
"Afterwards I bate it with "mahogany-wood-stain" to get a fine color out of the pinewood." = "Afterwards, I stained it with a mahogany wood stain so the to make the pine look good"
"I decided to make a grinded circle from the shade-material, nailed on the wood, with a microRGB-LED to light it up" = I decided to make a base using the same frosted plastic as the shade, and backlight it with a RGB microLED."
"my shematic" = "my schematic."