Flashlight Firmware Repository

2370 posts / 0 new
Last post
b3d0un
Offline
Last seen: 9 months 2 weeks ago
Joined: 07/22/2020 - 13:58
Posts: 2

Thank you. Glad to know it isn’t something I’m doing incorrectly.

Does anybody know the reason it can no longer be downloaded?

SammysHP
SammysHP's picture
Offline
Last seen: 35 min 8 sec ago
Joined: 06/25/2019 - 14:35
Posts: 1702
Location: Germany

b3d0un wrote:
Does anybody know the reason it can no longer be downloaded?
It is broken and the Launchpad team doesn’t want to fix it for some reason. Just use breezy to clone the repo.
Quadrupel
Quadrupel's picture
Offline
Last seen: 26 min 31 sec ago
Joined: 12/03/2017 - 10:40
Posts: 1143
Location: Lithuania

What is breezy ?

SammysHP
SammysHP's picture
Offline
Last seen: 35 min 8 sec ago
Joined: 06/25/2019 - 14:35
Posts: 1702
Location: Germany

Quadrupel wrote:
What is breezy ?
It is the version control system used by Launchpad.
Quadrupel
Quadrupel's picture
Offline
Last seen: 26 min 31 sec ago
Joined: 12/03/2017 - 10:40
Posts: 1143
Location: Lithuania

I downloaded 1 by 1 Big Smile

thehippoz
Offline
Last seen: 7 months 1 week ago
Joined: 02/19/2022 - 14:47
Posts: 4
Location: Fresno, CA

https://sourceforge.net/projects/tiny-84a-morse/

I used to post on here years back. This might be of use, it’s code for morse.

Edit: Should add, you have to go into the advanced menu 4 (adc) and hold the button down for awhile when you first flash it in, it’ll go through the adc options and if you keep holding, resets the light. This writes the necessary data in eprom. You can turn it off when it goes dark on the emitter and then it should work as written. I made quite a few of these lights, but in the end it was a fail. Noone really cares about morse. And the parts were expensive too. You need a decent inductor to safely put that much power into an emitter, and I figured out a neat trick on the tail cap to stop the arc. It turned out a fet and resistor simple. I ended up sourcing the inductor from isreal. The practical use turned out to be the usual. Guys were putting it on high and leaving it, burning out the emitters. It was all about high. Noone cared it was a morse code light with moonlight to blast. So that’s what I learned. I use it everyday for all sorts of things though.

Learned a lot here though. Some of you guys really know your stuff, couldn’t have created this without you.

Nanuek
Offline
Last seen: 2 months 4 weeks ago
Joined: 05/26/2021 - 11:14
Posts: 7

If anyone is used to using Docker for development I have created a simple Dockerfile for spinning up a development environment with everything needed to compile.

https://gist.github.com/darkporpoise/7bb3ec560c8d2aba5ac5489b76c8d327

It will download the source code from Launchpad if it hasn’t already. It also downloads the Atmel ATtiny Series Device Support pack but that doesn’t seem to enable compiling for Tiny1 series, I just get different errors Smile

madcrow
Offline
Last seen: 1 week 1 day ago
Joined: 09/04/2018 - 16:03
Posts: 80
Location: Hungary

I have recently modified Anduril 2 to include a (optional) visual low-battery-warning. I did my best to set it up in a way which gives clearly visible indications, while remaining as unobtrusive as possible. The notification is performed by the main emitters. The trigger is a combination of time, absolute voltage level, and voltage change.
You can read further details and download the source code via my GitHub repo:
https://github.com/madcrow/Anduril_LowBatteryWarning
(Yeah… I know, my videos are shitty Silly But they should be good enough to give you an idea of the default notification pattern.)


It also works during strobe modes:

Feel free to give it a try.
I included a bunch of compile-time-options, too, so its behavior can be easily customized.

Works reliably on my LT1.

Enjoy Smile

LunaLoves
Offline
Last seen: 1 hour 40 min ago
Joined: 05/13/2021 - 16:21
Posts: 75
Location: Hamburg, Germany

I’m not quite sure if this is the right thread, but does anyone got a 2-channel build of the Biscotti Firmware?

I would like to have it on my Fet+1 drivers like the mtn-electronics ones

I already looked at the Biscotti and Bistro source code but personally couldnt easily find what to change to make that happen

NewGuy420
Offline
Last seen: 1 month 1 week ago
Joined: 12/28/2021 - 22:38
Posts: 26
Location: CT

Is anybody having trouble downloading from firmware repository I’ve tried a couple times and its freezing halfway through..doing it on Android not cpu
Thanks

gchart
gchart's picture
Offline
Last seen: 4 days 13 hours ago
Joined: 03/19/2016 - 11:57
Posts: 3333
Location: Central IL

I know jon_slider was trying to download the tarball of a branch and has been getting HTTP 500 errors. I’m seeing the same thing.

thefreeman
thefreeman's picture
Online
Last seen: 3 min 44 sec ago
Joined: 01/06/2020 - 09:56
Posts: 1720
Location: France

it hasn’t worked for a very long time, on Windows you can use bazaar explorer : https://bazaar.canonical.com/en/

edit : Ah Android, you mean from a browser ?
edit : nope, doesn’t work either, some certificate error…

NewGuy420
Offline
Last seen: 1 month 1 week ago
Joined: 12/28/2021 - 22:38
Posts: 26
Location: CT

No my phone i have the Z flasher app it works really well its mostly the KR4 tintramp thats not working

jon_slider
jon_slider's picture
Offline
Last seen: 1 hour 39 min ago
Joined: 09/08/2015 - 12:20
Posts: 6734
Location: Central North America

gchart wrote:
I know jon_slider was trying to download the tarball of a branch and has been getting HTTP 500 errors. I’m seeing the same thing.

I just found this post by TK
https://www.reddit.com/r/flashlight/comments/u16k31/sp10_pro_bug_when_tu...

it gives a link to her latest Hex

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 2 weeks 16 hours ago
Joined: 01/12/2013 - 14:40
Posts: 10895
Location: (469219) 2016 HO3 // I get way more privmsgs than I can respond to, so please ask in a public thread if possible, for a faster answer.
Chatika vas Paus wrote:
I just checked my FWAA and it shows 0312 (fw3a 219) too.

From what I’ve heard, Lumintop downgraded the driver and then used mismatched firmware. Facepalm

I haven’t been in contact directly since 2019 though, so… I don’t know what they’re doing.

b3d0un wrote:
For quite some time now, I’m unable to download the tarball at all.

Canonical got rid of most of the Launchpad developers, so the site has been under-maintained for years. One of the consequences of this is, when the tarball function broke, nobody fixed it.

The recommended way to get the code is with bzr/brz (bazaar or breezy):

$ apt install brz
$ brz branch lp:flashlight-firmware
$ cd flashlight-firmware

The bazaar-vs-breezy thing is also a consequence of Canonical firing developers. They got rid of the Bazaar developers, but kept the name and the project ownership… so the developers forked it to a new name and kept working on it. The new one eventually replaced the old one, so now it’s Breezy (brz) instead of Bazaar (bzr).

After the code is branched locally, updates can be applied periodically with “brz pull”.

  • pull: apply upstream changes exactly, so the local branch will be an exact copy of the remote branch (may fail if local copy was changed)

If you made your own changes though, it’ll be necessary to use a more complex process: “brz commit ; brz merge ; brz commit”. This saves your local changes, merges in diffs from upstream, and then finalizes the merge. It’s generally a good idea to make sure the local and upstream changes don’t have any conflicts though, before doing the final commit. Breezy tells the user when it detects an obvious conflict, like when both branches changed the same file in different ways… but it can’t detect everything automatically. So, at minimum, it’s a good idea to do a sanity check by running the build script to make sure the code still compiles.

  • merge: apply upstream changes, but also preserve local changes
  • commit: check in local changes

To make things a little easier, I use a shell alias:

alias b=brz
alias g=git

Then I can use “b” or “g” to run these tools, like “b st” to see a list of changed files, or “b diff” to see exactly what was changed, or “b branch lp:~toykeeper/flashlight-firmware/anduril2” to download a local copy of the latest Anduril2 code.

TheRealBigJake
TheRealBigJake's picture
Offline
Last seen: 5 months 19 hours ago
Joined: 02/25/2021 - 02:16
Posts: 2
Location: US

@Nanuek Thanks for this. I have never used Docker but figured it out today and this worked for everything but downloading the source. Couldn’t download the tarball either so I grabbed it from somebody’s GitHub though it’s slightly out of date.
Anyways Anduril2 compiled for all but the 5 lights using the 1 series ATtiny boards on the first try. Smile

Chatika vas Paus
Chatika vas Paus's picture
Offline
Last seen: 3 hours 15 min ago
Joined: 09/03/2017 - 13:46
Posts: 1243
Location: PL

Is it possible to somehow enable a soft start in Biscotti? When I just uncomment it, I get errors like this:

kiriba-ru S2+ and S21a spacers are available in EU. PM me. A few details here

memd
Offline
Last seen: 3 months 3 weeks ago
Joined: 04/27/2022 - 09:48
Posts: 7
Location: Switzerland

Hi, is there already a PDF version of the Anduril 2 manual somewhere? I’m aware of Ivan’s HTML version which is great in the browser but AFAICS not when printing to PDF.

If not I’d be happy to make one… The current anduril-manual.txt is close to Markdown, and I guess Ivan has a Markdown version (to generate his website) which raises the next question:

ToyKeeper would you consider merging a branch that converts anduril-manual.txt to Markdown? (Any reason it hasn’t been done already with Ivan’s version?)

If it’s just a matter of someone needing to do some more work I would be happy to contribute.

Also curious if Ivan’s (or someone else’s) Markdown version is publicly available somewhere…

thefreeman
thefreeman's picture
Online
Last seen: 3 min 44 sec ago
Joined: 01/06/2020 - 09:56
Posts: 1720
Location: France

Are you on Linux or do you use Microchip studio on Windows ? I never managed to build Anduril with Microchip studio, with similar errors (”first use in this function”). I gave up and installed an Ubuntu VM, a few commands and done .

Edit : the message I replied to was deleted.

RT--
Online
Last seen: 10 min 52 sec ago
Joined: 11/26/2017 - 11:59
Posts: 44
Location: Finland

Sorry, I thought I’d move it to the Anduril 2 thread, and deleted the message, but here it is again.

Learning to make my own version of Anduril 2, and tried to build the downloaded Toykeeper branch before touching it, but the build fails with these errors.
Anyone want to help me out?

I’m building on linux.

Quote:

ERROR: build failed
= noctigon-kr4-nofet =
../../../bin/build.sh 1634 anduril -DCONFIGFILE=cfg-noctigon-kr4-nofet.h
avr-gcc -DCONFIGFILE=cfg-noctigon-kr4-nofet.h -Wall -g -Os -mmcu=attiny1634 -c -std=gnu99 -fgnu89-inline -fwhole-program -DATTINY=1634 -I.. -I../.. -I../../.. -fshort-enums -B /gcc/dev/attiny1634/ -I /include/ -o anduril.o -c anduril.c
In file included from anduril.c:157:0:
off-mode.c: In function ‘off_state’:
off-mode.c:37:9: warning: implicit declaration of function ‘rgb_led_update’ [-Wimplicit-function-declaration] rgb_led_update(rgb_led_off_mode, 0); ^
off-mode.c:37:24: error: ‘rgb_led_off_mode’ undeclared (first use in this function) rgb_led_update(rgb_led_off_mode, 0); ^
off-mode.c:37:24: note: each undeclared identifier is reported only once for each function it appears in
off-mode.c:295:23: error: ‘RGB_LED_NUM_PATTERNS’ undeclared (first use in this function) mode = mode % RGB_LED_NUM_PATTERNS; ^
off-mode.c:304:9: error: ‘setting_rgb_mode_now’ undeclared (first use in this function) setting_rgb_mode_now = 1; ^
off-mode.c:307:27: error: ‘RGB_LED_NUM_COLORS’ undeclared (first use in this function) mode = mode % RGB_LED_NUM_COLORS; ^
In file included from anduril.c:159:0:
load-save-config.c: In function ‘load_config’:
load-save-config.c:92:9: error: ‘rgb_led_off_mode’ undeclared (first use in this function) rgb_led_off_mode = eeprom[rgb_led_off_mode_e]; ^
load-save-config.c:93:9: error: ‘rgb_led_lockout_mode’ undeclared (first use in this function) rgb_led_lockout_mode = eeprom[rgb_led_lockout_mode_e]; ^
load-save-config.c: In function ‘save_config’:
load-save-config.c:171:34: error: ‘rgb_led_off_mode’ undeclared (first use in this function) eeprom[rgb_led_off_mode_e] = rgb_led_off_mode; ^
load-save-config.c:172:38: error: ‘rgb_led_lockout_mode’ undeclared (first use in this function) eeprom[rgb_led_lockout_mode_e] = rgb_led_lockout_mode; ^
In file included from anduril.c:185:0:
lockout-mode.c: In function ‘lockout_state’:
lockout-mode.c:64:24: error: ‘rgb_led_lockout_mode’ undeclared (first use in this function) rgb_led_update(rgb_led_lockout_mode, 0); ^
lockout-mode.c:163:23: error: ‘RGB_LED_NUM_PATTERNS’ undeclared (first use in this function) mode = mode % RGB_LED_NUM_PATTERNS; ^
lockout-mode.c:172:9: error: ‘setting_rgb_mode_now’ undeclared (first use in this function) setting_rgb_mode_now = 1; ^
lockout-mode.c:175:27: error: ‘RGB_LED_NUM_COLORS’ undeclared (first use in this function) mode = mode % RGB_LED_NUM_COLORS; ^

RT--
Online
Last seen: 10 min 52 sec ago
Joined: 11/26/2017 - 11:59
Posts: 44
Location: Finland

Strange; my Linux Mint box must have some issues. Got it working on an Ubuntu VM.

Quadrupel
Quadrupel's picture
Offline
Last seen: 26 min 31 sec ago
Joined: 12/03/2017 - 10:40
Posts: 1143
Location: Lithuania

Why dont just share working Anduril 2 project for Armel studio?

g_damian
g_damian's picture
Offline
Last seen: 10 hours 11 min ago
Joined: 08/20/2017 - 06:52
Posts: 726
Quadrupel wrote:
Why dont just share working Anduril 2 project for Armel studio?

I guess the question to be answered is who would support the atmel studio project…

epv
Offline
Last seen: 2 days 17 hours ago
Joined: 01/26/2017 - 13:47
Posts: 25
Location: california

I’m trying to find a firmware to use for a twisty flashlight. I’ve never really played with twisties but I can only imagine trying to use something with a complex ui like Anduril would be a nightmare. Has anyone even done a firmware geared toward this? I couldn’t find anything in Toykeeper’s repository, anyway.

I got an ITP A2 Eos (the last remaining cr2 light afaict) and it has room for a 15mm driver, so I’ll probably use one of the mtn-15dd ones. The stock driver is a crappy boost converter made for disposables. I just want something basic like L-M-H i guess.

Hoop
Hoop's picture
Offline
Last seen: 1 day 9 hours ago
Joined: 12/20/2012 - 05:33
Posts: 1293
Location: land jurisdiction

Any simple clicky UI can work for a twisty. The “standard” firmware option from MTN should work fine. I believe it is best to use a special fuse setting in order to prevent mode skipping: -Ulfuse:w:0×79:m This adds a 64ms startup delay for the MCU. You could ask mtn to flash it with this fuse setting.

epv
Offline
Last seen: 2 days 17 hours ago
Joined: 01/26/2017 - 13:47
Posts: 25
Location: california

Ok cool – if the startup delay helps, that should be good enough. I can flash it myself, I’m building from source because i want to customize the levels anyway and not use the FET, to avoid melting the thing. I just didn’t want to deal with trying to imitate 50mS button “clicks” by twisting the head really fast. Thanks.

Hoop
Hoop's picture
Offline
Last seen: 1 day 9 hours ago
Joined: 12/20/2012 - 05:33
Posts: 1293
Location: land jurisdiction

For twisty use it is probably best to avoid clicky firmwares with fancy timing based mode controls like Bistro. Stick to Starry-offtime, Star_noinit, etc.

epv
Offline
Last seen: 2 days 17 hours ago
Joined: 01/26/2017 - 13:47
Posts: 25
Location: california

Ok so this worked out really well, I hacked up an old biscotti firmware, so no long-press reverse cycle etc, and cut down the mode list a bit, and made it work on a mtn-15dd driver board. Voltage and temp cutoff work, no problems so far.

strobe mode next to a FW3A for size.

bobvoeh
bobvoeh's picture
Offline
Last seen: 11 hours 51 min ago
Joined: 09/21/2021 - 23:29
Posts: 463
Location: Florida, United States

epv wrote:
Ok so this worked out really well, I hacked up an old biscotti firmware, so no long-press reverse cycle etc, and cut down the mode list a bit, and made it work on a mtn-15dd driver board. Voltage and temp cutoff work, no problems so far.

strobe mode next to a FW3A for size.

Nice job!

Pages