Journal Alioth's Journal: [avr] The Luxeon Ray-o-Death is ready... 9
I've finished the enclosure for the Luxeon Ray-o-Death enough that I can try it out tomorrow (mainly to see how well the little sealed lead acid battery does). I still need to waterproof it (a temporary job can be done with a clear plastic bag).
I'll take a few pics later. (I may make a little project web page for it, in case someone else who's been knocked off by a car in broad daylight on a straight road with good visibility feels like they'd benefit from this).
In the meantime, the source code to the program that runs it is here:
http://www.alioth.net/tmp/bike.c
There are a few improvements that can be made to it, but it's late, the code does what it's supposed to, so it'll do for now
But basically, it controls the three banks of LEDs. There are two PWM channels (which control 2 of the banks), and the last bank is just connected to an output pin and is only used during flashes. There are two buttons as well, one is to select flash mode or steady mode, the other controls the base brightness (so, for instance, on a foggy day, I can press the brightness button a couple of times to up the power of the steady state). The buttons are 'active low' (they just ground out its input pin, which is normally pulled high by the AVR's internal pull up resistor), and the action happens when the button is released, basically the simplest strategy for software debounce (when buttons are pressed or released, they tend not to cleanly turn on and turn off, there's bounce noise especially on button release. You can fix this in hardware, but to keep the component count down, I debounce the button presses in software).
I'd like more details (Score:2)
Re: (Score:2)
Also, don't forget to say "thank you" afterwards.
HTH
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
http://slashdot.org/~Alioth/journal/176493 [slashdot.org]
My initial thoughts was to use a set of LEDs to provide the steady light and a strobe for the flash. However, the Luxeons are bright enough on their own and it means no mucking around with 6,000 volts. Each LED is 1 watt, and the flash pattern includes one flash with all 6 lit up. Testing it on myself from about 60 feet away showed that it was very noticable in the peripheral vision (like when a driver is looking down at his car s
Re: (Score:2)
I really like what you're doing. My day job is designing test systems for driver circuitry for ultrabright LED's. If there's any way I could help you with what you're doing, I'd love to. I don't guarantee that I *will* be any help, but I know people who can.
Re: (Score:2)
You may have noticed that there really isn't a lot in the way of driver circuitry here (short of the AVR's two PWMs to set the brightness). I don't have much experience with LEDs (other than just using little ones with a current limiting resistor as indicator lights) and was slightly surprised to find that two in series would draw slightly less than nominal current when connected directly to a 6v sealed lead acid battery - about 300mA, the nominal current in the datasheet being 350mA
Re: (Score:2)