Skip to content
Commit 1f144307 authored by Jordan Yates's avatar Jordan Yates Committed by Chris Friedt
Browse files

sensor: current_amp: optional high-range gain fallback



Add the option to specify an alternate ADC gain value to use if the
initial measurement saturates the range. This enables higher data
resolutions when the values are small compared to the maximum signal
values, while still supporting the maximum.

As a concrete example, measuring charge currents from a small solar
panel (0 - 50mA), while also supporting high USB charge currents
(up to 1A).

Signed-off-by: default avatarJordan Yates <jordan@embeint.com>
parent 3e7a9410
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment