You may want to consider, if you want to flash your lights to, maybe, warn oncoming traffic of something, how this would effect your light system. Just throwing it out there for consideration.
Indeed my friend. But if I'm riding along with high beams off and I flash my lights "on, off" once there will be no activation of this system. Only if I flash them "off, on" will there be a change. That's one of the reasons I'm looking at this pattern.
Repeated flashes would
activate this, though. Starting from lowbeam, flashing "on off on," for example, would bring the aux on with the high beams with the second "on." Flashing a bunch and starting from lowbeams only, the bike would look like this:
Every other high beam flash would have aux as well.
I know the Arduino approach here would be fairly straightforward. While I'm no expert, I have programmed one before. I can imagine a scenario where each "on to off" event on a particular pin resets a timer variable to 0, then the arduino adds to this variable in each frame (Arduino programs run in a loop of frames, so they're constantly iterating over code), then when it sees an "off to on" event, it compares the time variable against the "setting" variable, and if the timer is lower than the setting, it toggles between high/low on a pin which controls a relay. It may turn out that I go this route with a small-form-factor Arduino and call it good.
But I'm curious to work with the 555 chip, although I imagine it would be more complicated. The insight I can come up with myself in this area is considerably less complete. I know the 555 can send pulses for a set amount of time. I imagine these can be sent in response to a drop in voltage (i.e., when the switch goes off). The problem I have is envisioning the toggle solution. The 555 can give me voltage that endures for a particular time, but what would then compare the change in voltage in one spot (from the light turning on) against a charge in another spot (from the 555 timer which started when the light turned off) and apply a voltage to a third spot (the relay) if the first two spots both have voltage? What kind of component would this be?
The reason I'm interested in the analog approach is because currently the KLR has no microprocessor and I like that about it. It would be bitchin to keep the concept pure. That being said, the Arduino would also allow some cool special effects (strobing, brightness controls, etc., all controllable via this über simple double-click on the switch). Even so, I would like to keep the bike analog if possible.