Raspberry Pi Logo Raspberry Pi Model 4B. Its OS is raspiOS (Debian Buster)
Raspberry Pi 4B, a cheap-ish single board computer (SBC), is a capable machine to run many of the programs used in research in astroparticle physics and high-energy physics.
I tested several programs and after some time and some tweaking they all worked just fine. Even tough, it is not a powerful machine, it can be used as an initial step to introducing the tools to undergraduate students (or high school students) without the necessity of changing OS or to reconfigure their laptops.
Another feature is the possibility to use the GPIO interface in such a way to use the RPi to interact with custom circuits.
The power consumption when idle is around 2 Watts (mainly the fan) and under heavy CPU usage is around 8 Watts.
Backstory
Recently I bought a Raspberry Pi 4B (model of 8 Gb of RAM) from aliexpress. My initial idea was to try to use it for running programs for days. However, I didn’t know if the programs can run in such SBC. Raspberry Pi uses CPUs with ARM architecture meaning that programs intended for the X86 architecture cannot run. So, there were the risk to have a mini-machine useless for my idea.
Programs and software
I use RaspiOS which is a Linux distribution derived from Debian Buster Linux that include a Raspberry Pi desktop. (Download). The nice feature is one can update RPi firmware besides other things.
I managed to overclock the ARM CPUs from 1.5 GHz to 2.0 GHz without overheating. The starting-pack included a case with heat sinks and fan good enough to avoid overheating.
Preparing the system for the intended software was easy. Everything is in the Debian/Rpi repositories. They all get installed by executing:
sudo apt install -y gufw openssh-server
sudo apt install -y gcc gfortran libx11-dev
sudo apt install -y python3 python3-pandas python3-scipy python3-numpy python3-matplotlib
These packages are basic for any compiling needed for installing the following programs.
The tested software:
- Lanhep 4.0 (https://theory.sinp.msu.ru/~semenov/lanhep.html)
It works as intended fine. Compilation with optimization works. - Calchep 3.8.6 (https://theory.sinp.msu.ru/~pukhov/calchep.html)
It works as intended fine. Compilation with optimization works. - Micromegas 5.2.1 (https://lapth.cnrs.fr/micromegas/)
It works as intended, but it crashes when runs if it was compiled with optimization (-O). This is a bug in micromegas not a problem of the RPi. - Mathematica 12.1 (https://www.wolfram.com/raspberry-pi/)
Wolfram has an agreement with Raspberry Pi Foundation. It just has to run the script and I could use Mathematica 12.1 for Raspberry Pi (No license is needed). - Python 3
It works as intended. I could run codes without any problem. The only issue there is no anaconda version for ARM CPUs.
Rpi running Ubuntu 20.04 LTS RPi running Micromegas RPi running Calchep