Attiny25/45/85 FW Development Thread

Looking forward to flashing, thanks Tom.

Hopefully my 85v's will turn up tomorrow so I can get one into a light over the weekend.

Yes - it's in the code, ported over from TK's bistro, just commented out. It didn't look unique enough to stand out. I'm not happy with the transition from one strobe to the next - when the differences aren't obvious it can get confusing navigating. If you look at the code structure, it's pretty easy to mix/match 'special' modes. Clearly, your most important one for quick access should be the first.

I'd like to add even more strobes&beacons, then build out a config UI to allow them to be selected, arranged, etc. Don't think I'll do that now though. I have to stop, do a little more testing, put it in a variety of lights, and hopefully get some more feedback.

Thoughts on my initial roll-out for lights is:

  • SupFire M2-Z continues as a easy to update test light
  • an AS31 (for LJ) (FET+1, just needs a 85V upgrade)
  • X6R - to test it with the NOINIT/brownout option turned on for the X6R's tailswitch
  • the SolarStorm SC01 (modded with my regular e-switch firmware)
  • UranusFire 818 (apart - need to mod up from scratch)
  • SupFire L5 - runs e-switch now, but I must have messed up the LVP so it needs to be updated anyway
  • SupFire M6 - lock-out feature really needed here, runs a e-swtich FET now (~5K lumens)
  • need time for the SolarStorm SC03 (taken apart, not yet modded)
  • Yezl Y3's, ZY-T11 clones, etc.... (modded and unmodded)
  • Need to adapt this somehow to a Convoy/Roche F6...
  • FandyFire K2 (FET based now)
  • Crelant 7G2, 7G10
  • oh so many more....

^ Thank you Tom E for sharing your latest versions. I just received some 85's yesterday. I hope to flash your latest above and test drive it tonight.

I need to get me some 85s and a dual-switch host. Just really busy lately and it’ll probably stay that way for the rest of the year.

Hey Tom E,

Can you tell me what fuses you recommend with your latest release. I don't want to assume the fuses recommend in the C code has been updated unless you tell me so.

Yep - those are the fuses I'm using - the ones in the commented code match the 85fuses.bat file posted in the same google drive folder, and that's the one I use.

The current source code has the NOINIT disabled, so it flash's twice when power is applied instead of trying to restore the saved mode. The test light I'm using (the SupFire) doesn't have a power switch.

My 85v's arrived today; looking forward to flashing & testing over the weekend.

The pins are extremely easy to bend to suit the 13a board layout; I just held the 85 on it's side, & pressed the legs lightly against the bench, until they touched the side of the chip.

:beer:

Added 1st draft of a user manual in the same google drive share here:

https://drive.google.com- 25-45-85 stuff

It's a 2 page doc. Both PDF and docx formats are posted.

Update: Hope someone can take a looksy at the manual and tell me what you think. Tried to keep it short and to the point. Made a couple minor tweaks to timing values.

Lights w/85 new firmware so far:

  • SupFire MR-Z test light
  • Rocher AS31 (shipped out)
  • ZY-T11 clone w/XM-L2 T6 4C, MaxToch 26mm - does bout 1500 lumens
  • Another this eve: X6R

Got 3 lights now here with the 85V and e-switch firmware. For the X6R, I turned on the "OffTimeEnable", so I could use the fwd clicky tail switch. Actually, it works kind of nice. It appears the 2 blinks is in the mode rotation on the tail. So, I can enable 2 blinks when the light is powered up from the tail, or, I can set one of the regular modes as the power-up default mode -- interesting feature....

Really liking the battery voltage display - it's coming in handy. The X6R gave me some troubles. Apparently the PWM level of 2 for moon mode is not working on this 7135. Not sure if I installed a 350 or 380 - I was using both. I disabled moon mode for now, and even the low mode is pretty darn low on this light/driver. Hhmm...

^

I just read your manual. It reads easy and clear. Man, you have a lot of nice stuff in this FW. Can't wait to try it out. I was hoping to have by now, but I just been to beat after work this week.

I got my first 85 up & running last night, with the most recent version of TomE's code.

I had to up the Moon value a little, but other than that, it works well 'out of the box'.

At first I didn't expect the 'one-click-off' after the mode had locked in, as I was used to being able to step up & down modes like in STAR Momentary. A more thorough read of the manual clarified things for me...

I'm guessing if the line "#define IDLE_TIME" was commented out, the modes would not 'lock in', & you could step up & down the modes?

If so, could this be added to the config table easily enough?

I'm about to install this into a D01, can't wait to try it out in a light! :beer:

Yes, I believe so - commenting that out should disable it. Probably didn't try it. I'll review it once again. For that moon mode, I used the same value TK had, think a PWM of 2 - originally I used 3. I also ran into a problem with a X6R using 2, but think the X6R driver has a 380 7135. It's working fine on 3 other lights - I think they are using 350's. Do you think yours is a 350 or 380?

It's a 380, but the bench test led is an old XML, so that will have a bearing on it as well.

I ended up using a value of 4 to get it solid.

Hhmm... I really like the low-ness (is that a word?) of the 2 value. Stupid me didn't fully test it out before assembling the X6R, so might be stuck with no moon mode for a while. Too many other lights to update. Great though I can simply re-configure it to eliminate moon mode. Want to do a lot more of course - endless # of ideas. Also need to install TK's bistro and play with it.

I'm finding the 85 mod upgrade is going pretty smooth. Here's what I do for the FET+1 13A drivers to upgrade:

  • use my slow hot air gun (stamp heat tool) to remove the 13A MCU
  • bend the 85 pins in, try to keep them even - they bend quite easy
  • clean up the pads: use solder wick w/extra flux to remove old solder, clean up with isop. alcohol
  • dnld the firmware to the MCU (MCU is air clipped in)
  • use a decent amt of solder paste on the pads, then use my stamp heat tool to reflow the MCU on
  • I continuity check every used pin (6 of them) - sometimes find a poor pin contact, and touch it with the iron with solder on the tip to fix it up. Even with the bent pins, it's a real tight fit on those pads.

Thanks Tom E Iam really pumped about the Rocher AS31 will you do a seperate link for the build of the AS31?

Anyone have, or thinking of creating a 20mm FET+1 driver, preferably with 45/85 spaced pads?

I can do that if you want might have to wait till the start of next week tho.

EDIT: There is this

If you want anything special done just ask. 3rd PWM output 1 x 7135 + 2x 7135 + FET. Whatever

After getting a driver into a light & messing with testing it for the last few days, I decided to pop it back out & re-flash with a Moon value of 2. The LED is an XP L HI. It was brighter than I expected, but still a very nice usable Moon. I reckon I could have used a value of 1 & it would have been fine.

Oh - this was on a 350 chip as well.

Ahhh, that PD68 looks real good, in sizes of 17, 20 , and 22 with the 20 and 22 to fit 45/85's. Gotta order some - they will do for sure. Looks like no pads for zener or LDO, but zener should be do-able, not sure how to jury rig up a LDO - have to research/look around.

This?

Need a post #. Your direct post link depends on the "comments per page" setting.