Lines Matching +full:power +full:- +full:source
1 .. zephyr:code-sample:: nrf_battery
4 Measure the voltage of the device power supply.
10 infrastructure to measure the voltage of the device power supply. Two
11 power supply configurations are supported:
14 ``voltage-divider`` then the voltage is measured using that divider. An
18 .. code-block:: devicetree
22 compatible = "voltage-divider";
23 io-channels = <&adc 4>;
24 output-ohms = <180000>;
25 full-ohms = <(1500000 + 180000)>;
26 power-gpios = <&sx1509b 4 0>;
32 the ``zephyr,user`` node. In this case the power source is assumed to be
33 directly connected to the digital voltage signal, and the internal source for
37 .. code-block :: devicetree
41 io-channels = <&adc 4>;
47 regardless of source voltage, rather than by the source directly. In
53 battery source: a standard LiPo cell requires a curve that is different
66 A Nordic-based board, optionally with a voltage divider specified in its
74 .. zephyr-app-commands::
75 :zephyr-app: samples/boards/nordic/battery
84 .. code-block:: console
86 *** Booting Zephyr OS build zephyr-v2.2.0-318-g84219bdc1ac2 ***