Update README.md

This commit is contained in:
mondraker 2023-07-11 03:05:02 +08:00 committed by GitHub
parent 0ccb164834
commit e81c84309c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

198
README.md
View File

@ -4,154 +4,158 @@ AXP202 Power management IC(AXP202电源管理芯片)
![Static Badge](https://img.shields.io/badge/ESP_IDF_v5.0.1-build_pass-green) ![Static Badge](https://img.shields.io/badge/Arduino_IDE-build_pass-green) ![Static Badge](https://img.shields.io/badge/ESP_IDF_v5.0.1-build_pass-green) ![Static Badge](https://img.shields.io/badge/Arduino_IDE-build_pass-green)
| 文件名称(file name) | 描述(description) | | 文件名称(file name) | 描述(description) |
|----------|:-------------:| |-------------------------|:--------------------------------------------------:|
| README_CN.md | [中文文档(Chinese Document)](../README_CN.md) | | README_CN.md | [中文文档(Chinese Document)](../README_CN.md) |
| README_EN.md | [英文文档(English Document)](../README.md) | | README_EN.md | [英文文档(English Document)](../README.md) |
**Note:** Note: The document is machine translated and does not guarantee that all sentences will be smooth or error-free
*** ***
硬件部分开源在立创开源平台,链接地址:https://oshwhub.com/mondraker The hardware part is open source in the Lichuang open source platform, link address: https://oshwhub.com/mondraker
有时候周六周天不审核,工程会消失,可以在Github和Gitee看到备份 Sometimes if it is not reviewed on Saturdays and Sundays, the project will disappear and you can see the backup on Github and Gitee
##### 有问题直接进Q群轰炸我:735791683~~~~ ##### If there is a problem, directly into the Q group to bombard me: 735791683🧨
* 为什么不用最新版AXP2101呢?首先AXP2101功能太多,目前DIY的小型设备根本用不了那么多。其次由于是主推产品价格相对较贵,是AXP202的10倍(不过要是有朋友需要后期也可以搞一个出来) * Why not use the latest version of AXP2101? First of all, the AXP2101 has too many functions, and the current DIY small devices simply cannot use so much. Secondly, because the price of the main product is relatively expensive, it is 10 times that of AXP202 (but if you have friends who need to do it later, you can also make one)
* 该项目已经过长期验证,提供封装,3D文件等等,**资料充足(包含ESP-IDF例程以及Arduino例程,中英文手册)**,并且这个邮票孔自己打也**不需要额外收费**,不选半孔工艺自己磨一下就行了🤣 * The project has been verified for a long time, providing packaging, 3D files, etc., **sufficient information (including ESP-IDF routines and Arduino routines, Chinese and English manuals)**, and this stamp hole is also **no extra charge** at no extra charge, do not choose the half-hole process to grind 🤣 it yourself
* 一块芯片1.8元,其它都是阻容和电感,一片“自己整”**三块钱以内** * One chip 1.8 yuan, the rest are resistance, capacitance and inductance, a piece of "own whole" **within three dollars**
* 相关资料、[BOM表单](https://easyeda.online/ibom/d5313712.html)以及元器件相关链接都在文末附件里 * Related materials, [BOM form](https://easyeda.online/ibom/d5313712.html), and component-related links are attached at the end of the article
* 过段时间自己会整一批沉金+半孔工艺的模块出来,和雪花灯一起放在TB小店里:[奥特曼的电子星球](https://m.tb.cn/h.50LlvTB ) * After a while, I will come out with a whole batch of modules of gold immersion + half-hole process, and put them in the TB shop together with snowflake lights: [Ultraman's electronic planet](https://m.tb.cn/h.50LlvTB )
# 前言(闲聊) # Preface (Small Talk)
* Hello,大家好久不见,大半年没发新东西了,小伙伴都以为我隐退了。其实这段时间一直在闭关修炼,忙毕业设计,顺便学习一下ESP-IDF和LVGL。 * Hello, everyone hasn't seen you for a long time, I haven't sent anything new for most of the year, and my friends think I'm retiring. In fact, I have been practicing in retreat during this time, busy with graduation projects, and learning ESP-IDF and LVGL by the way.
* 文章可能相对较长,但是这个模块确实非常好用,资料非常齐全,真心希望每一个感兴趣的朋友都可以将他掌握。 * The article may be relatively long, but this module is really easy to use, the information is very complete, I really hope that every interested friend can master him.
* 当然了,后面整理一下资料会把自己这段时间的收获分享给大家。由于过两天要开源的开发板也用到了这个电源模块,因此先开源这个模块。(如下图) * Of course, I will share my gains during this period with you after sorting out the information later. Since the development board to be open source in two days also uses this power module, this module is first open sourced. (as shown below)
###### [开源视频预告,直接点我](https://b23.tv/cWTMeIv) ###### [Open source video trailer, click me directly](https://b23.tv/cWTMeIv)
**开发板**
**Development Board**
* ![_d2b7bf79fa147069585608b29f912e74_2058421563_IMG_20230605_010226.jpg](//image.lceda.cn/pullimage/ffs1rgARrk4CGtXn6rGWq2N8uoxCKglhOAL40ilj.jpeg) * ![_d2b7bf79fa147069585608b29f912e74_2058421563_IMG_20230605_010226.jpg](//image.lceda.cn/pullimage/ffs1rgARrk4CGtXn6rGWq2N8uoxCKglhOAL40ilj.jpeg)
**模块**
**Module**
* ![_319bb24bc89965f34b9631be8bfa4303_2043390142_IMG_20230405_053358.jpg](//image.lceda.cn/pullimage/SMMdKNWd08V15bfMRKzG1ZhsrKQnsLqi27Mgt0ra.jpeg) * ![_319bb24bc89965f34b9631be8bfa4303_2043390142_IMG_20230405_053358.jpg](//image.lceda.cn/pullimage/SMMdKNWd08V15bfMRKzG1ZhsrKQnsLqi27Mgt0ra.jpeg)
**测试底板**
**Test Baseplate**
* ![_cbc7d0fb1028fe7791ffb7d338ac8aa4_-1316819711_IMG_20230405_214929.jpg](//image.lceda.cn/pullimage/q5st1CM3Uui1NpJAk5E47gbGW4pumzQHJbYmYjG8.jpeg) * ![_cbc7d0fb1028fe7791ffb7d338ac8aa4_-1316819711_IMG_20230405_214929.jpg](//image.lceda.cn/pullimage/q5st1CM3Uui1NpJAk5E47gbGW4pumzQHJbYmYjG8.jpeg)
**注释过的原理图**
**Commented schematics**
* ![image.png](//image.lceda.cn/pullimage/YG8DJv3uosd4ePHwaZi5ePjpApeGVVDAMkGgtFpI.png) * ![image.png](//image.lceda.cn/pullimage/YG8DJv3uosd4ePHwaZi5ePjpApeGVVDAMkGgtFpI.png)
# 正文(AXP202电源管理芯片) # Body (AXP202 Power Management Chip)
## 注意事项 ## Notes
### 由于芯片功能非常多,因此我分为以下几部分进行大致介绍 ### Since the chip has so many functions, I will divide it into the following parts for a general introduction
1. **功能部分**:这部分主要介绍设计目的,设计思路,芯片功能,芯片参数以及应用场景 1. **Function part**: This part mainly introduces the design purpose, design ideas, chip functions, chip parameters and application scenarios
2. **硬件部分**:这部分主要介绍了芯片外围电路(详述各个特殊器件功能以及选型),模块外围电路(这部分涉及到默认电源电压设置以及开机方式设置),电源模块测试底板讲解,PCB参数与注意事项(厚度等等),电源模块在电路中的接线(由于电源模块的特殊性导致容易无法通讯) 2. **Hardware part**: This part mainly introduces the chip peripheral circuit (detailing the functions and selection of each special device), module peripheral circuit (this part involves the default power supply voltage setting and boot mode setting), power module test backboard explanation, PCB parameters and precautions (thickness, etc.), power module wiring in the circuit (due to the particularity of the power module, it is easy to be unable to communicate)
3. **软件部分**:这部分主要介绍软件实现的功能,例程的使用,注意事项等等 3. **Software Part**: This part mainly introduces the functions implemented by the software, the use of routines, precautions, etc
4. **视频与相关链接部分**:这部分主要有AXP173工程的地址,AXP202工程的Github地址,在线bom和焊接点位工具(朋友开发的一种非常厉害的东西)的使用方法以及AXP202模块的视频展示与讲解(反响强烈就推出一手,现在暂时鸽一下下) 4. **Video and related links section**: This part mainly includes the address of AXP173 project, the Github address of AXP202 project, the use of online bom and welding point tools (a very powerful thing developed by friends) and the video display and explanation of AXP202 module (strong response to launch a hand, now temporarily pigeon)
## 功能部分 ## Features section
### 设计目的 ### Design purpose
**1. 在硬件设计时,电源部分一直是万事开头、重中之重。我发现在大家平时的制作里经常讨论的核心问题就是:** **1. When designing hardware, the power supply part has always been the beginning and top priority. I find that the core issues that are often discussed in everyone's daily production are:**
* 电源怎么设计 * How to design the power supply
* 求一个体积小的LDO * Find a small LDO
* 求一个效率高的DCDC * Find an efficient DCDC
* 求一个电池充电芯片 * Ask for a battery charging chip
* 哪里有便宜的电源芯片 * Where to find cheap power chips
**2. 还有很多玩家经常遇到的问题:** **2. There are also many problems that players often encounter :**
* 外部输入电源和电池怎么实现高效可靠的电源通路管理 * How to achieve efficient and reliable power path management of external input power supply and battery
* 怎么实现长按开关机 * How to achieve long press to turn on and off
* 怎么精确的检测电池电量 * How to accurately detect the battery level
* 怎么获取电源实时状态 * How to get the real-time status of the power supply
* 低功耗怎么办怎么办怎么办怎么办怎么办怎么办 * What to do with low power consumption, what to do, what to do
**那么好,我现在告诉你,有一个芯片,他可以实现上述的所有功能,并且体积小、效率高、功耗低、价格香你心动吗???** **Well, I'll tell you now that there is a chip that can implement all the above functions, and is small in size, high efficiency, low in power consumption, and attractive in price???**
![URnAH7cTv6gCuqOy5Z4qxFvb3I1NyOPSmuxq8xZs.jpg](//image.lceda.cn/pullimage/7qMHDGjPcgOlcNlfwt1rZ9sW9wYM6GS07yrAI2Au.jpeg) ![URnAH7cTv6gCuqOy5Z4qxFvb3I1NyOPSmuxq8xZs.jpg](//image.lceda.cn/pullimage/7qMHDGjPcgOlcNlfwt1rZ9sW9wYM6GS07yrAI2Au.jpeg)
### 芯片功能 ### Chip function
**1. 上功能。(官方文档如下)** **1. on the function. (Official documentation is below)**
* ![image.png](//image.lceda.cn/pullimage/7w72JYYedE5s0W1BAYEc86i5ZDeMrI5z0zby43St.png) * ![image.png](//image.lceda.cn/pullimage/7w72JYYedE5s0W1BAYEc86i5ZDeMrI5z0zby43St.png)
**2. 上概述。(官方文档如下)** **2. on the overview. (Official documentation is below)**
* ![image.png](//image.lceda.cn/pullimage/GP2aJmtgdLcGMumzadhl4XKqPvvHQUc1MoMuQIt3.png) * ![image.png](//image.lceda.cn/pullimage/GP2aJmtgdLcGMumzadhl4XKqPvvHQUc1MoMuQIt3.png)
### 芯片参数 ### Chip parameters
**这里主要举例电源输出能力参数,其它电源参数去数据手册里看。(官方文档如下)** **Here are mainly examples of power output capability parameters, other power parameters go to the data sheet. (Official documentation is below)**
* ![image.png](//image.lceda.cn/pullimage/LSnzo0pJiIUbIjNl9iX3ptXHtbDqOHgLBEbE5z4p.png) * ![image.png](//image.lceda.cn/pullimage/LSnzo0pJiIUbIjNl9iX3ptXHtbDqOHgLBEbE5z4p.png)
**如果你还需要5V输出,那么使用模块IPSOUT脚+DCDC5V的buck电路即可轻松实现,输出能力取决于外部供电的输入能力,且芯片专门有一个EXTEN脚控制外部DCDC芯片的EN脚,节省NCU的功能引脚,太香了。(官方文档如下)** **If you also need 5V output, then the use of module IPSOUT pin + DCDC5V buck circuit can be easily achieved, the output capability depends on the input capability of the external power supply, and the chip has an EXTEN pin to control the EN pin of the external DCDC chip, saving the functional pin of the NCU, too fragrant. (Official documentation is below)**
* ![image.png](//image.lceda.cn/pullimage/i5WTlJJDraZPyycNXcWMh9lPiVbAHHEAOXJBBj6d.png) * ![image.png](//image.lceda.cn/pullimage/i5WTlJJDraZPyycNXcWMh9lPiVbAHHEAOXJBBj6d.png)
### 设计思路 ### Design ideas
**做成邮票孔模块类型方便大家直接使用,因为这种芯片外围的阻容参数都比较奇怪。** **It is convenient to use the stamp hole module type directly, because the resistance and capacitance parameters on the periphery of this chip are relatively strange.**
* 为方便PCB电路板的设计与焊接,增加成功率,本设计采用模块化思想,将AXP202外围电路封装为一个邮票孔模块焊接在主板上,将可用户自定义的管脚全部引出,这样就可以方便的在主板上使用相应阻值的电阻来配置这些引脚。 * In order to facilitate the design and soldering of PCB circuit boards and increase the success rate, this design adopts modular thinking, the AXP202 peripheral circuit is packaged as a stamp hole module soldered to the motherboard, and all the user-defined pins are led out, so that it is convenient to use the resistance of the corresponding resistance value on the motherboard to configure these pins.
* 为统一封装,本次设计使用了标准2.54mm间距LCC邮票孔,便于焊接,使用了4层PCB设计用以缩小封装体积,引出全部必要的功能。 * In order to unify the package, the design uses a standard 2.54mm pitch LCC stamp hole for easy soldering, and a 4-layer PCB design is used to reduce the package size and bring out all the necessary functions.
### 应用场景 ### Application scenario
**所有包含单片机的设备。(官方文档如下)** **All devices containing a microcontroller. (Official documentation is below)**
* ![image.png](//image.lceda.cn/pullimage/HEQwvxnE6qjbVrJj8zVFqoB5K8cEPffItrp0ZkWl.png) * ![image.png](//image.lceda.cn/pullimage/HEQwvxnE6qjbVrJj8zVFqoB5K8cEPffItrp0ZkWl.png)
## 硬件部分 ## Hardware section
### 芯片外围电路 ### Chip peripheral circuitry
**原理图里写的很详细,这里简单概括一下** **The schematic is written in detail, here is a brief summary**
* 首先是电源输入部分,**如图左上方区域**。VBAT为电池正极接入端,并联一个0603封装10uF耐压16V的电容用以滤波。ACIN为外部DC电源供电脚,可以容纳5V/2A电源进入,VBUS为外部USB电源输入,可以容纳5V/1A的电源进入,因此分别并联了一个0603封装4.7uF的电容用以电源滤波,故意串联两个2.2ohm的电阻用以防止震荡,降低电容充电速度,更好地吸收电源的噪声。该部分在电源处还可以并联齐纳二极管减少高电压击穿危险,由于模块体积限制以及功能上并不敏感,因此没有添加。BACKUP为外部备用电池正极,接常规RTC/BIOS电池。 * First of all, the power input part, **as shown in the upper left area of the figure**. VBAT is the positive terminal of the battery, and a 0603 package is connected in parallel with a 10uF withstand 16V capacitor for filtering. ACIN is an external DC power supply pin, which can accommodate 5V/2A power supply entry, VBUS is an external USB power input, which can accommodate 5V/1A power supply entry, so a 0603 package 4.7uF capacitor is connected in parallel for power supply filtering, and two 2.2ohm resistors are deliberately connected in series to prevent oscillation, reduce the capacitor charging speed, and better absorb the noise of the power supply. This section can also be paralleled with Zener diodes at the power supply to reduce the risk of high-voltage breakdown, which is not added due to the size limitation of the module and the fact that it is not functionally sensitive. BACKUP is the positive terminal of the external backup battery, connected to a conventional RTC/BIOS battery.
* 其次是DCDC降压部分,**如图右上方区域**。这一部分电路为独立区域,需要外部接入系统输入电源IPSOUT,其可以让内部电压IPSOUT降压到电源芯片调压范围之内,如果应用中不需要用到某个 DC-DC只需要将对应的 LX 管脚悬空即可。输出电压2.5V以下时推荐4.7uH电感,输出电压2.5V以上时推荐2.2uH电感,电感饱和电流需大于最大需求电流50%,这里由于4.7uH有0806封装所以全用4.7uH,同样是为了减少体积。R17务必为30mΩ/1%/1206电阻,PCB布线注意芯片42/43脚务必接R17电阻PAD,以确保直接从电阻PAD检测到信号,因为R17为电池充电电流,放电电流与与充电电压的检测电阻,不仅精度要高还需要在布局时严格考虑干扰。 * This is followed by the DCDC buck section, **as shown in the upper right area of the figure**. This part of the circuit is an independent area that requires external access to the system input power supply IPSOUT, which can reduce the internal voltage IPSOUT to the power chip voltage regulation range, if the application does not need to use a DC-DC only need to suspend the corresponding LX pin. 4.7uH inductance is recommended when the output voltage is below 2.5V, 2.2uH inductance is recommended when the output voltage is above 2.5V, and the inductor saturation current needs to be greater than 50% of the maximum required current, here because 4.7uH has 0806 package, so all 4.7uH is used, also to reduce the volume. R17 must be 30mΩ/1%/1206 resistance, PCB layout attention chip 42/43 pin must be connected to R17 resistance PAD to ensure that the signal is detected directly from the resistor PAD, because R17 for the battery charging current, discharge current and charging voltage of the detection resistance, not only high accuracy but also need to strictly consider interference in the layout.
* 之后便是信号与功能引脚的引出,以及芯片内部参考电压外围的电路部分,**如图左下方区域**。以下两个GPIO除了具有常规输入输出能力以外还具有其他功能:GPIO0:ADC/LDO5(输出驱动能力为50mA),GPIO1:ADC。PWRON为电源芯片开机脚,低电平有效,R24上拉至LDO1防止误触发。N_OE可以用来通过外部电源接入直接开机设备。N_VBUSEN用以选择是否使能VBUS供电。IRQ中断信号引脚,可选上拉至LDO1或MCU_3V3。I2C使用2.2k电阻上拉至MCU_3V3。 * This is followed by the exit of the signal and function pins, as well as the circuit section outside the internal reference voltage of the chip, **as shown in the lower left area of the figure**. The following two GPIOs have additional functions in addition to the normal input and output capability: GPIO0: ADC/LDO5 (output drive capability of 50mA), GPIO1: ADC. PWRON is the power chip boot pin, active low, R24 pull-up to LDO1 to prevent false triggering. N_OE can be used to power on the device directly via an external power supply. N_VBUSEN to choose whether VBUS power is enabled. IRQ interrupt signal pin with optional pull-up to LDO1 or MCU_3V3. I2C uses a 2.2k resistor to pull up to MCU_3V3.
* 最后是LDO(低压差线性稳压器)输出部分,**如图右下方区域**。该部分在功能框图中同样为独立区域,需要外部接入系统供电ISPOUT。PWROK为MCU使能引脚,RESET按键接在MCU的EN管脚上可以实现MCU的重启,上拉至MCU供电脚。DC3SET为DCDC3电压设置管脚,接APS或LDO1为3.3V/2.5V,接地为1.8V,悬空为1.2V/1.5V。 * Finally, there is the LDO (Low Dropout Linear Regulator) output section, **see the lower right area of the figure**. This part is also a separate area in the functional block diagram, which requires an external access system to supply ISPOUT. PWROK is the MCU enable pin, and the RESET button is connected to the EN pin of the MCU to restart the MCU and pull up to the MCU power supply pin. DC3SET sets the pin for DCDC3 voltage, 3.3V/2.5V for APS or LDO1, 1.8V for ground, and 1.2V/1.5V for floating.
* ![image.png](//image.lceda.cn/pullimage/X4woxNgmqruelxnTaWXAmYhlLGWWm0RNQDbuJxbt.png) * ![image.png](//image.lceda.cn/pullimage/X4woxNgmqruelxnTaWXAmYhlLGWWm0RNQDbuJxbt.png)
### 模块外围电路 ### Module peripheral circuit
**下图中写的很详细,不在赘述** **The picture below is very detailed, not to be repeated**
* ![image.png](//image.lceda.cn/pullimage/VszxQchkluWsXu4dG2SMuFcAxNRDk1XwAHZYWBdA.png) * ! [image.png](//image.lceda.cn/pullimage/VszxQchkluWsXu4dG2SMuFcAxNRDk1XwAHZYWBdA.png)
### 电源模块测试底板讲解 ### Power module test backplane explanation
**如上图引出了所有的功能,芯片外部可设置的一些引脚可以使用跳帽设置,并且加入了一个5V的DCDC升压,用以基本测试,地线引出较少,可以自己酌情添加。或者根据要使用的主控芯片自己绘制一个测试板,我这个测试底板只是用以筛选哪家芯片合适以及基本的功能测试,因为自己直接画了ESP32的测试板所以没有再继续优化这个底板(后续可能会有面包板模块吧)。** **As shown in the figure above, all functions are introduced, some pins that can be set externally on the chip can be set using a jump cap, and a 5V DCDC boost is added for basic testing, and the ground wire leads less and can be added at your discretion. Or draw a test board according to the main control chip to be used, my test base board is only used to screen which chip is suitable and basic functional testing, because I directly drew the ESP32 test board, so I did not continue to optimize this base board (there may be a breadboard module later).**
### 电源模块在电路中的接线 ### Wiring of the power module in the circuit
**相较于普通的I2C模块,电源管理模块还要给主控芯片提供电源,除此之外,AXP202必须在开机状态下,一定要共地,否则两者之间是无法正常通信的。** **Compared with ordinary I2C modules, the power management module also provides power to the main control chip, in addition, AXP202 must be in the boot state, must be common, otherwise the two can not communicate normally.**
![image.png](//image.lceda.cn/pullimage/nLxiASZE4IW4GAFWith4E4AoF3nTgg6F819VBKs1.png) * ![image.png](//image.lceda.cn/pullimage/nLxiASZE4IW4GAFWith4E4AoF3nTgg6F819VBKs1.png)
### PCB参数与邮票孔处理注意事项 ### PCB parameters and stamp hole handling considerations
**下单打1mm(下面图是1.6mm的非常厚,仅用以演示),四层。不需要半孔工艺,回来之后是卷边的,需要先用镊子把半孔里多余的铜抠出来,然后用800目左右砂纸磨掉就行了。(以下是简单的步骤演示)** **Place a single 1mm (the picture below is 1.6mm very thick, just for demonstration purposes), four layers. There is no need for the half-hole process, after coming back, it is crimped, and you need to use tweezers to cut out the excess copper in the half-hole, and then grind it off with sandpaper of about 800 mesh. (The following is a simple step-by-step demonstration)**
* 处理前(银色代表OK,黄色代表不OK) * Before processing (silver for OK, yellow for OK)
* ![image.png](//image.lceda.cn/pullimage/lRpBQKPbU0i1J5V6IaK7F4ISxZmJc6iSZmtUagZd.png) * ![image.png](//image.lceda.cn/pullimage/lRpBQKPbU0i1J5V6IaK7F4ISxZmJc6iSZmtUagZd.png)
* 处理中(镊子挑出来) * Processing (tweezers pick out)
* ![image.png](//image.lceda.cn/pullimage/jOGUzUurIuknZpiqp5UKYJd5lZsCd9RF7YCeC2fh.png) * ![image.png](//image.lceda.cn/pullimage/jOGUzUurIuknZpiqp5UKYJd5lZsCd9RF7YCeC2fh.png)
* 处理中(挑出来之后) * Processing (after picking out)
* ![image.png](//image.lceda.cn/pullimage/N860zAH1iG7s5QtRMuuAAezCrEGovbtPjySwvReO.png) * ![image.png](//image.lceda.cn/pullimage/N860zAH1iG7s5QtRMuuAAezCrEGovbtPjySwvReO.png)
* ![image.png](//image.lceda.cn/pullimage/nm9qtwo0qybdDF7w6k0nKtD5P99uqkNjXUiJoUMo.png) * ![image.png](//image.lceda.cn/pullimage/nm9qtwo0qybdDF7w6k0nKtD5P99uqkNjXUiJoUMo.png)
* 处理中(打磨打磨) * In process (sanding)
* 没图了,别太用力就行,磨一磨看一看,别把板边的铜磨出来了。 * There is no picture, don't try too hard, grind and take a look, don't grind the copper on the edge of the board.
* 处理后(自己可以用更高目砂纸精细打磨一下) * After treatment (you can use higher mesh sandpaper to polish it finely)
* ![image.png](//image.lceda.cn/pullimage/BOd3kRjWBB3XF0VdpwqmbQaYnDy1I1ulPjdFDVEL.png) * ![image.png](//image.lceda.cn/pullimage/BOd3kRjWBB3XF0VdpwqmbQaYnDy1I1ulPjdFDVEL.png)
### PS ### PS
**模块上面那个洞是为了方便拆装的** **The hole on the top of the module is for easy disassembly and assembly**
* ![image.png](//image.lceda.cn/pullimage/MesyEzT6YU60ztrWkv2JfnCbp4E7RthF5Hh8JRpx.png) * ![image.png](//image.lceda.cn/pullimage/MesyEzT6YU60ztrWkv2JfnCbp4E7RthF5Hh8JRpx.png)
## 软件部分 ## Software section
### **[GitHub链接](https://github.com/HwzLoveDz/AXP202-PMIC)** ### **[GitHub link](https://github.com/HwzLoveDz/AXP202-PMIC)**
### **[Gitee链接](https://gitee.com/mondraker/AXP202-PMIC)** ### **[Gitee link](https://gitee.com/mondraker/AXP202-PMIC)**
### 声明: ### Statement:
* axp20x库以及Arduino相关例程,均来自于Lewis He大佬,感谢大佬的开源(开源协议:MIT) * axp20x libraries and Arduino-related routines are all from Lewis He, thanks to the open source (open source license: MIT)
* 原GitHub链接: github:https://github.com/lewisxhe/AXP202X_Libraries * Original GitHub link: github:https://github.com/lewisxhe/AXP202X_Libraries
* 后续自己的例程都将围绕该库编写,自己添加了其它一些常用的寄存器与功能,比如LED指示灯的充电控制等等,以后的修改将同步更新至GitHub/Gitee * Subsequent routines will be written around this library, adding other commonly used registers and functions, such as LED indicator charging control, etc., and future changes will be updated to GitHub/Gitee
### 说明: ### Description:
* 该库同时兼容AXP173/192/202等 * The library is also compatible with AXP173/192/202, etc
* 基本实现了芯片所有的功能 * Basically realize all the functions of the chip
* 代码中有相关功能注释,可以配合官方寄存器文档进行学习与编写 * There are relevant function comments in the code, which can be studied and written with the official register document
* 代码中使用独立的I2C接口进行编写,移植至其他平台只需要写一个接口库即可,非常方便 * The code is written using an independent I2C interface, and only need to write an interface library to port to other platforms, which is very convenient
* **代码中有疑惑可以参照这一篇开源的[AXP173](https://oshwhub.com/mondraker/axp173)进行学习,或者进群轰炸我** * **If you have doubts in the code, you can refer to this open source [AXP173](https://oshwhub.com/mondraker/axp173) to learn, or bombard me in the crowd**
## 视频以及相关链接部分 ## Video and related links section
* **[GitHub个人主页](https://github.com/HwzLoveDz)** * **[GitHub profile](https://github.com/HwzLoveDz)**
* **[Gitee个人主页](https://gitee.com/mondraker)** * **[Gitee profile](https://gitee.com/mondraker)**
* **[b站个人主页](https://space.bilibili.com/240319986)** **(这里有这次的AXP202(QFN)芯片焊接教程哦)** * **[B station personal homepage](https://space.bilibili.com/240319986)** **(here is the AXP202 (QFN) chip soldering tutorial)**
* **[在线BOM地址](https://easyeda.online/ibom/d5313712.html)** **(朋友开发,和ibom一样,但是是在线的,并且手机也可以浏览,后期会出一期文章重点介绍他)** * **[Online BOM address](https://easyeda.online/ibom/d5313712.html)** **(developed by a friend, like ibom, but online, and mobile phone can also be browsed, a later issue will focus on him)**
* **QQ交流群号:735791683** * **QQ Group Number: 735791683**
* **器件购买链接在附件BOM中** * **Device purchase link in accessory BOM**
* **更全的软件资料都打包在GitHub,登不上GitHub的可以加群下载,因为资料需要实时更新,不在这里给审核添麻烦了**