this post was submitted on 27 Jul 2023
14 points (100.0% liked)

flashlight

2946 readers
2 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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 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.