1.. _max17262:
2
3MAX17262 Fuel Gauge Sensor
4###################################
5
6Overview
7********
8
9This sample application periodically reads voltage, current and temperature
10data from the MAX17262 device that implements SENSOR_CHAN_GAUGE_VOLTAGE,
11SENSOR_CHAN_GAUGE_AVG_CURRENT, and SENSOR_CHAN_GAUGE_TEMP.
12
13Requirements
14************
15
16The MAX17262 is an ultra-low power fuel-gauge IC which implements the Maxim
17ModelGauge m5 algorithm. The IC monitors a single-cell battery pack and
18supports internal current sensing for up to 3.1A pulse current. The IC
19provides best performance for batteries with 100mAhr to 6Ahr capacity.
20
21This sample requires a board which provides a configuration for Arduino
22connectors and defines node aliases for the I2C interface.
23For more info about the node structure see
24:zephyr_file:`samples/sensor/max17262/app.overlay`
25
26Building and Running
27********************
28
29This sample application uses an MAX17262 sensor connected to a board via I2C.
30Connect the sensor pins according to the connection diagram given in the
31`max17262 datasheet`_.
32
33.. zephyr-app-commands::
34   :zephyr-app: samples/sensor/max17262
35   :board: nrf52840dk_nrf52840
36   :goals: build flash
37   :compact:
38
39Sample Output
40=============
41To check output of this sample , any serial console program can be used.
42This example uses ``picocom`` on the serial port ``/dev/ttyUSB0``:
43
44.. code-block:: console
45
46        $ sudo picocom -D /dev/ttyUSB0
47
48.. code-block:: console
49
50        V: 3.626406 V; I: -3.437500 mA; T: 28.011718 °C
51        V: 3.626406 V; I: -3.437500 mA; T: 28.011718 °C
52        V: 3.626406 V; I: -3.437500 mA; T: 28.011718 °C
53
54References
55***********
56
57.. _max17262 datasheet: https://datasheets.maximintegrated.com/en/ds/MAX17262.pdf
58