Introduction
A portable mini USB voltage and current meter based on ESP32-Pico-D4 and INA226, which can be connected to other interfaces through USB Type-C.
Working voltage 5~28V, current 0~5A.
The program is developed based on Arduino using PlatformIO, and the programming level is very low.
The actual measured 12V 5A 10min is no problem (the small load in my dormitory cannot support it QAQ)
The theoretical limit supports 32V 6A. In actual use, it is recommended not to exceed 28V 5A.
Hardware features
Software function implementation and planning (as of 2021/8/30)
Implemented functionality
Planning function gugugu
For more ideas, please leave a message for discussion~
Current version of firmware: https://gitee.com/inknoid/Power-Meter-Ver_ESP32
Known issues with the current version:
It will affect the protocol identification of some devices. What is currently found is mainly the protocol identification of some power banks.
Temporary fix:
Comment the GPIO definition code and voltage detection code of D+ and D-.
Sorry, due to personal academic reasons, I don’t have time to perfect the program. Currently, only basic functional programs are available.
Known issues will be fixed in the fully functional version.
Iteration information
2021/08/29 Engineering open source
2021/08/30 PCB updated to version 2.1.2: Except for the LDO input filter capacitor which is still 0603, all capacitors and resistors are packaged in 0402.
2021/09/03 Provide a current channel windowed version of PCB, which provides better temperature rise performance under high current and fine-tunes high current routing.
2021/11/16 I used my spare time to modify a version of one male and one female interface based on the original version. I don’t have time to verify it yet, so I will release the PCB and schematic diagram first.
Change as follows: LDO SE8550 -> MP2451 (It was noticed that the LDO heated seriously under higher voltage, so it was replaced)
0.96 inch TFT-LCD ST7735s -> 1.14 inch TFT-LCD ST7789
LDO ME6211C33R5G -> LDO ME6211C33M5G
Development records and a few random thoughts (updated by chance)
This small project has been around for a while now. I am quite busy with my studies. The project was built in May and has only completed the basic functions now. The rest is mainly software. If there are no major bugs , the hardware will not do anything. edited.
At present, the PCB of this project has been iterated to 2.1.2 . The engineering verification board in the picture is 2.1.1 . 2.1.2 is a slightly optimized version of 2.1.1 . It mainly replaces the main resistors and capacitors with 0402 packages and optimizes a small amount of wiring. , the rest is completely consistent with 2.1.1 , there is no separate board verification.
I was greedy when designing this, and wanted to make a very compact board with many functions. Because I was lazy, I prepared a single board to implement it, and the screen was not on another PCB. Considering that it supports both 2.4G Wi-Fi and BLE and requires very few external components, the ESP32-Pico-D4 is packaged in SiP. The ESP32 itself is also a chip that I like to use (it’s cheap and has many functions), so I made the initial selection. I considered ESP32-Pico-V3, but considering it was relatively expensive and the supply was not that abundant, I finally chose Pico-D4.
At the beginning, I made many versions of PCB, but I was not very satisfied with them. In the early stage, I mainly used 2-layer boards. Considering the complexity of wiring, I also prepared a separate PCB for the screen (similar to the solution of Sakura Boss), but I was not satisfied with it. In the end, I made a 4-layer version.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet