Part 1
요약·해설
측정 항목 네 가지와 평균 consumption 기반 추정 지연을 보존합니다.
72% example
3968
I2C
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
84EBACC7FBDC6229898598AD75203E64CA41E509CA2AD5085A2FCF1170A5E114
.. _MAX17048_sample:
MAX17048 Li-Ion battery fuel gauge
###################################
Overview
********
This sample shows how to use the Zephyr :ref:`fuel_gauge_api` API driver for the `MAX17048` fuel gauge.
.. _MAX17048: https://www.maximintegrated.com/en/products/power/battery-management/MAX17048.html
The sample periodically reads battery percentage and power status
Building and Running
********************
The sample can be configured to support MAX17048 fuel gauge connected via either I2C. It only needs
an I2C pin configuration
Features
********
By using this fuel gauge you can get the following information:
* Battery charge status as percentage
* Total time until battery is fully charged or discharged
* Battery voltage
* Charging state: if charging or discharging
Notes
*****
The charging state and the time to full/empty are estimated and based on the last consumption average. That means that
if you plug/unplug a charger it will take some time until it is actually detected by the chip. Don't try to plug/unplug
to see in real time the charging status change because it will not work. If you really need to know exactly the moment
when the battery is being charged you will need other method.
Sample output
*************
```
*** Booting Zephyr OS build 16043f62a40a ***
Found device "max17048@36", getting fuel gauge data
Time to empty 1911
Time to full 0
Charge 72%
Voltage 3968
Time to empty 1911
Time to full 0
Charge 72%
Voltage 3968
```
Part 3
한국어 전문 번역
개요
이 sample은 MAX17048 fuel gauge에서 Zephyr Fuel Gauge API driver를 사용하는 방법을 보여줍니다.
Sample은 battery percentage와 power status를 주기적으로 읽습니다.
Build와 실행
I2C로 연결된 MAX17048 fuel gauge를 지원하도록 sample을 구성할 수 있습니다. I2C pin 설정만 필요합니다.
기능
이 fuel gauge로 다음 정보를 얻을 수 있습니다.
- Percentage로 표시한 battery charge status
- Battery가 완전히 충전되거나 방전될 때까지의 전체 시간
- Battery voltage
- 충전 중인지 방전 중인지 나타내는 charging state
참고 사항
Charging state와 full/empty까지의 시간은 최근 평균 consumption을 바탕으로 추정합니다. Charger를 연결하거나 분리해도 chip이 실제 상태를 감지하기까지 시간이 걸립니다. 따라서 plug/unplug 직후 charging status가 실시간으로 바뀌는지 확인하려 해서는 안 됩니다. Battery가 충전되기 시작하는 정확한 순간을 알아야 한다면 다른 방법이 필요합니다.
Sample 출력
*** Booting Zephyr OS build 16043f62a40a ***
Found device "max17048@36", getting fuel gauge data
Time to empty 1911
Time to full 0
Charge 72%
Voltage 3968
Time to empty 1911
Time to full 0
Charge 72%
Voltage 3968
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.