this post was submitted on 27 Jul 2023
0 points (NaN% liked)

flashlight

2886 readers
1 users here now

Portable illumination

Rules:

  1. Be excellent to each other
  2. Don't be the reason we need to make more rules

Related:

founded 1 year ago
MODERATORS
 

Being able to measure open circuit battery voltage is great, but it would also be useful to measure current while the light is running. That in turn can map to battery runtime and/or lumens. I wonder if any existing boards can do this, e.g. if they have adc pins connected to the relevant sense resistors. If not, it could be a cool feature in future boards.

top 4 comments
sorted by: hot top controversial new old
[–] SammysHP@feddit.de 0 points 1 year ago

Reading a voltage would be possible (but the ADC code is already very complex and messy). Some types of drivers have a sense resistor already, but usually it is connected to an opamp and adding another load might cause visible fluctuations in the output.

So yes, it could be possible, but requires a driver redesign and lots of refactoring of Anduril.

[–] NightmareQueenJune@lemmy.world 0 points 1 year ago (1 children)

While I agree that this would certainly be interesting I don't really know how this could work. First of all: Real current sensing can only really be done with a constant current driver. Not saying that this would be accurate but this should indeed work for an estimation. But now the first problem arises: Most CC drivers also include a FET for turbo and/or the higher range of the ramp. The moment this switches on you're out of luck. Another option would be to add a sense resistor. This - again - would surely work to measure current. But you now have the problem that you introduce an (unnessisary) resistance in the driver, limiting the output of the flashlight (if it includes a FET). And lastly I just think that while it surely sounds like a cool feature it's just not something most flashlight enthusiasts would use regularly. Altering the flashlight circuit for a feature some people may use once or twice out of curiosity with a given flashlight does not seem reasonable and ToyKeeper IIRC has many things on her to do list that she wants to implement. Since this is such a nieche feature that (for what I know) would need hardware modifications on many flashlights out there, I don't think that this will get implemented.

[–] solrize@lemmy.world 0 points 1 year ago* (last edited 1 year ago) (1 children)

Thanks both of you. It was intended as a pure hardware question since I can make the software changes myself in principle. So I wanted to know if there were adc inputs on usable places for this on existing boards, and it sounds like there are not. Oh well.

As for the FET in turbo mode, good point. I'm mostly interested in the lower levels though.

I guess tailcap current measurements with a DMM are good enough for my purposes. It would just be cool if it were built into the light.

[–] SammysHP@feddit.de 0 points 1 year ago

I guess tailcap current measurements with a DMM are good enough for my purposes.

Only as long as you use a clamp meter.