Maxpedition
Page 1 of 4 1234 LastLast
Results 1 to 30 of 95

Thread: LED strobe

  1. #1
    Flashaholic* Packhorse's Avatar
    Join Date
    Nov 2007
    Location
    New Zealand
    Posts
    1,794

    Default LED strobe

    I have a new project I want to start on.



    A high powered LED based strobe.

    Will consist of 8 or so XR-Es mounted on a square core inside a acrylic tube. ( much like my video light). The LED's would fire in pairs for a short bust, probably between 1/10- 1/100th of a second then wait for 1/4 -1/2 second before firing the next pair.

    The LED's would be over driven by 50-100% using AMC 7135's and powered off a single 18650 or 22650 cell. A capacitor could be added to help smooth the power delivery since a 18650 may suffer at 4 amp even for just 1/10th of a second (???).



    If there is anyone out there that wants to help out by programming a PIC for me I would appreciate it. It should be pretty simple requiring 4 outputs from the PIC that pulse. I would like to be able to adjust the timing in some way to get the most out of it.



    Now what would be cool is a battery monitoring feature that let you know of the voltage when you turn it on and as it runs down the pulses become shorter and spaced further apart.

    This of course complicates the source code some what and would require the use of a ADC.

    Im not really sure what length of pulse would be too short but the shorter it is the longer the battery life as well as the ability for the battery/ capacitor to deliver the charge and perhaps the better for over driving the LED's.



    Now some quick calculations......



    If I drive 2 LEDs at 4 amp for 1/10 of a second twice a second off a 4000ma 22650 cell it will run for 5 hours. Drop it back to 1/100th every second and its 100 hours.

  2. #2

    Default Re: LED strobe

    ok, since the forum is back online my post is lost so let's start over :-)
    I think I have a PIC floating around somewhere, that I can use to test stuff via software on the computer withouth having to reprogram the PIC. That way the setup can be tested.
    The PIC supports measuring 5 channels for a voltage level up to 5V so I can use that to measure 18650 levels on single battery level or series of batteries if I use an extra voltage divider. It also has some digital pins that can be used to generate low frequency low duty cycle pulses.
    PICs are probably not really good at driving high currents so I would use this pulse to switch a mosfet (which one? needs to switch fast enough and be able to switch the necessary current). To get alternating LEDs flashing, it may be possible to use a N-channel and a P-channel with the same pulse but I'll need to verify this.

    I also have some 556 timers here that I can use to test some frequencies and testing the mosfets even without having to bother with programming things. just a few resistors and capacitors :-)

    Once this setup is working, I could get another PIC that doesn't require the PC connection and can run off batteries.

    As I mentionned in my lost post, LEDs can be pulsed far beyond their rated currents. How far depends on the duty cycle and frequency. Unfortunately Cree only provides information on the current for 1kHz pulses with 10% duty cycle (1.8A for xr-e). Comparing that with a white osram platinum dragon LED which is also supposed to be run at 1A but produces slightly less lumens, we can see on page 11 that for a duty cycle of 10% (D=0.1) and a Tp of 10-3 (1kHz), we find a current of about 1.6A. I guess we can use this graph for the XR-E as well to get an idea of how far we can push this LED and expect to be able to push the XR-E even further than the Osram LED.

    I'll see if I can put something together for testing...

    Johan
    Last edited by jspeybro; 03-11-2011 at 06:06 AM.

  3. #3
    Flashaholic* Packhorse's Avatar
    Join Date
    Nov 2007
    Location
    New Zealand
    Posts
    1,794

    Default Re: LED strobe

    Excellent Johan.

    My thoughts were for the PIC to prive a AMC7135 directly so no MOSFET needed. The AMC will take care of current control. It requires a hi input from the PIC.

    I guess if a PIC on a AMC board could be reprogrammed no building of hardware would be required.

    EDIT: on closer inspection the AMC boards I have use ATMEL chips but I guess they are similar to PIC's.

  4. #4

    Default Re: LED strobe

    Quote Originally Posted by Packhorse View Post
    Excellent Johan.

    My thoughts were for the PIC to prive a AMC7135 directly so no MOSFET needed. The AMC will take care of current control. It requires a hi input from the PIC.

    I guess if a PIC on a AMC board could be reprogrammed no building of hardware would be required.

    EDIT: on closer inspection the AMC boards I have use ATMEL chips but I guess they are similar to PIC's.
    Atmel chips are indeed similar, just need different programming and interface hardware for programming.

    Also, for the capacitor to help with the current, 4A for .1s is .4 coulombs of charge, and .4 coulombs of charge resulting in a voltage difference of 1V (from before to after discharge) is .4 farads. So for this to even begin to make a dent in the peak current draw on the battery, youre looking at low ESR supercaps. Something like http://www.cooperbussmann.com/pdf/62...7c3b98b5f0.pdf Which are stocked on digikey. I'd go with the biggest you can fit, as I'd guess the batteries would still have a lower internal resistance than the supercaps.

  5. #5

    Default Re: LED strobe

    hmm, my amc7135 board don't seem to have a PIC, just some amc chips and a diode.
    Can you tell me which boards you plan to use?

    ckod, thanks for the info and link, useful.

    Johan

  6. #6
    Flashaholic* Packhorse's Avatar
    Join Date
    Nov 2007
    Location
    New Zealand
    Posts
    1,794

    Default Re: LED strobe

    The AMC chips I was referring to were the 3 mode ones I got from KD, but any multi mode AMC should use a AMTEL or PIC.

    CKOD thanks for the info on caps. I have no idea how to work that stuff out!

  7. #7

    Default Re: LED strobe

    I've been sketching on LED strobes to for a while, interesting prospect.

    On capacitors, if the solution gets bulky consider put a couple of 18650:s in parallel instead to cope with currents.

    Cheers
    /O

  8. #8

    Default Re: LED strobe

    AW 18650's (2600 mAH) have a 5.2A max discharge rate, and 22650s should be even higher, so you're okay in that respect. That's good, because connecting a battery to an uncharged supercap is even worse than driving the LED. There would be a huge surge of current while charging up the supercap. Dealing with that gets ugly.

    Battery voltage sensing is no problem, as most micros have embedded A/D converters. It's certainly not a problem to choose one that does.

    The biggest problem you've posed is the desire to control the timing. It's the input device and the ability to monitor it and react in a way that provides good feedback to the operator that makes it difficult. If you want someone else to program the PIC and give you the ability to play (sorry, I mean "experiment") with the timing, here's what I would suggest:

    PIC (or other micro) with 3 analog inputs, 4 digital outputs.
    One analog input is for battery voltage, two are for potentiometers (variable resistors, aka pots).
    One pot causes a change in the pulse duration.
    The other pot causes a change in the pulse rate.
    Four digital outputs drive FETs that control the LED pairs.

    Once you figure out what timings you want, you measure either the timing or the pot settings, then the person doing your programing permanently codes the timing into the micro, and you remove the pots.

    I'm mostly a PIC guy, so I'd suggest the PIC16F690. It's cheap, low power, can do everything you want, and is available in packages that range from DIP (can be socketed for easy changeout), SOIC (smaller, but still easy to solder) to QFN (really small, but harder to solder). Certainly there are AVRs and others that can compete with PIC in this arena.

    If you want to get into the programming, and start working on the firmware yourself, then I would suggest the PIC16F722 instead. While larger, it's cheaper and allows for in-circuit debugging, which is a significant advantage if the design is complex or you are new to programming.

    D

  9. #9
    Flashaholic* Packhorse's Avatar
    Join Date
    Nov 2007
    Location
    New Zealand
    Posts
    1,794

    Default Re: LED strobe

    Excellent, getting some great fed back here.

    I would like to use Trustfire 18650's since thats what I use in all my lights.
    Any idea on the max discharge on them? Perhaps a simple resistor to limit draw from capacitor? But then I guess it will also limit draw from LEDs?
    I think limiting it to 2 "channels " of LEDs and AMC's dedicated to each channel.
    Also a single 18650 to keep the size down.


    Now if some one can do the PIC programming I can do the machining!

  10. #10

    Default Re: LED strobe

    I'm looking into the programming, but since it's been a while that I programmed a PIC, this might take some time. Since I was just ordering some components, I'll add the PIC suggested by DIWdiver.
    If there's someone else also wanting to give this a try, please do so.

    Johan

  11. #11

    Default Re: LED strobe

    Quote Originally Posted by Packhorse View Post
    The AMC chips I was referring to were the 3 mode ones I got from KD, but any multi mode AMC should use a AMTEL or PIC.
    If an extra PIC is used, I assume it will also need to take care of making sure the right mode is selected. I have no idea how fast you can switch these drivers without them changing modes. This will probably limit the frequency that they can be pulsed to lower than 1Hz.

  12. #12
    Flashaholic* Packhorse's Avatar
    Join Date
    Nov 2007
    Location
    New Zealand
    Posts
    1,794

    Default Re: LED strobe

    No in this case I would just remove the ATMEL from the AMC board or use AMC boards with no chip. Just thought if the ATMEL could be reprogrammed it would mean no PCB to be made up.
    Last edited by Packhorse; 03-13-2011 at 11:58 AM.

  13. #13

    Default Re: LED strobe

    You might have decided on the design already, but another thought:

    There were lumiled emitters with a extreme side emitting pattern, basically an inverted cone on top of the chip with internal reflection spread the light 360 degrees around sideways.

    If any of the new high power emitters came with this optics, it would be an even simpler (albeit weaker) strobe setup.

    Cheers
    /O

  14. #14

    Default Re: LED strobe

    DIWdiver, any suggestions on the FETs?
    Maybe we first need to get a better idea on the timing before we can decide on the FETs. I assume it needs to be able to turn on faster that the duration of the pulse it is getting.

  15. #15
    Flashaholic* Packhorse's Avatar
    Join Date
    Nov 2007
    Location
    New Zealand
    Posts
    1,794

    Default Re: LED strobe

    What are the FETs needed for?

  16. #16

    Default Re: LED strobe

    the digital pins of the PIC that DIWdiver suggested can only provide 25mA per I/O pin. therefore it will not be possible I think to connect them directly to the driver. the fet will be used as a switch that is opened/closed by the digital output of the PIC. at least that is how I see it at the moment. I haven't looked into atmel chips.

  17. #17
    Flashaholic b-bassett's Avatar
    Join Date
    Nov 2008
    Location
    hertfordshire, uk
    Posts
    179

    Default Re: LED strobe

    just a quick thought.

    couldn't an astable multivibrator circuit be used instead of the pic?

    im unsure if they can be set up for such a short flash, and may be bulkier though.

  18. #18

    Default Re: LED strobe

    i'm looking at that as I have the compontents for that more or less available (missing a diode). it's not the standard circuit to get the short pulses but should work. It won't give you a battery indication when the light is switched on though. Not sure if the frequency changes as the battery goes down.

    finished repairing my usb oscilloscope today (bad connector) so I can easily watch the pulses on the computer and play with potentiometers before connecting it to LEDs.

  19. #19

    Default Re: LED strobe

    A '555 timer chip could easily make pulses as short and intervals as long as you want. If you wanted to skip the programming, you could build the circuit with some '555's, FETs, and some R's and C's. It would be a lot more circuit than with the PIC, but NO PROGRAMMING! It would involve several chips, in order to sequence the LEDs correctly, but it's nothing fancy. Timing would be adjusted by changing resistor values. I think 4 copies of a ciruit using a '556 (dual '555) would do the trick. Each one would do a short pulse and a long one, then trigger the next circuit. Connect them in a loop, and you're on your way! I could post a circuit if anyone's interested.

    With some other chips in the design, you could use a single '556, so only set the timing once, and the other chips could advance the LEDs around.

    Personally, I prefer the idea of strobing all four LEDs in rapid succession, then one long delay between. This could be done too.

    The '555 circuit's timing is highly independent of supply voltage, and the CMOS versions will work well in this voltage range.

    There's got to be a little battery monitor out there that could be added, obviating the need for the PIC.

    Whatever circuit you use, the FETs will be the same. For big and easy to work with, I suggest the IRL3502. Very few of these big FETs will turn on well at 2.7-3.0V, which is necessary for this circuit. For surface mount, you can get the surface mount IRL3502S, or I really like the Si4838DY. It's smaller and harder to hand solder, but not too bad. There's no question it will perform very well here, but it has a MAXIMUM allowable gate voltage of 8V, so you can't use it in 12V lights without some extra care.

  20. #20
    Flashaholic b-bassett's Avatar
    Join Date
    Nov 2008
    Location
    hertfordshire, uk
    Posts
    179

    Default Re: LED strobe

    I could post a circuit if anyone's interested.
    im interested

    im very interested in the pic programming too though, as i feel that is the best way forward

  21. #21

    Default Re: LED strobe

    I'm interested in a circuit as wel. I have a circuit for a single 555 with pulses with low duty cycle. I have 2 556 chips available so can generate 4 signals.

    I also found a simple circuit to connect with the pic for battery monitoring. I started looking into programming the pics but it's been a while since I used interrupts and such so this might take some time. also I'm still waiting for the PICs so I guess that will be for in a week or 2.

  22. #22

    Default Re: LED strobe

    Well, I had the circuit all ready to post, then realized it wasn't going to work. I'm not sure whether I'll be able to get back to for a few days, but I will eventually.

    D

  23. #23

    Default Re: LED strobe

    Why not just get one of George's drivers with the Strobe function included with the UI?

  24. #24

    Default Re: LED strobe



    The circuit above shows a single astable multivibrator (oscillator) on the left, followed by a single stage cascade of monostable multivibrator (one-shot timer). You can add any number of stages to the cascade as you want. Each stage in the cascade triggers the next. The pulse duration is controlled at each
    stage by the components in that stage, while the repetition rate is controlled by the oscillator.

    Per Packhorse's original spec, this would be set up as an 7-stage cascade, with every other stage including the FET and LED. Those stages would have a very short time setting, while the stages between would have longer settings, for the delay between flashes.

    I would prefer a 4-stage cascade, with each stage including the LED and FET.

    I have included the pin numbers of the common '555. They differ among various incarnations of the '555 (though most or all 8-pin '555s are the same, and most or all 14-pin '556s are the same). For a look at how many variants are available, go to www.digikey.com, search on "555" then scroll down to "integrated circuits" and select "Clock/Timing - Programmable Timers and Oscillators". For my money, the TS555ID (through-hole) and TS555IN (surface mount) seem to be good choices. You definitely want to choose one that will work in your voltage range.

    R2 and C2 determine the on time of the LED. I would think this should be in the range of 0.01 to 0.1seconds (10 to 100 mS), but experimentation would determine the appropriate times. R1, R3 and C1 determine the time interval between flashes. Both times in seconds are approximately 1.1RC, where R is in ohms and C is in farads, or in milliseconds where R is in Kohms and C is in microfarads. Appropriate values for resistance are between 1K and 1000K ohms, and for capacitance, between 10e-9 and 10e-3 Farads (0.001 to 1000 uF). This gives a practical timing range from way too short to way too long. For the oscillator, use R = (R1 + 2*R3).

    FYI, I have tested this, and it does work. Mine runs about 1.85 seconds interval, despite the fact it should be around 2.3 seconds. Probably the 25-year old electrolytic capacitor is out of tolerance. I used R2 = 47K and C2 = 1uF, for around 0.5 seconds flash. This is clearly too long.

  25. #25
    Flashaholic* Packhorse's Avatar
    Join Date
    Nov 2007
    Location
    New Zealand
    Posts
    1,794

    Default Re: LED strobe

    Thanks DIW.

    A couple of questions.
    The above circuit has 2 555 chips? And will strobe a single LED ( or group) as is but if we wanted to strobe 2 LED's we add a third 555?

    Is there any simple way to make it strobe slower as the battery voltage reduces?

  26. #26

    Default Re: LED strobe

    Quote Originally Posted by Packhorse View Post
    Thanks DIW.

    A couple of questions.
    The above circuit has 2 555 chips? And will strobe a single LED ( or group) as is but if we wanted to strobe 2 LED's we add a third 555?
    Yes, or third and fourth, if you want a delay between the LED's firing. You could also use '556 chips, which have two timers per chip. Pinouts are different, but otherwise identical.

    Is there any simple way to make it strobe slower as the battery voltage reduces?
    Not that I know of, but let me think about it. You're talking about a single 18650 cell, right? So voltage would be 4.2-3.7?

  27. #27
    Flashaholic* Packhorse's Avatar
    Join Date
    Nov 2007
    Location
    New Zealand
    Posts
    1,794

    Default Re: LED strobe

    Yeah, 18650.
    Its not an important feature, but I guess much easier to implement using a PIC/ ATMEL

  28. #28

    Default Re: LED strobe

    Well, I've played with it several times, using several different ideas, but I can't get it to reduce frequency by more than 50% when the battery is low. It doesn't seem like that's enough to matter.

    I'm shamed to admit it, but the humble '555 has beaten me. I'm done, finished, defeated, all washed up. At least until tomorrow.

    There are other oscillators that could be used; almost anything that operates in that voltage range would trigger the cascade, but offhand I can't think of anything that can be made to exhibit the voltage dependency you want. So I'm not promising anything.

  29. #29

    Default Re: LED strobe

    Hi guys, back from holiday so can continue on this. I'm getting the programmer for the PIC tonight, and the mail service informed me that there are some packages waiting for me so I hope the PICs are among them.
    Meanwhile, I found a nice little circuit for a pic to monitor battery voltage. If it works, I can use that ADC value to change the frequency and/or duty cycle as the battery voltage goes down, or to give a low battery warning of some sort. A battery status indication when it is switched on could also be added if that all works as planned.
    I guess it's time to dive in assembler now. I found some really useful tutorials for the PICs (I learned using some other MCU in school) so with some luck (and time) I hope to get a prototype going soon.

  30. #30

    Default Re: LED strobe

    still waiting for different PICs to arrive

    meanwhile, I've been thinking about this project.
    Packhorse, did you already make such a lighthead (transparant tube with metal insert)? I searched the forum but couldn't find it. I seem to remember to have seen something, maybe it got lost, or maybe it was just my imagination.
    If it got lost, can you post a picture?

    Since I guess the battery will be placed inside the lighthead, have you thought about how to implement the switch? reed contact, toggle switch, hall-effect sensor?

    in the first post, you mentionned that it would be nice to have some way of controlling the timing. Were you talking about changing the timing automatically based on the battery level, or did you mean something like modes by quickly switching the light on-off-on like the DC/KD drivers do?

    I ask this because that last method raises a question I hadn't really thought about earlier. Does anyone has some information on how that is done? To my knowledge, when switching on the power, the PIC will restart. How will it be able to know that you swichted in on-off-on within a certain time if it restarts each time?
    I must admit I haven't done a google search on it yet, but if anyone has a good reference on this, I would be glad to hear.

    edit: found some useful bits on this forum. Seems they use a similar pic that I was going to try (or even the same if I leave out the battery monitorring). I guess I'll need to look into the use of a capacitor between Vss and Vdd and find out the value...

    Johan
    Last edited by jspeybro; 04-04-2011 at 12:56 PM. Reason: link with info

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •