wight catchup

57 posts / 0 new
Last post

Pages

wight
Offline
Last seen: 8 months 1 day ago
Joined: 11/27/2013 - 16:40
Posts: 4968
Location: Virginia, USA
wight catchup

It looks like I’m back for a while after a long break. My time away from the forum started 30 months back and I’ve missed a few things. Wink I’m really looking forward to taking advantage of the new features which have cropped up while I was gone – thanks for the hard work folks! Smile

While I get my thoughts together (and ask for help!) I thought it might be best to try and consolidate my notes here.

  • Parasitic drain / quiescent current in an e-switch driver can now be as low as ~0.02mA. Apparently this is primarily due to improvements in firmware implementations for sleeping the MCU. In ToyKeeper’s Emisar D4 review thread there is some discussion of the consumption starting at post #1568 and continuing for the next several posts. TK clarified this info for me in post #4900 as well.
  • MCU lockups/freezes in high-current applications have been mitigated. These were primarily a problem on the ATtiny25/45/85 rather than the ATtiny13. Forum user DEL put in a lot of good work with the oscilloscope and testing changes to the basic FET+1 circuit. Posts about that work seem to start with post #648 in the Attiny25/45/85 FW Development Thread. After putting in some work (and sharing more scope traces) DEL showed a good looking comparison of a modified vs unmodified BLF Q8 in post #991 of the FW dev thread. Really good work!
  • 1s drivers can now do “internal” or “inverted” battery voltage measurements on ATtiny25/45/85. The internal vRef is compared against Vcc. Forum users Halo… and DEL showed demo code in posts #731 and #1081 of the Attiny25/45/85 FW Development Thread respectively.
  • The OTC (“off time capacitor”) method used by clicky drivers to measure click length is now outdated may one day be outdated by the OTSM (“off time sleep mode”) technique. Initially we used the OTC to determine whether the flashlight was being turned on from an “off” state or a short “tap” had been used to change modes. (eg long press and short press.) The capacitor was attached to the MCU on a pin with an ADC and we’d check the voltage on that pin when the MCU booted, then start charging the capacitor. If the voltage on that pin was above a certain level on boot we would assume that there had simply been a short tap to change modes. Below that level the assumption was that the flashlight was coming on from an “off” state and the current mode should be maintained. Later this technique was extended to allow for a third “medium” press by using additional threshold values. The medium press could be used for extra UI navigation eg backwards mode cycling or similar. Unfortunately none of this was super reliable as capacitor temp, battery voltage, BOM, and probably even firmware/fuses could have effects on the initial capacity and drain rate on the cap. OTSM seems to stand for Off Time Sleep Mode according to Texas_Ace in post #1386 of the Texas Avenger driver series thread. It seems that in OTSM the MCU starts sleeping as soon as it detects power loss and wakes intermittently using a watchdog timer. A count is kept of the wakes in order to figure out how long the press is. Currently support for OTSM is limited to new-production ATtiny25 and ATtiny45, no support for the ATtiny85. Flintrock’s modified version of ToyKeeper’s Bistro firmware, Bistro HD, supports OTSM and Flintrock includes a technical discussion on OTSM here in the OP of the firmware thread: http://budgetlightforum.com/node/52798#OTSM_theory -> TK reviews the current situation for OTSM in this “wight catchup” thread in posts #25 & #38, Flashy Mike shares non-assembler proof-of-concept code in post #40 LOL
  • Alternatively the OTC can be eliminated without adding more components if only basic short/long press support is needed. The noinit/memory-decay method can be used guess how long the light has been in the “off” state with enough accuracy to work. (this actually happened before I left, but I didn’t have a chance to try it!) According to Flintrock’s notes in the Bistro HD manual, Bistro HD has an option to make this technique more reliable.
  • Texas_Ace has created popular driver layouts and shared them in this thread: Texas Avenger ‘TA’ Driver series – Triple channel + Bistro or Narsil + Clicky or E-switch – The Ultimate open source driver! The schematic is available in the OP. R5 is the new resistor intended to prevent ringing (eg the one which DEL recommended).

Break’s over for now. That was a long one! wight catchup Wink Wink Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

Edited by: wight on 10/17/2018 - 18:43
Boaz
Boaz's picture
Offline
Last seen: 16 hours 28 min ago
Joined: 11/07/2010 - 09:31
Posts: 7006
Location: Birthplace of Aviation

Nice to see you back again my friend ... now wheres thst pic of Mula Jojovich ?

       καὶ τὸ φῶς ἐν τῇ σκοτίᾳ φαίνει καὶ ἡ σκοτία αὐτὸ οὐ κατέλαβεν

                                  https://www.gty.org/

 

    Still selling diffuser film  >…  http://budgetlightforum.com/node/42208

ToyKeeper
ToyKeeper's picture
Online
Last seen: 2 min 35 sec ago
Joined: 01/12/2013 - 14:40
Posts: 9549
Location: (469219) 2016 HO3

Welcome back. Did you miss us? Silly

wight
Offline
Last seen: 8 months 1 day ago
Joined: 11/27/2013 - 16:40
Posts: 4968
Location: Virginia, USA

Frankly I just came back for the condiments. Silly

Break’s over for now. That was a long one! wight catchup Wink Wink Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

HarleyQuin
HarleyQuin's picture
Offline
Last seen: 6 months 3 weeks ago
Joined: 03/29/2013 - 04:47
Posts: 580

Welcome back
Again Smile

You did peek inbetween, in all these months, admit it!
But always good to know you around

Oh, a lot happened
More folks here, less DIY and more commercial topics, but we convinced several manufacturers what flashlight enthusiasts really want and that shows on the market. And lots of great firmware development here. Some board design went the proprietary path, boost drivers for 6V/12V emitters made progress, DEL’s findings are the de-facto standard in the FET design.

To some of your notes

1. parasitic drain in (momentary) driver
A great step to lower the current was turning off ADC before going into SLEEP_MODE_PWR_DOWN. That in connection with higher values for R1/R2 had already brought it down to µA values.
About these ~4mA:
@Toykeeper, did you (besides underclocking) re-introduce the watchdog timer (WDT)?
At some point along the way, you had discarded it, presumably to gain space in the 13A. The WDT alone eats ~160 bytes in the firmware, that’s a lot when you want to cram some more stuff in 1k Wink
LED off with WDT and interrupt lowers the current consumption of the system to way below 1mA, while without WDT my DMM showed ~4mA (again: LED off, just the Attiny who seems to suck this power). So this value sounds quite familiar.

3. voltage measuring without R1/R2
Afaik it’s beyond demo already.
The latest version of Narsil, NarsilM, does not rely on voltage divider any more so should omit the current drain in the divider (and frees Pin7, which of course is awesome).
I’ll see for myself, my latest Oshpark SRK driver should be in the mail any day.

Party

Oshpark Boards:
HQ ProgKey: Universal Driver Programming Key . Boost: HQ 15mm/17mm programmable boost driver with ATtiny13A
46mm Triple-Channel: BLF SRK FET v3 . 17mm Linear: HQ10D / HQ4D / HQ4S . Contact Boards: 22/24/26mm

sb56637
sb56637's picture
Offline
Last seen: 1 hour 37 min ago
Joined: 01/08/2010 - 09:29
Posts: 6414
Location: The Light

Hey there wight! Great to see you back here! Beer Thumbs Up Thumbs Up

Budget Light Forum ...where Frugal meets with Flashlight!

duramax
Offline
Last seen: 1 day 16 hours ago
Joined: 07/06/2018 - 05:19
Posts: 231
Location: Garage

Wight, welcome back! We never wrote/read each other on here, but in your absence I joined BLF, ordered and built a wight driver that is still working! Thanks for everything you did back in the day and I am glad you are back!

djozz
djozz's picture
Offline
Last seen: 5 hours 42 min ago
Joined: 09/07/2012 - 17:04
Posts: 15179
Location: Amsterdam

Welcome back wight. There’s a lot of nice new flashlights and led choices as well since you were gone.
I know not much about electronics but still use your driver designs occasionally.

raccoon city
raccoon city's picture
Offline
Last seen: 9 hours 53 min ago
Joined: 10/06/2010 - 02:35
Posts: 12444
Location: रॅकून सिटी Palm Desert CA USA

It's good to have you back, wight!

112_milla

Tom Tom
Offline
Last seen: 3 months 1 day ago
Joined: 09/10/2017 - 08:30
Posts: 1163

Good summary Wight.

Now, please start contributing again, openly, and if you can, astonish us with something new, which is sadly needed.

I don’t really think that you have not been following things meanwhile. For 2 1/2 years.

Though this place can get far too intense and burn-out the creatives, which has happened rather a lot. Too much take, very little give. Or understanding. Only the most level-headed have stood the pace.

And don’t get sucked into the dark-side too badly (though the money could be tempting, if you play your cards wight). You might even get to see your name etched on every driver (again).

joechina
Offline
Last seen: 5 hours 3 min ago
Joined: 03/05/2016 - 08:23
Posts: 1397
Location: Germany
wight wrote:
Frankly I just came back for the condiments. Silly

Condiments?
There is a hotsauce thread
http://budgetlightforum.com/comment/1376211#comment-1376211

Welcome back!

joechina
Offline
Last seen: 5 hours 3 min ago
Joined: 03/05/2016 - 08:23
Posts: 1397
Location: Germany

When you’re interested in drivers:

BLF programming Key
http://budgetlightforum.com/node/62022
and
Look in Lexels signature for his drivers

Schoki started this thread:
LED drivers and Accessories you want, but don’t exist
http://budgetlightforum.com/node/56016

DavidEF
DavidEF's picture
Online
Last seen: 2 min 59 sec ago
Joined: 06/05/2014 - 06:00
Posts: 7149
Location: Salisbury, North Carolina, USA

Welcome back wight! I’m glad you’re able to return, and I hope you get to really enjoy BLF once again!

The Cycle of Goodness: “No one prospers without rendering benefit to others”
- The YKK Philosophy

CRX
CRX's picture
Online
Last seen: 4 min 3 sec ago
Joined: 04/02/2013 - 15:27
Posts: 3630
Location: Scotland

Nice to see you return Thumbs Up

wight
Offline
Last seen: 8 months 1 day ago
Joined: 11/27/2013 - 16:40
Posts: 4968
Location: Virginia, USA

HQ – You caught me, I did peak! Blushing Not much though; I would estimate that I peeked once per 6 months on average. Could you provide relevant links to the boost drivers you are thinking of? I appreciate all the info!

SB – Thanks, it’s great to see so many folks I know still active on the forum.

duramax – I’m glad to be of service!

djozz – So I hear! The Emisar series from Hank seems very good. Someone mentioned the BLF Q8 and BLF GT in a PM; those look interesting and I’ll have to take a closer look at them. Are there any lights from the past couple of years that really stand out to you?

racoon city – Good to see you again!

Tom Tom – I would like to contribute again. We’ll see how it goes. My intention is that if I make any new layouts I would release source materials. I haven’t firmly defined my goals in that respect; I’d have to write everything down and find a license agreement which fits (probably a creative commons one). Making money on flashlights is not a priority for me today, I don’t think I’ll ever break even on my flashlight “investment”. When I do take bribes they’ll be in dark alleys and paid in unmarked flashlights. Wink

joechina – That definitely looks like good catchup info, I appreciate the links!

DavidEF – Thanks, I’m very happy to be back and I hope to spend some time enjoying myself. Smile

EDIT:

CRXSmile Are you drawing those UI cheatsheet diagrams?

Break’s over for now. That was a long one! wight catchup Wink Wink Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

CRX
CRX's picture
Online
Last seen: 4 min 3 sec ago
Joined: 04/02/2013 - 15:27
Posts: 3630
Location: Scotland

No, just harvesting what’s available and sometimes editing in places.

Phlogiston
Offline
Last seen: 20 hours 8 min ago
Joined: 10/27/2016 - 16:57
Posts: 750
Location: Scotland

Here are a couple of loneoceans’ boost drivers that might be of interest:

http://budgetlightforum.com/node/54827
http://budgetlightforum.com/node/59137

I joined BLF after you started your break, so I’d like to take this chance to say “thank you” for your previous driver work. I have some of the lights you helped make happen, and they are definitely a step up from the ones I had before that Thumbs Up

wight
Offline
Last seen: 8 months 1 day ago
Joined: 11/27/2013 - 16:40
Posts: 4968
Location: Virginia, USA

CRX wrote:
No, just harvesting what’s available and sometimes editing in places.
Dope, I jumped to a conclusion on that. Thanks for putting it all together in one place.

Phlogiston wrote:
Here are a couple of loneoceans’ boost drivers that might be of interest: http://budgetlightforum.com/node/54827 http://budgetlightforum.com/node/59137 I joined BLF after you started your break, so I’d like to take this chance to say “thank you” for your previous driver work. I have some of the lights you helped make happen, and they are definitely a step up from the ones I had before that Thumbs Up
They definitely sound interesting! I’ve only taken an initial glance, but I see that loneoceans has released the work under the CC BY-NC license which is great as well. I see that loneoceans also has an interesting FET tailswitch project: http://budgetlightforum.com/node/59550

Break’s over for now. That was a long one! wight catchup Wink Wink Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

Cereal_killer
Cereal_killer's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 07/22/2013 - 13:10
Posts: 3719
Location: Ohio

Welcome back amigo!

 RIP  SPC Joey Riley, KIA 11/24/14. Now I am become death, the destroyer of worlds.

wight
Offline
Last seen: 8 months 1 day ago
Joined: 11/27/2013 - 16:40
Posts: 4968
Location: Virginia, USA

I’m glad you’re back around CK; you took a long break yourself!

Break’s over for now. That was a long one! wight catchup Wink Wink Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

Joshk
Offline
Last seen: 2 hours 24 min ago
Joined: 09/09/2015 - 12:12
Posts: 1191
Location: USA

Hello. Who the heck are you? Silly

joechina
Offline
Last seen: 5 hours 3 min ago
Joined: 03/05/2016 - 08:23
Posts: 1397
Location: Germany

Some interesting Lamps in the making:

FW3A Thread
http://budgetlightforum.com/node/54239
IMHO, the Firmware alone is a reason to get it.

BLF Groupbuy, a Sofirn AAA with high CRI yuji 5mm LED:
Sofirn C01 for $6
(First 165 Posts are only about Fenix)
http://budgetlightforum.com/node/61138
Renderings
http://budgetlightforum.com/comment/1361621#comment-1361621

BLF Special Sofirn SP70
A big plunger style flashlight. With 2× 26650 a lot of runtime, with the size no heat problems
9cm Head, ca. 7.7cm smooth reflector
XHP70.2
UI is from Sofirn. No NarsilM or Andúril but similar for the basics.
SP70 thread:
http://budgetlightforum.com/node/61428
Specs from Sofirn for Design 1: http://budgetlightforum.com/comment/1365502#comment-1365502 (2018-08-14)

DavidEF
DavidEF's picture
Online
Last seen: 2 min 59 sec ago
Joined: 06/05/2014 - 06:00
Posts: 7149
Location: Salisbury, North Carolina, USA

Joshk wrote:
Hello. Who the heck are you? Silly

Well, if you’d read this thread, you’d know.
ToyKeeper wrote:

Welcome back. Did you miss us? Silly

He’s White Ketchup! Duh! Crazy

The Cycle of Goodness: “No one prospers without rendering benefit to others”
- The YKK Philosophy

Phlogiston
Offline
Last seen: 20 hours 8 min ago
Joined: 10/27/2016 - 16:57
Posts: 750
Location: Scotland

Don’t forget the BLF Ultimate Lantern Smile

http://budgetlightforum.com/node/44923

ToyKeeper
ToyKeeper's picture
Online
Last seen: 2 min 35 sec ago
Joined: 01/12/2013 - 14:40
Posts: 9549
Location: (469219) 2016 HO3
wight wrote:
The OTC (“off time capacitor”) method used by clicky drivers to measure click length is now outdated by the OTSM (“off time sleep mode”) technique.

It’s probably worth mentioning that OTSM has not gotten any widespread use yet. It’s only implemented on a couple drivers, and is only supported by one firmware. Part of this, I think, was due to the overall difficulty of making it work right. Part was probably due to the relevant code being tricky. And a lot of it was probably due to a general shift toward e-switch lights around the same time. Not much need to measure offtime when power is only disconnected to change batteries.

Lately, when there is new hardware needing firmware, instead of writing entirely new firmware to fit the hardware, I mostly just add a few bits of code to FSM to support the new hardware. And then the FSM-based interfaces mostly “just work” on the new hardware. For an idea of how FSM changes or simplifies the UI code, here’s an example of implementing an Olight Baton interface using STAR as a base versus using FSM as a base.

Schoki
Schoki's picture
Offline
Last seen: 2 days 2 hours ago
Joined: 03/27/2017 - 15:34
Posts: 213
Location: Germany

Hey wight, nice to have you back.
I joined after you started your break, but I have seen the drivers you created. Hope you have a nice time here on BLF Thumbs Up

Hoop
Hoop's picture
Offline
Last seen: 43 min 23 sec ago
Joined: 12/20/2012 - 05:33
Posts: 930
Location: Spokane, WA

Good to see you wight.

MRsDNF
MRsDNF's picture
Offline
Last seen: 1 month 1 day ago
Joined: 12/22/2011 - 21:18
Posts: 12921
Location: A light beam away from the missus in the land of Aus.

wight catch-up. Now that bought a smile to the dial. Welcome back. For those that don’t know wight also built a light or two that defied the laws of magic. Must go find the threads for a refresher.

 

djozz quotes, "it came with chinese lettering that is chinese to me".

                      "My man mousehole needs one too"

old4570 said "I'm not an expert , so don't suffer from any such technical restrictions".

Old-Lumens. Highly admired and cherished member of Budget Light Forum. 11.5.2011 - 20.12.16. RIP.

 

Boaz
Boaz's picture
Offline
Last seen: 16 hours 28 min ago
Joined: 11/07/2010 - 09:31
Posts: 7006
Location: Birthplace of Aviation

Joshk wrote:
Hello. Who the heck are you? :P

 

  Wight is so old ...

  he wrote the original low/high sos/strobe next mode memory driver

       καὶ τὸ φῶς ἐν τῇ σκοτίᾳ φαίνει καὶ ἡ σκοτία αὐτὸ οὐ κατέλαβεν

                                  https://www.gty.org/

 

    Still selling diffuser film  >…  http://budgetlightforum.com/node/42208

Joshk
Offline
Last seen: 2 hours 24 min ago
Joined: 09/09/2015 - 12:12
Posts: 1191
Location: USA

I remember back when I joined, people were talking about the missing “wight”. Smile

Here’s my catch-up. Maybe I am wrong. I think the hobby has changed. As I understand, years ago the average person expected Alkaline/light-bulb performance, so showing them a lithium/LED flashlight was a mind-blow. Everyone had fun.
Now there are lithium/LED flashlights on every retail shelf. And while it’s will always be possible to out-perform a mass-produced light, it takes more money and effort than ever to ‘wow’ the average person. The “Giggles” light for example is great for wow-ing people, but had to be built so absurdly big it’s hard to even think of an excuse to take it off the shelf.

KawiBoy1428
KawiBoy1428's picture
Online
Last seen: 1 min 58 sec ago
Joined: 04/11/2014 - 18:05
Posts: 3579
Location: The Motor City
Welcome back wight Smile Thumbs Up

KB1428 “Live Life WOT

Pages