E-switch UI Development / FSM

So, it looks like as of now, these flashlights use Anduril, but have not released the actual source code used (ie. unknown which Anduril “build target” they were based on:

Astrolux EC01
Astrolux HL01
Astrolux FT03S

Haikelite HK04

Thanx TK! I see your manual update

I sense a pattern here…

Can we as a community put some pressure on them to release the code?

How? Anyone have an email address for Mr. Astrolux or Mr. Haikelite?

Haikelite's website even disappeared.

Hhmm - Astrolux does seem to have a website: https://www.astroluxlite.com/, but of course the Contact link is dead, but the brand link does work: https://www.astroluxlite.com/support.html?article_id=5

Based on their websites, they are a mess for sure...

Some of our members have contacts with Mateminco and Banggood, so we kinda have an email of Mr. Astrolux.
The same is true w.r.t Haikelite.

But several devs is unlikely to be significant pressure…there must be more (many more) people who care.

Well if you don't want to name names, the 2 developers I know of have business relationships with at least one of these vendors, unlike us. Plus I know they have communications problems with the vendors as it is (like not answering/repsonding for long periods of time, etc.), so even if they were willing, not sure it would be wise for them.

Would it be so bad for these members to notify the manufacturers about a thread where people rage against them? :wink:

Dunno - ask them.

As a follow-up to post #907 above, just tested out the Atmel Studio 7 build of Anduril 464 on a Sofirn Q8 and it worked perfectly. Tweaked the thermal max temp to 85C, and checked the voltage and it's dead on so far.

Not sure now there's any point to go back to NarsilM for much of anything.

In case anyone is interested, here's the AS7 Anduril v464 full folder with all the source code, solution and project file and it all builds, right now defaulted for a Q8 configuration, with the max temp of 85C, default to 55C:

google drive share for Anduril

Nice. Is it possible to post a compiled .hex file for people like me (I have a flashing kit and have successfully flash Q8s to NarsilM v1.2 and Anduril from the hex files in the repository, but haven’t tried compiling code…). Also, maybe a short list of how to configure those new settings… Thanks!

Thanks TomE.

There is a hex file in the Release folder.

, yep in the release folder, but of course it's only 1 possible config of many. The Q8 is the FET+1 design with the aux LED (usually switch LED) support, so I've used these driver designs in many mods.

Is Anduril able to use both AUX and Indicator LED's at the same time as long as the driver has the required hardware capabilities / pins ?

Not sure what you mean by AUX and Indicator LED's? I always thought of them as two words describing the same thing. I "think" Anduril has control over one pin for AUX/Indicator controls, so you can run multiple LED's off the same pin, for example, the switch LED's and the Lexel AUX board LED's on a MF01 Mini.

Pin Summary

1 - Reset (can be used for I/O but would break the popular dongles for re-programming)

2 - switch

3 - AUX LED, or main LED channel

4 - GRND

5 - main LED channel

6 - main LED channel

7 - for 6V/12V designs used for voltage divider for voltage reading, spare for 3V designs, or AUX LED for 3 channel drivers

8 - VCC

Example flashlight/driver pin layouts:

MF01-Mini driver layout
-----------------------
Reset -|1 8|- VCC
eswitch -|2 7|- aux LEDs
FET PWM -|3 6|- PWM (7x7135)
GND -|4 5|- PWM (1x7135)

Emisar D4 driver layout
-----------------------
Reset -|1 8|- VCC
eswitch -|2 7|-
AUX LED -|3 6|- PWM (FET)
GND -|4 5|- PWM (1x7135)

These two layouts above represent the classic 3 channel (FET+1+bank) and 2 channel (FET+1) layout of BLF drivers.

Hi Tom,

In Anduril the AUX LED's are the RGB front facing LED's, each one with its PWM PIN and the Indicator LED is the side switch LED, which is only 1 color, usually green. Thus far I have only seen lights using either one or the other, but never both. MF01 Mini only uses the Indicator LED PWM Channel for both the side switch LED and the front facing LED's. There is independent code in anduril.c to use any of them, but as per most lights hardware, the code is reflected as such, thus using either the Indicator or RGB AUX LED's code, but not both at once.

Regards.

Ahhh. Haven't noticed independent support in Anduril yet, but it certainly could be there. Since the Attiny85 has limited I/O pins, a 2 channel or 1 channel driver could use pin 7 as a secondary AUX/Indicator control, but I don't know what Anduril would do with the two separate functionalities.

Custom BLF drivers I typically use in a lot of mods are 2 channel 3V setups, so pin 7 is always available. I'll research Anduril now and look for the possible support there. I've even used 3 channel drivers as 2 channels, and not even populate the 7135 bank. This requires some switching around of the I/O pin assignments but NarsilM has support for that, so probably could be done easily in Anduril, but there's probably no existing hwdef file for it yet.

I have a problem with aux LED voltage indication on my D4Sv2.
When I connect power it sometimes blinks green but aside from that split second it’s never green, goes from blue directly to red.
I thought that was my bug (I still introduce many :frowning: ) but now checked with the TK’s latest revision and it’s not - I just put a ~3.7V cell, voltage blinkout shows 3.7 but aux LEDs are red…
I look at the code and fail to see the culprit…

I don't own one and there's no info about LVP indications on the product page: https://intl-outdoor.com/led-flashlights/emisar-d4sv2.html.

What is it supposed to do? Does the MCU think it's voltage is low, indicated by dropping amps?

It’s about voltage indication rather than low voltage indication. It’s a special aux LED mode which turns them blue above 3.8V, green above 3.3, red above 2.9. Below that they turn off. At least that’s what I see in the source, not in operation.
I don’t have a proper PSU, just a set of cells charged to different levels and I don’t see the exact thresholds but at 4V I see blue, at 3.7V and 3.5V I see red. In actual use I’ve never seen green.