loading

Can I use arduino to control my high-powered bicycle headlight?

I'm in the midst of building a new high-power led headlight for my bicycle (i.e. Ive ordered a new battery and a bunch of hardware, led's and a driver).  My question for the community is whether or not an arduino unit could be used to control functions or modes of the light.  I have built alot of lights and know a decent amount about electronics but I have zero experience with arduino and programing.  I am using this buck driver (http://www.ledsupply.com/0a009-d-v-1400.php) with a triple cree xp-g led and a 14.4v lithium battery.  Ideally I would like a single button to cycle through 5 modes: off, low, high, F-U idiot driver, and strobe.  If anyone knows what kind of stuff I would need to buy(i.e. controller, switch,etc...), if the stuff would interface with this driver, and how I would go about programming the thing I would much appreciate it.

Thank you,

Patrick

maewert5 years ago
Yes, an Arduino can drive these modes.  For the on/off you probably want the arduino to drive a relay providing the power to the buckblock. 

For the strobe you can have the arduino provide the strobe inputs to the buckblock like figure 18 of the buckblock data sheet.

For the high and low brightness levels you might be able to strobe the input like fighre 18 shows and discussed above but using a Pulse Width Modulation pin.  I am not sure if this would be good for teh buckblock or not.  Otherwise you could have the arduino drive transistors that change the resistance to the buckblock DIM input. 

I do not know what the "F-U idiot driver" mode looks like.  Not sure I want to know :-)  An arduino probably can manage it however.

(Look into an Ardweeny as they are smaller and cheaper and good enough fo ryour application.)

Best Wishes
Jayefuu5 years ago
Can you use an Arduino? Yes. Is it overkill? Hell yes.

Look at the range of AtTiny chips from Atmel. I think the 45 or 85 off the top of my head, they have tiny 8 pin versions and will do what you need to change the modes.

There's also a PIC version but I know nothing about those.

There'd be a slightly steeper learning curve if you used an AtTiny vs Arduino as it's not quite so plug and play, but there's plenty of information at avrfreaks.com as well as on Randofo's Instructables.