Attiny25/45/85 FW Development Thread

Small dual-switch? Ultrafire C20 aka Crelant 7G3CS. There is a very positive and helpful review on BLF. I’ve been wanting one for months and I just Tuesday ordered one on AliExpress for $20 flat.

Edit: Review: UltraFire C20 / Crelant 7G3CS clone

Thanks! Both the EE X6R and UF-C20 look like good hosts for this. The X6R has a bonus of built-in indicator lights (though I don’t think there will be any spare pins to drive them), while the C20 is smaller and uses e-switch wires, and specs of its innards are published in JackCY’s review.

Edit: I can’t tell what size the EE X6R driver is; looks like 20mm. I think it might have the switch onboard though, with a custom-fit driver, so it might need a smaller driver piggybacked onto it like how this Convoy L4 mod did it.

If I understand correctly, I think the pins will be…

reset

1

8

VCC

OTC

2

7

Voltage ADC

e-switch

3

6

PWM 1 (FET)

GND

4

5

PWM 2 (7135)

(I think pins 2 and 3 can be swapped, but both will be needed)

So, no room for indicator lights. But plenty of code space for extra modes and options. :slight_smile:

^ If you're talking about Tom E's latest, Pin 2 is momentary switch and Pin 3 is unused. At least that is what I assumed and did. Didn't look at the code. Now I need to check. Checked.

TK I’m hoping you have enough time to do both a ridiculously fetaured DS FW on the bigger MCU’s and a tamer version for the 13a.

I love the UI of STAR DS already, it’s just missing “modern amenities” like dual-pwm support and multiple mode groups

The C20 is a bit of an odd setup with that driver spring design/setup, and the driver is 19 mm in diameter according to Jack's specs. Check out that review carefully. Of course that was all pre-OSHPark drivers Smile. It is nice to have both switch's though in a 18650 tube EDC and with a separate switch mount, not driver mounted. But it's length of 135 mm is a bit big. If a conventional driver mounted spring can be used, and you can get a good ground connection for the driver, it would be nice. For $20 it's a good deal.

But to use this host for testing, it's not ideal - I'd much rather have a retaining ring on the driver and enough space to fit long wires, so I can easily re-flash the driver without soldering. A bigger host would be better I'd think.

Where'd you find this for $20 on AliExpress? Cheapest I found is the Crelant one for $24.

Check out my X6R mod details in post #78 here: https://budgetlightforum.com/t/-/33113. It's a fwd clicky tail switch and is now running my e-switch/NOINIT combo on a 25.

I got it during the 8/25 sale

Hmm… The C20 has a weird nylon retainer / spring setup, while both the X6R and L4 look like they’ll need the driver piggybacked. None seem ideal. But all I really need for development is a simple tube light head and some extruded parts set up for easy access. The host is more for testing real-world use later in the process.

What would be really cool is a Roche F6 with a switch in the tail instead of a glass breaker. Of course, that also would require a special driver due to the way the switch is handled… like, a derivative of Helios’ driver.

pilotdog68, I think the attiny13a might be able to handle a dual-PWM ramping firmware with the ability to use a tail switch for momentary tactical purposes. No mode groups, but you’d have quick access to virtually every possible level. Would this work? (I’ve been meaning to make one of those, but don’t yet have a FET+1 with an e-switch)

Ahh, missed that... Could be the Crelant 2015 version has some internal design changes, maybe. Jack's review was back in 2013. I'm thinking though they only changed the LED to XM-L2.

Ramping isn’t my thing personally, but I’ll be very interested in whatever you come up with. The more options we have for dual-switch lights the better.
.
.
I’m just worried all the cool kids are going to move on to the big mcu’s and I’ll be sitting here in the dirt with my 13’s :bigsmile:

I ordered the one that said 2015 version because it looked like the side button didn’t stick out an obnoxious amount (like some others did).

Even from Store.Crelant.com the price is only ~$25, so I’m not sure if they’re “fake” crelants or not. I’m just hoping the quality is as good as Jack’s sample was. They shipped e-packet, so hopefully it will come quickly. If been saving my Nichia 219c for it.

Oh, I totally missed that. It looks like all the hard parts (figuring out what to do) are done! I should probably go for the X6R as a host instead. :slight_smile:

The X6R definitely looks like a nicer host overall… and having the switch built in to the piggyback setup would make testing easier. Plus having the charge circuit and indicator LEDs continue working after the mod is an unexpected bonus.

I feel like a fish, flip-flopping around so much today.



Hi Tom,
I am just curious of you got the PM I send you on 8/24/15 or not?

TK, the F35 is pretty a sweet little light. The host may still be on sale for $15. There is a ton of space in the driver compartment. You would just need to rig up something to hold the momentary switch. You could use plastic, wood, copper, sugru, etc.

I wouldn't use a long post switch like below. Just stuck it in there to get the concept across.

Yes, sorry, been tied up - no progress. I'll pm you today, later.

Hey guys, I finally got an AVR Dragon so I can do HV programming. If any of you have bricked chips you want reset you can send them to me and I'll try and fix them for you (no cost, just shipping).

I've got a few more projects to get out of the way then I'm going to flash my beta firmware from a month or so ago and see if it actually works...it built then, but I never had a chance to try it.

Which variants of the Attiny45 and 85 are you using? Are they the same package size? I’m going to see if I can fit one of them on my new driver

Attiny45 and 85 are only available in a wider package. But by bending the legs under, it can be made to fit on board meant for attiny13.

I was going to see if I could fit the pads so you wouldn’t have to bend the legs

Here's what I would lovingly call a "ghetto mod" 17mm FET + 7135 driver. It's rough around the edges, but it should work for those of you who are early adopters. Still lots of edge clearance.

Oshpark Link.