Welcome to AllPi, a growing suite of Python-based tools designed to test, stress, and monitor your Raspberry Pi. Whether you're benchmarking performance, verifying thermal stability, or measuring power usage, AllPi has you covered — right from the terminal.
AllPi is written in solid, clean Python and fully optimized for Raspberry Pi models 2, 3, and 4 (with limited support for newer models).
⚙️ Files
Pi-1.pytoPi-6.pyare complete and ready to run.
The goal of this repository is to provide multiple, real-world testing and stress options you can run directly on your Raspberry Pi. These tests help ensure your system’s reliability, thermal performance, and hardware behavior under load.
Keep reading for details on each file!
| File | Purpose |
|---|---|
Pi-1.py |
General system stress with real-time stats |
Pi-2.py |
Maxes CPU load for thermal stability testing |
Pi-3.py |
Tests and stresses RAM memory |
Pi-4.py |
Power usage test via CPU stress |
Pi-5.py |
Controls ACT LED (limited to supported models) |
Pi-6.py |
Measures power in watts using external sensor |
This script applies a moderate stress test and outputs real-time stats like:
[12:00:01] CPU: 99.8% | RAM: 86.3% | TEMP: 72.3°C | Time Left: 00:59:58 [12:00:02] CPU: 100.0% | RAM: 88.1% | TEMP: 73.1°C | Time Left: 00:59:57
🔄 This section will receive additional features in future updates.
Pi-2.py is designed to fully load your CPU, pushing your Pi to maximum operating temperatures. It's ideal for thermal stability testing.
Pi-3.py efficiently tests RAM stability using high memory operations to verify your Pi’s memory subsystem is functioning correctly.
🔄 More features are on the way!
Pi-4.py simulates high CPU power draw by maxing out all cores.
While it doesn’t measure power directly, it's useful for:
- Power draw estimation
- Cooling effectiveness testing
✅ Safe for all models.
This script allows you to control the onboard ACT LED.
Only works on models where the LED is accessible via /sys/class/leds/led0.
- Disable default ACT LED behavior:
echo none | sudo tee /sys/class/leds/led0/trigger
- Run the LED control script:
sudo python3 at5.py
- Restore default LED function:
echo mmc0 | sudo tee /sys/class/leds/led0/trigger
⚙️ Pi-6: Real Power Measurement (External Sensor Required)
This script uses INA219 or INA3221 sensors to measure actual power usage (volts × amps = watts).
🧪 Sample Output 2025-08-13 15:00:05 | Power: 10.35 W | CPU Load: 18.3% | CPU Temp: 51.0°C
The Raspberry Pi does not support USB power monitoring natively. You’ll need external hardware (like INA219 or USB power meters).
✅ Setup Instructions
Install required libraries:
sudo pip3 install psutil adafruit-circuitpython-ina219 sudo apt install i2c-tools python3-smbus -y
Enable I2C Interface:
sudo raspi-config
Run the script:
python3 Pi-6.py
🔄 Updates & Roadmap
This repository is actively maintained and new tools/tests will be added over time.
✅ Current: Pi-1 to Pi-6 scripts 🚧 Upcoming: Extended benchmarking tools, sensor support, and more real-time telemetry
Please stay tuned and thank you for your patience!
📜 License
This project is licensed under the MIT License .
🤝 Contribute
Pull requests and suggestions are welcome! Feel free to open an issue if you have feature requests or run into any problems.
🌐 Connect
Maintained by: [The3DP]. For questions or feedback, feel free to open a GitHub issue or discussion thread.