Raspberry Pi 5 Power & USB Current Management
by ÁlvaroM13 in Circuits > Raspberry Pi
63 Views, 0 Favorites, 0 Comments
Raspberry Pi 5 Power & USB Current Management
Raspberry Pi 5 - ⚡ Power & USB Current Management
The Raspberry Pi 5 introduces a more rigorous power management system than previous models. This system monitors the power supply, USB-C Power Delivery (PD) negotiation, and the current available to USB peripherals.
When the power supply does not correctly communicate the expected profile, the system may limit the power delivered to the USB ports and display warnings to the user. This document explains how to correctly configure the system, based exclusively on the official Raspberry Pi documentation.
How To Avoid “Under-voltage Detected” Errors On Raspberry Pi
Power Architecture on the Raspberry Pi 5
The Raspberry Pi 5 uses:
- Main power input via USB-C with USB Power Delivery
- Power management controlled by EEPROM firmware
- Dynamic current distribution to:
- CPU/GPU
- USB ports
- Connected peripherals
The official power supply provides 5 V ⎓ 5 A (25–27 W) and communicates this profile via USB Power Delivery. Power supplies that do not negotiate correctly may still work, but with limitations.
Official reference:
Raspberry Pi Hardware Documentation – Power
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#power-supply
Supplies
- Raspberry pi 5
- Mean Well RS-25-5 - Fonte de alimentação 5V 5A 25W
Enabling Maximum Current on USB Ports
Objective
Allow the Raspberry Pi to provide the maximum possible current to the USB ports whenever the power supply allows it.
Correct file (Raspberry Pi OS Bookworm)
Command to edit
Parameter to add
Apply changes
Verification
Official reference:
config.txt – USB power control
https://www.raspberrypi.com/documentation/computers/config_txt.html
Monitoring Undervoltage and Throttling States
The firmware records events of:
- Undervoltage
- Thermal throttling
- Power limiting
Recommended command
Values other than 0x0 indicate events that are active or have occurred in the past.
Official reference:
vcgencmd
https://www.raspberrypi.com/documentation/computers/os.html#vcgencmd
Advanced EEPROM Configuration (Experienced Users)
What the EEPROM is
The EEPROM contains the boot firmware and power policies. Changes:
- Are persistent
- Survive operating system reinstalls
- Must be made with caution
Edit configuration
⚠️ Important note
Raspberry Pi does not officially document parameters to force maximum current while ignoring PD negotiation. Undocumented changes may:
- Disable protection mechanisms
- Cause instability
- Lead to data corruption
Official recommendation:
Always use a USB-C PD–compatible power supply with adequate power.
Official reference:
EEPROM configuration
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-boot-eeprom
RTC Battery (Optional)
The Raspberry Pi 5 supports a rechargeable RTC battery.
Enable charging (only if applicable)
⚠️ Use only with compatible rechargeable batteries.
Official reference:
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#rtc
RTC documentation - Recommended Best Practices (Official)
- Use a certified USB-C PD power supply
- Use a USB-C cable rated for 5 A
- Avoid “forcing” power configurations
- Monitor get_throttled on critical systems
Conclusion
The Raspberry Pi 5 offers a modern and secure power system, provided that USB-C PD negotiation is respected. Proper configuration through config.txt allows optimisation of USB port usage, while EEPROM changes should be reserved for experienced users.
This document follows exclusively official Raspberry Pi recommendations and documentation, ensuring reliability and safety.