Driver for XM-L2 U3, controlled by Arduino - Need advice

[/quote]
Yes. There are ways to control 2 leds with 1 driver. But if there is a driver failure? I was thinking more for redundancy.
[/quote]




In my experience, driver failure is very rare. most caving light failures are in the wire and contacts or due to water entering the body. so unless you are planning to use 2 battery case, 2 power wires and two independant section of the body you don’t really have redundancy :frowning:



IMHO it is better to carry 2 or 3 (as much compact as possible) lights than having one (probably big and heavy) light with redundancy.

Are you building your own case too? Or using an existing? I’m definitely interested in dual LED cases if they are not bulky.

+1. Carry an extra light instead. Then you have full 100% redundancy. If doing SRT or anything else that requires two hands underground I’ll always bring a spare headlamp.



Yes, I build my cases by hand from Aluminum. the lamp (front part) weighs 160 g and plus battery case and 2*18650 cells it is 350 g, not too bulky IMO

OK, I’ll do it your way.

Have a look at the Digisparks. 2-3 models, usb programmable, minimalist design with a bunch of stuff already wired up. About the size of a small postage stamp.

Got a few on order for some doodads I want to build (vs dedicated hardware).

Good morning guys.
Talking about drivers. Can I use this circuit as a driver for the Cree XM-L2 U3s? Is this how you did it in your projects Mike?
Dont think about the Vin/Battery, just the overall circuit. The circuit will be duplicated for the second XM-L2. PWM signal will come form the D5 pin on the microcontroller.
Its 8x AMC7135s btw. 8x 350mA = 2.8Amps for the XM-L2s

Yes, the reason I want to use the Atmega328 is because of all the IOs and because I have worked with Arduino before. But if you have a good alternative, please let me know

Nice. Do you have some photos?

1. Using 2S battery pack you will burn ~4v on the AMC1735.
2. Attiny13 is more efficient than Atmega and can use 1S pack (same as XML)

You can see my light here : https://photos.app.goo.gl/cq68oJ6mcJLecKnF6, this is the old version (tested in the 9th deepest cave), new version is under development :)

Kind of. I didn’t PWM the entire range of 7135. I split them up in groups so I could have any number of them on, and only used PWM on one of the 7135s. That’s just me though, most have done like you, all 7135s on the same channel. Easiest that way.

I use the ATtiny1634. It has 17 usable IOs and 16KB flash. It’s more than adequate for my usage.

Are you planning on selling cases only? I would use my own drivers and choice of LEDs.

Considering my hourly wage and the fact that it's handmade, it will be cheaper to buy a new Scurion :)

Plus, it is custom made to my driver, LEDs and optic. If you know how to use tools I can share my design and help you modify it, PM me.

I suspected such, but it doesn’t cost to ask :slight_smile:

Will do!

Have you guys checked for companies in China that offers custom CNC production? Just like PCBway and jlcpcb does for pcbs?

I have had a quick look, but when it comes to CNC production it is much more costly than PCB production. The amount of changes and new versions I’ve gone through in regards to driver PCBs is scary enough, going though the same process for CNC will render me broke. I have no experience in anything like that, learning it all from scratch will be too costly and time consuming, I’d rather spend my time on driver and firmware development. I wouldn’t mind joining forces with someone who can take care of the CNC stuff but have not found anyone who both knows what they are doing and wants to do a project like this.

I tried talking to some manufacturers in China, It is to expensive for only few pieces.

If you are interested in CNC have a look at this french "open source" project
http://souterweb.free.fr/light1777/light1777V3.htm
You can find there the source code and build your own copy

Short update: Circuitboards are now ordered. Will be fun to see if my design works like planed or not

Yes you can use Arduino or Digispark as pwm source.
Take a look at my video: 32kHz pwm + this driver:

With low freq. pwm you will hear noise….

Hi Mike.
Could you explain a bit more how you connect and program the microcontroller to the LEDs? You have a series of LEDs that shows the battery level?