USB voltage and current meter
Introduction
A USB voltage and current meter based on STM32 can easily see whether the charger is working in fast charging mode, and can also easily test the power consumption of USB devices or the output power of USB chargers.
Version update instructions
v1.1-2020/4/15
Add the auto screen function, after 20 seconds of detecting no current output, the screen will automatically turn off to protect the OLED screen. After the screen is turned off, when the current output is detected or the button is manually pressed, the screen will automatically light up.
characteristic
Based on STM32F030K6, the code is written using HAL library, GCC compiler
0.91 inch white OLED display, the display effect is clear
Use low-resistance sampling resistor (5mΩ) to prevent excessively high internal resistance from affecting USB power supply efficiency
Support wide voltage range of 4.7 ~ 24V, 0 ~ 5A current measurement
It can measure Vbus, D +, D- voltage and Vbus current. Support power display and energy calculation
Can choose to use internal voltage reference source (Vref) or external voltage reference source (AZ431)
Software calibration function can guarantee a certain accuracy after calibration.
Fully open source, you can add functions yourself
-
Calibration instructions
This USB voltage and current meter is designed with software calibration function, which can compensate for hardware deviation. Press and hold the button during power-on until “Prepare to calibrate ~~~~” appears on the screen, then release the button to enter the calibration mode. Please provide standard voltage and current according to the screen prompts to complete the calibration.
Code description
The code is the trueStudio project generated by STM32CubeMX, it is recommended to use trueStudio 9.3.0 to import.
Precautions
There are two types of USB sockets, one with the internal contacts facing down (facing the pad) and the other with the internal contacts facing up (backing to the pad). The two PCBs can use the same PCB package. If you have used a USB socket with a lower contact, the socket should be soldered to the front of the board, otherwise it should be soldered to the back of the board. The example picture uses the USB socket of the lower contact, and the schematic diagram and PCB design is the female socket of the upper contact. Please pay attention to this when making.
Recommended female seat:
Upper contact (weld back): C265460
Lower contact (welded front): C464564 (used in the example picture)
USB voltage and current meter
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(2)
- Likes(7)
- caleb estevão gomes dos santos Sep 21,2023
- Sebastian Mackowiak Mar 24,2023
- Engineer Feb 11,2022
- diyelements Nov 01,2021
- antroch Apr 30,2021
- Engineer Jul 27,2020
- mike danick May 15,2020
- 1 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
10design
-
10usability
-
10creativity
-
10content
More by Oleg Oleg
- Development Board STM32F103RET6 Development Board Series STM32F103RET6Resources on the board3.3/5.0/12V power input/output pinReset ...
- DAPLINK and STM32 minimum system combination DAPLINK and STM32 minimum system combination, one data cable can complete the download and debugging...
- USB to RS232 This is a program verification board. The main verification content is the function of USB to RS232 ...
- ESP Air Burner The ESP downloader with Air Burnner interface uses probes instead of DuPont cables.
- Docking station USB3.1 Using GL3520 USB 3.1 HUB chip,Supports super high speed, high speed and full speed USB connection, f...
- RX5808 open source receiver 5.8g open source receiver, can receive 5.8g signal, AV video signal output. Rx5808 dual-reception fu...
- 5.8G image transmission module It can be used for AV signal audio and video wireless transmission; baby monitor; wireless camera se...
- GRBL-ESP32 esp32s 3d is suitable for GRBL and marlin software
- STM32 Sensor Node A Small STM32F103C8T6 board with all functional pins exposed. Similar to the BluePill Board except:N...
- 2.8 inch TFT touch screen The module uses a 2.8-inch TFT color LCD screen. The module is compatible with punctual atomic 2.8TF...
- LED dot matrix clock LED dot matrix electronic clock based on 51 single chip microcomputer.Based on STC15W4K series ultra...
- STM32F411Cx 401Cx minimum system + J-LINK debugger The STM32F411 / 401 microcontroller belongs to the STM32 Dynamic Efficiency series. These devices ar...
- Small passive DC constant current electronic load IntroductionA small passive DC adjustable constant current (CC) electronic load with temperature-con...
- Small jlinkV9 downloader V1.0 Adopt typec interface, stm32f205 master control, lead SWD, SWO, support virtual serial port, resista...
- IP2325 dual string lithium battery charging module Miniature charger for dual lithium batteries.Since the IP2325 does not have a charge balancing funct...
- Electronic switch The operating voltage is within 30V. Depends on the PMOS voltage.
- Power supply module NAE20S08 Is based on SY8288A / JW5068A series power supply ic Volume: 10x10x6mm Input range: 4-23vin Output: ...
- Solder paste dispenser A portable miniature intelligent electric SMT solder paste dispensing pen supports quantitative extr...
-
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
154 1 1 -
-