How do you reduce the power consumption of a Raspberry Pi?

 Reducing the power consumption of a Raspberry Pi is important for battery-powered or energy-efficient projects. Here are practical steps to reduce power usage, applicable to most Raspberry Pi models (especially Pi 3 and Pi 4):




Top Methods to Reduce Power Consumption

 1. Disable HDMI Output

If you're not using a display:

bash

/opt/vc/bin/tvservice -o

To re-enable it:

bash

/opt/vc/bin/tvservice -p

 2. Turn Off Wi-Fi and Bluetooth

If wireless communication is not needed:

bash

sudo rfkill block wifi sudo rfkill block bluetooth

Or, in /boot/config.txt, add:

bash

dtoverlay=disable-wifi dtoverlay=disable-bt

 3. Lower the CPU Clock Speed

You can underclock the CPU to reduce power usage:

Edit /boot/config.txt:

bash

arm_freq=600

Add optional:

bash

core_freq=250 sdram_freq=400 over_voltage=-2

Note: underclocking can reduce performance.


 4. Disable Unused Interfaces

Disable unused ports like camera, audio, I2C, SPI, etc.

In raspi-config:

bash

sudo raspi-config

Go to Interfacing Options and disable unused interfaces.


 5. Use a Minimal OS

Use Raspberry Pi OS Lite or a minimal Linux distro (e.g., DietPi) that runs fewer services and consumes less power.


 6. Reduce Background Processes

Stop or disable unnecessary services:

bash

sudo systemctl disable <service-name>

Use htop to identify what's running.


 7. Use Efficient Power Supply and Peripherals

  • Use a low-loss DC/DC converter if running from batteries.

  • Disconnect unused USB devices (they draw power).

  • Use low-power sensors and displays.


 8. Turn Off LEDs (Optional)

Disable onboard LEDs (especially on Pi Zero, Pi 3, or Pi 4):

In /boot/config.txt:

bash

# Turn off power LED dtparam=act_led_trigger=none dtparam=act_led_activelow=on

 Estimated Savings (Varies by Model)

ActionPower Saved
Disable HDMI~25–30 mA
Turn off Wi-Fi & Bluetooth~50–100 mA
Underclock CPU~50+ mA
Disable LEDs~5–10 mA
Use Lite OS~30–60 mA


 Summary

To reduce power consumption:

  • Disable unnecessary hardware (Wi-Fi, HDMI, LEDs)

  • Use a minimal OS

  • Underclock and undervolt the CPU

  • Remove unused peripherals and services

评论

此博客中的热门博文

Detailed Explanation of STM32 HAL Library Clock System

How to remove write protection of STM32 chip?

The automatic white balance algorithm of Raspberry Pi