Flashlight Firmware Repository

2276 posts / 0 new
Last post
Skylight
Skylight's picture
Offline
Last seen: 9 hours 49 min ago
Joined: 10/01/2018 - 04:49
Posts: 1009
Location: Europe

Is there an Anduril version that uses only the FET and no 7135’s? I would need one for 6V and 12V drivers.

SammysHP
SammysHP's picture
Offline
Last seen: 10 hours 31 min ago
Joined: 06/25/2019 - 14:35
Posts: 768
Location: Germany

You can use any single channel config (often “nofet”) and use the corresponding pin.

pinkpanda3310
pinkpanda3310's picture
Offline
Last seen: 2 days 4 hours ago
Joined: 12/28/2013 - 08:45
Posts: 2790
Location: Perth

Please help. I tried to flash an fw3a driver with narsil and got this error… “Event not declared”

SammysHP
SammysHP's picture
Offline
Last seen: 10 hours 31 min ago
Joined: 06/25/2019 - 14:35
Posts: 768
Location: Germany

Cannot see the picture. Have you modified narsil to run on the driver?

pinkpanda3310
pinkpanda3310's picture
Offline
Last seen: 2 days 4 hours ago
Joined: 12/28/2013 - 08:45
Posts: 2790
Location: Perth

I’m a numpty so I didn’t realise narsil needs to be modified to work on this driver. It’s the pic visible now?

SammysHP
SammysHP's picture
Offline
Last seen: 10 hours 31 min ago
Joined: 06/25/2019 - 14:35
Posts: 768
Location: Germany

It is. I highly doubt that you can compile and flash Anduril or Narsil with the Arduino IDE. Wink You’ll need comman line avr-gcc and avrdude for compiling and flashing. There are several tutorials how to do it.

Does Narsil work with three channels? Does the pinout match?

pinkpanda3310
pinkpanda3310's picture
Offline
Last seen: 2 days 4 hours ago
Joined: 12/28/2013 - 08:45
Posts: 2790
Location: Perth

Damit this stuff is way too complicated for me. I can’t even get the name right. It was andruil.c from toykeepers launchpad. I just tried with command prompt / avrdude and i get a file directory error. I appreciate your willingness to help SammysHP but this is already irritating the c^@p out of me

pinkpanda3310
pinkpanda3310's picture
Offline
Last seen: 2 days 4 hours ago
Joined: 12/28/2013 - 08:45
Posts: 2790
Location: Perth

I don’t know if I’m a step closer but in command prompt i got the directory sorted but the hex file cannot be opened or read

gchart
gchart's picture
Offline
Last seen: 1 hour 56 min ago
Joined: 03/19/2016 - 11:57
Posts: 2938
Location: Central IL

Have you got it to compile? How does the command prompt look when you run the build-all script?

pinkpanda3310
pinkpanda3310's picture
Offline
Last seen: 2 days 4 hours ago
Joined: 12/28/2013 - 08:45
Posts: 2790
Location: Perth

I finally got it to flash. It turns out the directory was the issue. I moved the hex file and it worked fine Smile Now that i got it to work (once at least Silly ) i need to learn how to modify the hex file Tired

Skylight
Skylight's picture
Offline
Last seen: 9 hours 49 min ago
Joined: 10/01/2018 - 04:49
Posts: 1009
Location: Europe
SammysHP wrote:
You can use any single channel config (often “nofet”) and use the corresponding pin.

Thank you SammysHP. To change the pin you need to modify the file, right? I was hoping for a complete hex file. Maybe I will need to figure out how to create a hex file myself. Last time I tried it just showed me a bunch of errors.

SammysHP
SammysHP's picture
Offline
Last seen: 10 hours 31 min ago
Joined: 06/25/2019 - 14:35
Posts: 768
Location: Germany
Skylight wrote:
SammysHP wrote:
You can use any single channel config (often “nofet”) and use the corresponding pin.

Thank you SammysHP. To change the pin you need to modify the file, right? I was hoping for a complete hex file. Maybe I will need to figure out how to create a hex file myself. Last time I tried it just showed me a bunch of errors.


No, just use the FET on the 7135 pin of the MCU.
chadvone
chadvone's picture
Offline
Last seen: 2 days 4 hours ago
Joined: 08/28/2015 - 23:48
Posts: 1935
Location: Iowa

I have flashed drivers in the past. But after 2 computer crashes and many motorcycle crashes I can’t seam to put it all together again.

I have used ToyKeepers README file.
I believe I have downloaded all the necessary files to my HOME folder.
I have connected with an Attiny85.

After compiling an untouched rampingiosv3.c just to test.
I get 6 pages of errors.

Basically a few #warning “device type not defined and #error Requested EEPROM_BYTES too big

then about 5 pages of undeclared and implicit declaration.

I believe I am missing a library, or don’t have library in path.

gchart
gchart's picture
Offline
Last seen: 1 hour 56 min ago
Joined: 03/19/2016 - 11:57
Posts: 2938
Location: Central IL

Linux or Windows? I’m guessing Linux since you referenced a Home folder. If Linux, are you using the “build-all.sh” script or are you trying to build a single config? When downloading the files, did you maintain all of the folder structures? If not and you just stuck all of the files in the same folder, you’d need to fix the directories for all of the #includes.

chadvone
chadvone's picture
Offline
Last seen: 2 days 4 hours ago
Joined: 08/28/2015 - 23:48
Posts: 1935
Location: Iowa
gchart wrote:
Linux or Windows? I’m guessing Linux since you referenced a Home folder. If Linux, are you using the “build-all.sh” script or are you trying to build a single config? When downloading the files, did you maintain all of the folder structures? If not and you just stuck all of the files in the same folder, you’d need to fix the directories for all of the #includes.

Using Ubuntu. Vim. avr-gcc. Do I need to add anything to avr-gcc rampingiosv3.c when compiling?

gchart
gchart's picture
Offline
Last seen: 1 hour 56 min ago
Joined: 03/19/2016 - 11:57
Posts: 2938
Location: Central IL

No. But I wouldn’t compile with gcc directly. Use the build-all.sh build script.

Sunnysunsun
Sunnysunsun's picture
Offline
Last seen: 44 min 17 sec ago
Joined: 08/09/2019 - 12:51
Posts: 543
Location: Toronto

Does anyone else’s build-all.sh build script not compile 1634 hexes? All the attiny85 hexes show up but none of the 1634 ones get created for me.

gchart
gchart's picture
Offline
Last seen: 1 hour 56 min ago
Joined: 03/19/2016 - 11:57
Posts: 2938
Location: Central IL

Do your config files for the 1634 targets include this towards the top?

// ATTINY: 1634

And does your build-all.sh script include this line?

ATTINY=$(grep 'ATTINY:' $TARGET | awk '{ print $3 }')
Sunnysunsun
Sunnysunsun's picture
Offline
Last seen: 44 min 17 sec ago
Joined: 08/09/2019 - 12:51
Posts: 543
Location: Toronto

I dunno. I’ve been downloading my files directly from the latest revisions on launchpad.

https://code.launchpad.net/~toykeeper/flashlight-firmware/trunk

Is this the right place to get them? I just click the number, 247 at the moment, and then click download tarball

I guess I have to add those lines in if they’re not they’re already?

On another note, how do you guys bring the spaghetti monster files into a project? Do you just copy paste into the project’s folder? I’m not sure how to open anduril in atmel studio as a project so I can build natively in atmel.

The old guides I could find on blf have lost their images/are out of date

SammysHP
SammysHP's picture
Offline
Last seen: 10 hours 31 min ago
Joined: 06/25/2019 - 14:35
Posts: 768
Location: Germany

Sunnysunsun wrote:
I dunno. I’ve been downloading my files directly from the latest revisions on launchpad.

https://code.launchpad.net/~toykeeper/flashlight-firmware/trunk

Is this the right place to get them? I just click the number, 247 at the moment, and then click download tarball


That’s an ancient version, many years old. Which version do you want?

Anduril 1: https://code.launchpad.net/~toykeeper/flashlight-firmware/fsm
Anduril 2: https://code.launchpad.net/~toykeeper/flashlight-firmware/anduril2

Sunnysunsun
Sunnysunsun's picture
Offline
Last seen: 44 min 17 sec ago
Joined: 08/09/2019 - 12:51
Posts: 543
Location: Toronto

Oh I see. Thanks for the link. Is “download tarball” the right button to click?

SammysHP
SammysHP's picture
Offline
Last seen: 10 hours 31 min ago
Joined: 06/25/2019 - 14:35
Posts: 768
Location: Germany

Don’t know, I use brz on the command line. If it downloads the full repo head it should be correct.

Wesku79
Offline
Last seen: 1 week 5 days ago
Joined: 03/26/2021 - 16:09
Posts: 2
Location: Finland

Hello, new user here.

I have been looking for a source code of this 7135 driver: https://a.aliexpress.com/_mPVnPSJ

5modes: Low-Medium-High ,Recycling; Double-Click at any mode turn to strobe mode; Three times Click at any mode enters into stepless dimming mode (In the current state, the brightness first decreases and then rises. When it reaches lowest or highest, it will flash once and wait for 1 second to continue to increase or decrease. When it is turned off at any time in the stepless dimming state, the brightness at the time of shutdown can be saved.)

So far I haven’t found the code. Does it even exist in this repository?

I would like to modify it with a few elements of TK’s crescendo firmware. For example, I don’t need strobo, but I would definitely use battery check instead.

MtnDon
MtnDon's picture
Offline
Last seen: 16 hours 59 min ago
Joined: 08/27/2015 - 18:25
Posts: 3540
Location: Canuk in NM

I’m not an expert, but I believe Crescendo is designed to be used on attiny 13A, 25, 45 or 85 MCU’s. (on the 13A there are reduced features) Those are all 8 pin devices. The driver pictured appears to have 10 pins. I don’t have any idea what that is but my guess is that it might not be easy to get crescendo to run on that MCU. Chances are there is no open source code for the firmware on that driver, but I am guessing.

Wesku79
Offline
Last seen: 1 week 5 days ago
Joined: 03/26/2021 - 16:09
Posts: 2
Location: Finland

Oh,I didn’t spot it had 10 pins. I thought all of the 7135 drivers are attinys. Too bad, I have already ordered a couple of those. Maybe I can live with them, but i will surely miss battcheck.

Maybe that chip is CH552E or CH554E

Pages