Jump to content

Making a LED act like a filament lamp


Stevo
 Share

Recommended Posts

Probably a simple one!

I'm fitting wing LEDs to a Chippie at some point with remote switching, - around 250mA per LED. No problem so far!

Now, being pedantic, I want them to react like filament lamps, so when I switch on they ramp up in brightness instead of just instantly going 'ON!', and obviously when I switch off I want them to ramp down in brightness until they are off. The time from nothing to full brightness is just a fraction of a second of course ... but as I say, It's me !!

So, anyone done it before...

Yes I have the idea of a series transistor... capacitor charging between base & emitter... but if anyone wants to share it it may save me some experimentation.

Edited By Stevo on 31/03/2015 17:36:30

 

OH GAWD!! MODS - Change the title! "making a LED act like a filament lamp" Dodgy keyboard!!

Edited By Stevo on 31/03/2015 17:38:53

Link to comment
Share on other sites

Advert


Posted by Vaughan Wilson on 31/03/2015 20:36:54:

This could be adapted to serve your purpose:

**LINK**

That is very interesting. I believed that LEDs by their very nature were either on or off because they are diodes. I've made them "fade" on and off in the past by using a PICAXE to create a variable-frequency but constant-voltage supply, which creates the fading effect with the change in the on/off ratio.

I'm going to try out that circuit when I get a chance, hopefully tomorrow.

Link to comment
Share on other sites

Posted by Stevo on 31/03/2015 21:46:14:
Picaxe? Now yer talkin'.
Ive got experience with those! Would you mean a variable pulse width output, as opposed to variable frequency?

Yes, a variable pulse width. I used it to simulate a pulsing beacon light, rather than the usual flashing strobes.

As I said, I'm going to try out the referenced circuit this afternoon, but the more I think about it the more I think it won't work unless he's got some special dimmable LEDs. All the circuit seems to be doing is applying a varying voltage to the base of the transistor, which in turn allows a varying current to flow through the LED. Isn't that the same as simply applying a varying voltage direct to the LED which, with the LEDs I have, simply causes them to switch on to almost full brilliance as soon as the threshold voltage is passed?

Link to comment
Share on other sites

Posted by Martin Whybrow on 31/03/2015 21:52:54:

A much simpler way would be to put a capacitor across the LED, say 100uf and a series resistor, say 300R for a 5V supply, between the supply and the LED / capacitor; that should get close to what you want.

Well, we learn something every day. Thanks for starting this thread Stevo.

I've built the circuit in Vaughan Wilson's link using the closest equivalents I had in my box, and it works, though I'm still not sure why because in the past when I've gradually ramped up the voltage to an LED it suddenly switches from off to on, with no nice fade. I'm going to experiment with different capacitor and "drain" resistor values to get a quicker fade in/out, but I'm not sure it's going to be any good for a continuously pulsing light because it extinguishes well before the capacitor's fully discharged. That means that if I switch it on again immediately after it's faded, it comes on more quickly than the previous time.

During the build I was wondering what's the purpose of the diode and transistor. Presumably the diode is simply for reverse-polarity protection, but if we omit the transistor too, and feed the LED directly from the supply voltage, that seems to be basically what you're suggesting.

Link to comment
Share on other sites

This looks interesting, but it a little lost on me.. (electronics).. Any chance of a how to guide on making your own LED set up similar to the ones sold at shows/braincube etc.

Or links to videos that do same/sell the parts to "have a go"

Many thanks

Link to comment
Share on other sites

Allan,

I think the diode is in there to potentally stop the timing capacitor discharging via anything that feeds it, and not soley via the designated discharge resistor.

In this case, and charging of the capacitor over around 0.65V is not needed as the tranistor would have turned fully on by this time.

For a low current LED, say 30mA, you may get away with no transistor. In my case I have two high power LEDs consuming 250mA each, so no option but to control with a transistor !

As I said for my purposes a turn on/off time of around 200mS is probably what Im after. I would want to achieve this with a small PicAxe chip (08M) which takes the signal from the Rx, and, via PulsIn decides to make an output high or low. Inturn I would feed that via an RC combination to perhaps a Darlington pair, in turn driving the LEDs.

Area51 - Indeed some of these high power LEDs are available ascomponents, but by the time you've encapsulated them with a series resistor, a housing and a bezel, you may have well brought one from BrainCube.

Link to comment
Share on other sites

Posted by Area 51 on 01/04/2015 17:09:58:

This looks interesting, but it a little lost on me.. (electronics).. Any chance of a how to guide on making your own LED set up similar to the ones sold at shows/braincube etc.

Or links to videos that do same/sell the parts to "have a go"

Many thanks

I've used CREE high-power LEDs as strobe lights on some of my models. One issue with them is that they (or any other brand of high power LED) can't be switched on continuously unless they're mounted on a substantial heatsink, which doesn't lend itself to wingtip lights. As strobes (driven by a PICAXE program) they don't need the heatsink because they're only on for a fraction of a second every second or so. I believe the metal tube housing the Braincube lights is the heatsink -- an elegant solution. The CREE LEDs are surface mounted devices, so I wouldn't recommend them unless you've had experience of soldering very small delicate electronics.

Stevo, for my lights I use the 08M driving a Darlington pair (an 8 in 1 module) to give me four separate independently controlled outputs. One is for switched landing lights, the other three for strobes which flash independently of each other. On my helis I've also programmed the navigation lights to flash when my time is up, since I usually can't hear the beeper on my transmitter!

Link to comment
Share on other sites

Area 51, the simplest form of lighting is using LEDs as navigation lights, which don't require any switching or flashing. If you start with them, you can venture into switching and flashing later. You can connect them to your receiver's power supply, or direct to your motor battery if it's an electric model. Either way, you get an traditional 5mm or 3mm LED with wire "legs" on it, check out its spec sheet to find its volt and miliamps rating (note that different colours will have different specs), then use this simple calculator to figure out what resistor you need to connect in series with it so that the voltage won't blow it.

Link to comment
Share on other sites

Posted by Allan Bennett on 01/04/2015 17:08:05:

I've built the circuit in Vaughan Wilson's link using the closest equivalents I had in my box, and it works, though I'm still not sure why because in the past when I've gradually ramped up the voltage to an LED it suddenly switches from off to on, with no nice fade.

I can explain! The LED is a current driven device (as are most transducers); they have a threshold volatge below which they will not illuminate, this is shown on data sheets as the Vf (forward voltage drop); as soon as the voltage exceeds this value, the LED will try to draw lots of current and will light up at full brightness (and possibly for a short period if you have a high current capacity supply); for this reason, LEDs must be run from a current-limited supply, commonly just a series resistor. Note that the LEDs sold as 12V, 24V, etc. already have the series resistor built in.

Link to comment
Share on other sites

Thanks Martin. But what you've said seems to confirm what I understood, namely that as soon as you exceed the threshold voltage the LED will light up at full brightness. So how is this circuit managing to make it gradually get brighter, starting from off?

I can understand that it might be possible to change the brightness, from zero to full, if one could control the current while keeping the voltage in excess of Vf. But I still don't understand how this circuit achieves that, when a simple variable resistor doesn't -- at least it didn't when I tried it a while back, just went from off to on when it reached a certain point.

I'm familiar with selecting the correct resistor to match my LEDs to the supply voltage, but that's about the limit of my electronic knowledge.

Link to comment
Share on other sites

Thanks to whoever changed the title!

Anyhow, I've written a program for the PicAxe, using PWM to control the LED. It takes the signal directly from the Rx and turns the LED on / off. This may sound like overkill but the component count is low and you get more control on how the LED behaves - as well as regulating the battery for the LEDs.

I'll try and post a video when I get it done.

Allan - I've sent you a load of files - have you got them??

Link to comment
Share on other sites

Posted by Allan Bennett on 02/04/2015 20:48:57:

Thanks Martin. But what you've said seems to confirm what I understood, namely that as soon as you exceed the threshold voltage the LED will light up at full brightness. So how is this circuit managing to make it gradually get brighter, starting from off?.................

I am no electronic expert, but I think the key to understanding this is that the threshold is not actually an ON/OFF point, but a gradual change over a small voltage window.

At least that is what the data sheets for LEDs seem to imply. The extract I have attached confirms the brightness changes with current, BUT also that the current changes with voltage over an extended threshold of 0.4 volts.

If you can control the voltage accurately over that limted range you should be able to vary the brightness.

Perhaps one of the experts could confirm if this is correct?

Dick

led v i luminosity curves.jpg

Link to comment
Share on other sites

Thanks Stevo, but nothing's come through. I've just checked my mailbox.

I must admit I'm more comfortable with PICAXE over discrete electronic components because of the control you can have without changing components. Maybe it's even cheaper than capacitor + transistor etc.

Edit:  Thanks Dickw, you posted while I was typing.  That's my understanding of how/why it works -- the key to it is controlling the volts and amps together, rather than just letting the amps run away as you increase the voltage.

 

Edited By Allan Bennett on 03/04/2015 12:53:06

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...