Hi all,
my efforts to write my own firmware stalled after I figured out how to flash a driver. That took all of my electronics gumption and now that the semester is in full swing I'm spending most of my waking hours teaching myself my courses that little bit faster than I'm teaching it to the students :)
So, I'm kind of stuck and I'd love a bit of help. I'd like a couple of different firmwares, one simple, one a bit more complicated:
- both for ATtiny13 driven 7135 based drivers
- both momentary switch (I've had endless problems with flakey Judco clickies)
- both with the usual voltage step down stuff at low voltage
- simple one is for a rear bike light. Needs to be on at 1/4 drive current and flash to full current, ideally a double flash like: low low low high low high low low low high low high low.. Toykeeper has an awesome version for clickies, but she said it would take a bit more work than she has time for swapping it over to momentary as it uses separate entries for each power level rather than one entry with multiple values like JonnyC's Starmom FW. Only really needs one mode, although another one at 1/2 (or 1/3 perhaps?) the drive current for each level wouldn't hurt if it's not too much work.
- more complicated one is for my front bike lights and could be a variant of JonnyC's Starmom FW, but with a short press moving up a level and a long press moving down. What would be really useful if there's a loop so that from low each short press moves up a level to high, then each short press cycles between med and high with a long press needed to get back down to low. Basically a Taskled Threemode mode :) Extra long press to turn off from current mode would be great (ie. no 0 PWM value as off, so I don't accidentally go through it on the trail).
No real need for blinkies, although I wouldn't say no to a hidden beacon as an emergency backup.
Something that would be totally awesome (again, like Taskled drivers) would be to have an intermediate voltage warning that dims the output (say to 1/4) a number of times when a voltage threshold has been reached. I have my Taskled lights set to ~3.6V from memory, which corresponds to ~45% remaining capacity. Annoyingly the Taskled version completely turns off the light in blinks, which can be a little hairy on a steep downhill if it's your only light!
Memory isn't all that important, especially if the light starts from low. Wouldn't hurt if it's not hard to do though.
Would anybody be able to modify one of the existing firmwares to do either (or both!) of the above? I would be incredibly grateful and I can't wait to fix my rear light as it's constantly on the verge of crapping out. I'm afraid I don't have anything to offer in exchange other than my eternal gratitude and tips on machining :)
Obviously any firmware would be the distributed as the writer sees fit, hopefully this may be useful to others in addition to myself.
Thanks!