Sorry, don't own a HL01, if I did, you'd have the info you want. Dunno if anyone did a tear down to provide details on the driver. Once we know the driver, could probably get the proper Anduril build for it. Unfortunately, Astrolux hasn't communicated well back the the community so TK probably isn't aware of the HL01's Anduril setup.
For the EDC18, I'm sure I have, or could make an Anduril cfg file for it. Just checked - back in April 2019 I did a custom config for Anduril 1.1 on the EDC18, adding support for the AUX/switch LED. I rewired the switch LED so Anduril controls it.
Sorry, was at work - home now. Reviewed and trying to recall (at my age, that can take a while...). This is what I did:
Removed R4 - was connected to pin #7 and does nothing anyway (from TK's experimenting with detecting input from the main LED)
Removed R10 - original hard wired resistor for the switch LED
solder in a 10K resistor, tomb-stoned -- be sure there's no contact to the "+" pad
solder a 30 AWG wire from pin#7 to the 10K
So, the end result, as shown, is I got a switch surface mount LED connected to MCU pin #7, with a 10K resistor in between, as shown:
Now Anduril has to be tweaked to support this hardware configuration. So this is the Anduril hwdef file I used, hwdef-EDC18.h:
#ifndef HWDEF_EDC18_H #define HWDEF_EDC18_H
/* BLF/TLF EDC18 driver layout * * The Lumintop EDC18 is basically the same driver as used in the FW3A, but has the e-switch mounted on the driver PCB. * For my custom EDC18, I removed the resistor off of PIN #7 for the "optic nerve" and wired a jumper to the switch LED * resistor - using 10K for now, and had to tombstone the resistor to break the connection to Batt+. This will allow * Anduril to control the switch LED from pin #7 * ---- * Reset -|1 8|- VCC * eswitch -|2 7|- switch LED (0402 under the switch with 10K 0603 resistor, removed (20K 0402) * FET -|3 6|- 7x7135 * GND -|4 5|- 1x7135 * ---- */
#define PWM_CHANNELS 3
// ... the modded EDC18 has aux switch LED on pin 7 #ifndef AUXLED_PIN #define AUXLED_PIN PB2 // pin 7 #endif
//----------------------------------------------------------------------------- // Thermal Settings //----------------------------------------------------------------------------- // optional, makes initial turbo step-down faster so first peak isn't as hot // the D4 runs very very hot, so be extra careful //#define THERM_HARD_TURBO_DROP
// stop panicking at about 3A or ~1100 lm, this light is a hotrod #define THERM_FASTER_LEVEL MAX_Nx7135
Well done! As i understand, we could only change power on led (low, high), turn it off and makes blinking? No way to show battery stats?
Is it difficult to remove driver?
In Anduril and Anduril 2, battery stats is blinked out on the switch LED 3C in the lower output setting
I've broken driver glue seals many many times - see below
I always start with the solder pick tool going through one of the LED wire holes. It usually fits in there fine with the wire, tight fit though. Trick is to feel around with the solder pick to be sure you are not on a component, closer to an outside edge the better. I'll try simply applying pressure first without the hammer. If that doesn't work, then the hammer comes out. Start with light taps initially - be as careful as you can, but sometimes heavier blows are needed
With the driver out, you can see the traces of glue around the edge. Also in this case, I did make some minor damage to the driver at around the R4 label below at the lower pin of the FET. Fortunately, the 4 pins on that side of the FET are redundant, so no damage. Of course this is fairly low risk for me because I could replace components, repair a driver like this one easily.
Some preprocessor options are for FSM (the framework used by Anduril), but most are options for Anduril and these are not documented in a separate file (yet), only at the place of definition.
I'm unsure about where to post this, but I guess I'll ask it here. I'm rebuilding an old Sky Ray King I've had kicking around for years, and I would like to use Anduril. The driver I'm using is one of the Texas Avengers boards (46mm) so it's a 3 channel driver. My problem is that I can't seem to get it to switch over the FET direct drive mode (turbo). And which one of the hex files from here would be the most compatible with this driver?
kelsey - Not sure how much you know. The TA driver is 3 channels, so you need a 3 channel hwdef file, and the pin # assignments of each channel are important. Not sure if any stock Anduril2 hwdef files support that driver, maybe, not sure.
Are you building a Anduril2 HEX file or do you need one, or did you use one? Which one?
I’ve compiled a few drivers to HEX before but I don’t really know what I’m doing. A pre-compiled HEX file would be great, but I’m not familiar with any of the lights and their drivers in that database so I’ve just tried random files. I imagine that code compiled for a triple channel driver would work? Or how do I make it compile so it will work on my end?
I might add that I’ve been trying Narsil as well. Would that be better?
Not all 3 triple channel drivers will work because some use different I/O pins than others. There's 5 basic I/O pins
Two Channels (maybe originated with the Q8):
Pin #2 - typically the e-switch
Pin #3 - typically the AUX/switch LED
Pin #5 - 7135
Pin #6 - FET
Pin #7 - not used, or if it's a 2S battery driver, then there's a voltage divider circuit on this pin used to read the battery voltage level
For 3 channels, it's tricky because there wasn't a standard established. I'm not sure offhand how TA used the I/O pins. Might need a custom hwdef file, not sure. I'm not home so can't check right now.
At home I could probably do the research and build you an Anduril2 HEX file for that driver, or if someone else can. Best to post on the Anduril2 thread.
Is it a documented feature or a bug in Anduril that if the ramping mode setted to smooth ramping, and the lamp is in locked mode, the 1h lowmoon and the 2h highmoon, while it setted to stepped ramping, the locked mode is 1h highmoon and the 2h lowmoon?