Flashlight Firmware Repository

I'm using AtmelStudio for Anduril and been posting my full projects. It was easy-peezy

I implemented to DarkHorse indicator led, lockout and candle mode support from Anduril for my headlamp drivers, but i dint find out how to enable LVP for indicator led :frowning:

It is not implemented. This is a fairly simple change near
// TODO: turn off aux LED (s) when power is really low

And how TODO? There is no code and im not a coder :smiley:

I see that we’ve had a discussion about it before. :slight_smile:
Sorry, I can’t give you a better advice than this. I won’t add this code to the repo before I test it.And I don’t have an adjustable PSU yet….

It’s not that simple. TK is right, a refactor is in order. Fixing it at the spot of the “TODO” won’t get all the cases.

I tried hard - no results, I guest only TK can fix it :smiley:

Hi all, Is there any problem with the code of dthoang(dth_Momentary_v1_1.c) ?

I flashed it on my attiny13a, and I see nothing but the blink-on-power.

The driver won't respond to any of the e-switch controls.

I tried flashing STAR-MOMENTARY for example, and it works with no problems.

What might be the problem?

Thanks

Hi everyone I need your help, I have tried the Star-Momemtary code, wonderful code, but I have to ask if you can change some points, I use it with a piezo button and I find it too sensitive, how do I increase debounce for avoid accidental ignition, or you have other things to propose, I also accept your ideas
Thank you so much

You have 2 lines that configure the debounce timing:

maybe try changing DB_REL_DUR to 200ms?

you can use Decimal to Binary converter to find the binary number for your ms.

sorry for misleading you (this definition is a bit mask, no a number), each bit is 16ms, so the max time is 128ms
try:

BTW, are you building a diving flashlight with that piezo switch :slight_smile: ?

Thank you very much
why do you think I can’t use a piezo button? I’m using them made of stainless steel that are very good, and also underwater, that you would have other ideas

I didn’t say that you can’t use it :slight_smile:
I just asked whether you’re using it to build a diving flashlight.
I used a piezo switch for a diving flashlight years ago, it was great.

[quote=HiTiT]
You have 2 lines that configure the debounce timing:

maybe try changing DB_REL_DUR to 200ms?

you can use Decimal to Binary converter to find the binary number for your ms.

sorry for misleading you (this definition is a bit mask, no a number), each bit is 16ms, so the max time is 128ms
try:

Hi I tried to do as you said but nothing is still too sensitive, sometimes pressing the button changes twice, you have some ideas

I notice that there are quite a few people who know nothing about coding yet are able to flash firmware. The recent introduction of flashing pads greatly expands this number.
Yet the latest Andruil is not available to them in a binary form. They have to compile the sources which is problematic to quite a few a needless nuisance to a number of others.

I think it would be worthwhile to have some continuous building process….

Uhhh, someone recently posted a link to a hex file of the latest Anduril build, least I thought, forgot where...

These are the latest builds from the development (not always fully tested) branch. I haven’t had any issues with the newest build on my D4V2 Ti.

Sorry I ask a question, do not kill me, it’s only recently that I discovered this forum thanks to all, I found this part where you have gathered all the firmware, but there is the possibility of finding some driver projects that you can create, thanks

Thanks, that’s exactly what I was looking for. :+1:

You mean ones where you buy PCB and a bag of parts, then solder everything together?
There are a few…but scattered over many topics.
It would be interesting to make a reference at some point…but as of now it doesn’t exist, so please tell us what kind of driver are you looking for and we may be able to help.

I am looking for the design of a driver for an xhp70.2 led, I have to be able to power it indifferently with 2s 3s 4s battery packs, I need the design because the pcb must have a specific shape for the flashlight that I am building, I am a hobbyist with the passion to build things, I’m not electronic, but I can assemble a pcb, I’m building an underwater torch, if you can help me thank you