Pironman V1.0- SunFounder Mini PC Kit for Raspberry Pi¶
Note
We offer two versions of Pironman. It’s crucial to note that the scripts in each version’s online tutorial are not interchangeable.
To ensure the proper setup, you’ll need to identify your version using the short link provided in your instruction sheet:
If the link is “pironman.rtfd.io”, continue with this tutorial.
If the link displays “pironman-v2.rtfd.io”, kindly follow the tutorial at Pironman V2.0.


Pironman is SunFounder’s customized Mini PC for Raspberry Pi. Just connect the screen, mouse and keyboard, and you can use it for projects, entertainment and office.
Small size of 4.43’’ x 2.69’’ x 4.68’’
Raspberry Pi mini PC
Tower cooler can cool a 100% CPU load Pi to 39°C at 25°C room temperature
0.96” OLED Display showing Raspberry Pi’s CPU usage, temperature, disk usage, IP address, RAM usage etc
Onboard USB to M.2 SATA SSD, TRIM supported
RGB Fan, with GPIO control
16 WS2812 Addressable RGB LEDs
IR Receiver for multi-media center like Kodi or Volumio
External GPIO extender with pin name label
Power status memory, remembers the power status, automatically boot after accident power cut off
Aluminum main body with clear Acrylic side panel
Note
Pironman compatible systems are shown below. If you have other systems installed, some of the Pironman components may not be available.

1. What Else Should We Prepare?¶
Required Components
Raspberry Pi 4 Model B
Pirionman is fully compatible with Raspberry Pi 4 Model B.
5V/3A Power Adapter
This 5V/3A power adapter plugs into Pironman’s Power connector and powers all components. You can power the Raspberry Pi 4 separately if you are also connecting other devices that consume a lot of power.
Micro SD Card
As the Raspberry Pi is completely enclosed in the Pironman, we have reserved an additional micro SD port for you. The micro SD card you use should have a capacity at least 8GB.
Optional Components
M.2 SATA SSD
Note
The M.2 SSD interface only supports SATA protocol, not NVME/PCIe.
For more information on how to mount SSD to Pironman and the related configuration, please refer to :SATA M.2 SSD.
In the Pironman’s mainboard, there is an M.2 SSD connector for installing your M.2 SSD.
An M.2 SSD is a small form factor solid-state drive (SSD) that is used in internally mounted storage expansion cards. M.2 SSDs conform to a computer industry specification and are designed to enable high-performance storage in thin, power-constrained devices, such as ultrabook laptops and tablet computers.
Screen
To view the desktop environment of Raspberry Pi, you need to use the screen that can be a TV screen or a computer monitor. If the screen has built-in speakers, the Pi plays sounds via them.
Micro HDMI Cable
There are two Micro HDMI output ports on the Raspberry Pi 4 Model B, and you will need a converter cable to connect it to your screen.
Mouse & Keyboard
When you use a screen, a USB keyboard and a USB mouse are also needed.
Sound or Earphone
The Raspberry Pi is equipped with an audio port about 3.5 mm that can be used when your screen has no built-in speakers or when there is no screen operation.
2. Component List and Assembly Instructions¶
Before assembling the Pironman, please first verify that all parts and components have been included. If there are any missing or damaged components, please contact SunFounder immediately at cs@sunfounder.com to resolve the issue as soon as possible.
Please follow the steps on the following PDF for assembly instructions:
Assemble Tutorial Video
About GPIO Bridge Assembly


3. Installing the OS¶
Note
If your Raspberry Pi has the following Pironman-compatible systems installed, you can skip this chapter.
Step 1
Raspberry Pi have developed a graphical SD card writing tool that works on Mac OS, Ubuntu 18.04 and Windows, and is the easiest option for most users as it will download the image and install it automatically to the SD card.
Visit the download page: https://www.raspberrypi.org/software/. Click on the link for the Raspberry Pi Imager that matches your operating system, when the download finishes, click it to launch the installer.

Step 2
When you launch the installer, your operating system may try to block you from running it. For example, on Windows I receive the following message:
If this pops up, click on More info and then Run anyway, then follow the instructions to install the Raspberry Pi Imager.

Step 3
Insert your SD card into the computer or laptop SD card slot.
Step 4
In the Raspberry Pi Imager, select the OS that you want to install and the SD card you would like to install it on.

Note
You will need to be connected to the internet the first time.
That OS will then be stored for future offline use(
lastdownload.cache
,C:/Users/yourname/AppData/Local/Raspberry Pi/Imager/cache
). So the next time you open the software, it will have the display “Released: date, cached on your computer”.
Step 5
Select the SD card you are using.

Step 6
Press Ctrl+Shift+X or click the setting icon to open the Advanced options page to enable SSH and set username and password.
Note
Now that the Raspberry Pi doesn’t have a default password, you will need to set it yourself. Also, the username can be changed.
For remote access, you will also need to enable SSH manually.

Then scroll down to complete the wifi configuration and click SAVE.
Note
wifi country
should be set the two-letter ISO/IEC alpha2 code for the country in which you are using your Raspberry Pi.

Step 7
Click the WRITE button.

Step 8
If your SD card currently has any files on it, you may wish to back up these files first to prevent you from permanently losing them. If there is no file to be backed up, click Yes.

Step 9
After waiting for a period of time, the following window will appear to represent the completion of writing.

4. Set up Your Raspberry Pi¶
Note
If your Raspberry Pi has the following Pironman-compatible systems installed, you can skip this chapter.
If You Have a Screen¶
If you have a screen, it will be easy for you to operate on the Raspberry Pi.
Required Components
Any Raspberry Pi
1 * Power Adapter
1 * Micro SD card
1 * Screen Power Adapter
1 * HDMI cable
1 * Screen
1 * Mouse
1 * Keyboard
Insert the SD card you’ve set up with Raspberry Pi OS into the micro SD card slot on the underside of your Raspberry Pi.
Plug in the Mouse and Keyboard.
Connect the screen to Raspberry Pi’s HDMI port and make sure your screen is plugged into a wall socket and switched on.
Note
If you use a Raspberry Pi 4, you need to connect the screen to the HDMI0 (nearest the power in port).
Use the power adapter to power the Raspberry Pi. After a few seconds, the Raspberry Pi OS desktop will be displayed.
If You Have No Screen¶
If you don’t have a monitor, you can remotely log into your Raspberry Pi.
You can apply the SSH command to open the Raspberry Pi’s Bash shell. Bash is the standard default shell for Linux. The shell itself is a command (instruction) when the user uses Unix/Linux. Most of what you need to do can be done through the shell.
If you’re not satisfied with using the command window to access your Raspberry Pi, you can also use the remote desktop feature to easily manage files on your Raspberry Pi using a GUI.
See below for detailed tutorials for each system.
Mac OS X user¶
For Mac users, accessing the Raspberry Pi desktop directly via VNC is more convenient than from the command line. You can access it via Finder by entering the set account password after enabling VNC on the Raspberry Pi side.
Note that this method does not encrypt communication between the Mac and Raspberry Pi. The communication will take place within your home or business network, so even if it’s unprotected, it won’t be an issue. However, if you are concerned about it, you can install a VNC application such as VNC® Viewer.
Alternatively it would be handy if you could use a temporary monitor (TV), mouse and keyboard to open the Raspberry Pi desktop directly to set up VNC. If not, it doesn’t matter, you can also use the SSH command to open the Raspberry Pi’s Bash shell and then using the command to set up the VNC.
Have Temporarily Monitor (or TV)?¶
Connect a monitor (or TV), mouse and keyboard to the Raspberry Pi and power it on. Select the menu according to the numbers in the figure.
The following screen will be displayed. Set VNC to Enabled on the Interfaces tab, and click OK.
A VNC icon appears on the upper right of the screen and the VNC server starts.
Open the VNC server window by clicking on the VNC icon, then click on the Menu button in the top right corner and select Options.
You will be presented with the following screen where you can change the options.
Set Encryption to Prefer off and Authentication to VNC password.
When you click the OK button, the password input screen is displayed. You can use the same password as the Raspberry pi password or a different password, so enter it and click OK.
You are now ready to connect from your Mac. It’s okay to disconnect the monitor.
From here, it will be the operation on the Mac side.
Now, select Connect to Server from the Finder’s menu, which you can open by right-clicking.
Type in
vnc://<username>@<hostname>.local
(orvnc://<username>@<IP address>
). After entering, click Connect.You will be asked for a password, so please enter it.
The desktop of the Raspberry pi will be displayed, and you will be able to operate it from the Mac as it is.
Don’t Have Temporarily Monitor (or TV)?¶
You can apply the SSH command to open the Raspberry Pi’s Bash shell.
Bash is the standard default shell for Linux.
The shell itself is a command (instruction) when the user uses Unix/Linux.
Most of what you need to do can be done through the shell.
After setting up the Raspberry pi side, you can access the desktop of the Raspberry Pi using the Finder from the Mac.
Type
ssh <username>@<hostname>.local
to connect to the Raspberry Pi.ssh pi@raspberrypi.local
The following message will be displayed only when you log in for the first time, so enter yes.
The authenticity of host 'raspberrypi.local (2400:2410:2101:5800:635b:f0b6:2662:8cba)' can't be established. ED25519 key fingerprint is SHA256:oo7x3ZSgAo032wD1tE8eW0fFM/kmewIvRwkBys6XRwg. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])?
Enter the password for the Raspberry pi. The password you enter will not be displayed, so be careful not to make a mistake.
pi@raspberrypi.local's password: Linux raspberrypi 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Sep 22 12:18:22 2022 pi@raspberrypi:~ $
Set up your Raspberry Pi so that you can log in via VNC from your Mac once you have successfully logged into it. The first step is to update your operating system by running the following commands.
sudo apt update sudo apt upgrade
Do you want to continue? [Y/n]
, EnterY
when prompted.It may take some time for the update to finish. (It depends on the amount of updates at that time.)
Enter the following command to enable the VNC Server.
sudo raspi-config
The following screen will be displayed. Select 3 Interface Options with the arrow keys on the keyboard and press the Enter key.
Then select P3 VNC.
Use the arrow keys on the keyboard to select <Yes> -> <OK> -> <Finish> to complete the setup.
Now that the VNC server has started, let’s change the settings for connecting from a Mac.
To specify parameters for all programs for all user accounts on the computer, create
/etc/vnc/config.d/common.custom
.sudo nano /etc/vnc/config.d/common.custom
After entering
Authentication=VncAuthenter
, pressCtrl+X
->Y
->Enter
to save and exit.In addition, set a password for logging in via VNC from a Mac. You can use the same password as the Raspberry pi password or a different password.
sudo vncpasswd -service
Once the setup is complete, restart the Raspberry Pi to apply the changes.
sudo sudo reboot
Now, select Connect to Server from the Finder’s menu, which you can open by right-clicking.
Type in
vnc://<username>@<hostname>.local
(orvnc://<username>@<IP address>
). After entering, click Connect.You will be asked for a password, so please enter it.
The desktop of the Raspberry pi will be displayed, and you will be able to operate it from the Mac as it is.
Windows Users¶
If you’re a Windows user, you can use Windows PowerShell to login Raspberry Pi remotely.
Press the
windows
+R
shortcut key in your keyboard to open the Run program. Then type powershell in the input box.Check if your Raspberry Pi is on the same network by type in
ping <hostname>.local
.ping raspberrypi.local
If terminal prompts
Ping request could not find host <hostname>.local
, it is possible that the Raspberry Pi failed to connect to the network.lease check the network.If you really can’t ping
<hostname>.local
, try to Get the IP address andping <IP address>
instead. (e.g.,ping 192.168.6.116
)If multiple prompts like “Reply from <IP address>: bytes=32 time<1ms TTL=64” appear, it means your computer can access the Raspberry Pi.
Type in
ssh <username>@<hostname>.local
(orssh <username>@<IP address>
).ssh pi@raspberrypi.local
The following message may appear.
The authenticity of host 'raspberrypi.local (192.168.6.116)' can't be established. ECDSA key fingerprint is SHA256:7ggckKZ2EEgS76a557cddfxFNDOBBuzcJsgaqA/igz4. Are you sure you want to continue connecting (yes/no/[fingerprint])?
Input "yes".
Input the password you set before. (Mine is
raspberry
.)Note
When you input the password, the characters do not display on window accordingly, which is normal. What you need is to input the correct password.
We now get the Raspberry Pi connected and are ready to go to the next step.
Remote Desktop¶
If you’re not satisfied with using the command window to access your Raspberry Pi, you can also use the remote desktop feature to easily manage files on your Raspberry Pi using a GUI.
Here we use VNC® Viewer.
Enable VNC service
The VNC service has been installed in the system. By default, VNC is disabled. You need to enable it in config.
Input the following command:
sudo raspi-config
Choose 3 Interfacing Options by press the down arrow key on your keyboard, then press the Enter key.
Then P3 VNC.
Use the arrow keys on the keyboard to select <Yes> -> <OK> -> <Finish> to complete the setup.
Login to VNC
You need to download and install the VNC Viewer on personal computer.
Open it once the installation is complete. Then, enter the host name or IP address and press Enter.
After entering your Raspberry Pi name and password, click OK.
Now you can see the desktop of the Raspberry Pi.
Linux /Unix Users¶
Go to Applications->Utilities, find the Terminal, and open it.
Check if your Raspberry Pi is on the same network by type in
ping <hostname>.local
.ping raspberrypi.local
If terminal prompts
ping: cannot resolve <hostname>.local
, it is possible that the Raspberry Pi failed to connect to the network. Please check the network.If you really can’t ping
<hostname>.local
, try to Get the IP address andping <IP address>
instead. (e.g.,ping 192.168.6.116
)If multiple prompts like
64 bytes from <IP address>: icmp_seq=0 ttl=64 time=0.464 ms
appear, it means your computer can access the Raspberry Pi.
Type in
ssh <username>@<hostname>.local
(orssh <username>@<IP address>
).ssh pi@raspberrypi.local
The following message may appear.
Input the password you set before. (Mine is
raspberry
.)We now get the Raspberry Pi connected and are ready to go to the nextstep.
5. Set up the Pironman¶
Note
This Pironman is used in the same way as PC and requires the power button to power on/off.
Compatible Systems¶
Pironman compatible systems are shown below.

If your systems that don’t have git
, python3
and pip
pre-installed you need to install them first.
sudo apt-get update
sudo apt-get install git -y
sudo apt-get install python3 python3-pip python3-setuptools -y
Install pironman
module¶
Use the following commands to download and install the pironman
module.
cd ~
git clone https://github.com/sunfounder/pironman.git
cd ~/pironman
sudo python3 install.py
After installation, the program will start automatically. Here are the basic configurations for Pironman.
The OLED screen will display the CPU, RAM and ROM Usage, CPU Temperature and IP Address of the Raspberry Pi.
After 60 seconds, the OLED display goes into sleep mode, and you can wake it up by a short press on the power button.
The fan is turned on at 50 degrees Celsius.
Turn on the WS2812 RGB strip so that it displays in color #0a1aff(blue) and in breath mode (change rate is 50%).
At this point, you can press and hold for 2 seconds to safely shut down or 10 seconds to forcibly shut down.
Modify the Configuration¶
In the pironman
module, we have some basic configurations for Pironman, and you can check them with the following command.
pironman -c
The current configurations are shown below.
The fan is turned on at 50 degrees Celsius.
The duration of the OLED display is 60s, after 60s it will start to sleep.
Turn on the WS2812 RGB strip so that it displays in color #0a1aff and in breath mode (change rate is 50%).

You can also modify these configurations to suit your needs.
Use pironman
or pironman -h
or pironman --help
to view the instructions, as follows.
Usage:
pironman <OPTION> <input>
Options:
start start pironman service
stop stop pironman service
restart restart pironman service
-h,--help help, show this help
-c,--check show all configurations
-a,--auto [ on ],enable auto-start at boot
[ off ], disable auto-start at boot
-u,--unit [ C/F ], set the unit of temperature,
C or F (Celsius/Fahrenheit)
-f,--fan [ temp ], Temperature at which the fan switches on,
in celsius (default 50),in range (30 ~ 80)
-al,--always_on [on/off], whether the screen is always on,
default False
-s,--staty_time [time], screen display duration in second,
in second, default 30
-rw,--rgb_sw [on/off], rgb strip switch
-rs,--rgb_style rgb strip display style, default: breath,
in [breath / leap / flow / raise_up / colorful]
-rc,--rgb_color [(HEX)color], set the color of rgb strip,
default: 0a1aff
-rb,--rgb_speed [speed], rgb blink speed (0 ~ 100, default 50)
-pwm,--rgb_pwm [frequency], rgb signal frequency (400 ~ 1600, default 1000 kHz)
For example, to turn off the automatic execution of programs at boot.
pironman -a off
Or reset the color of WS2812 RGB strip.
pironman -rc ff8a40
Those configurations are stored in /.config/pironman/config.txt
, and you can also make changes directly in this file.
sudo nano ~/.config/pironman/config.txt

Press Ctrl+X
-> Y
-> Enter
to save and exit editing.
Note
For details on the introduction and configuration of the components in Pironman, please refer to: 6. About Hardware.
6. About Hardware¶
This chapter is a detailed description of all the components in Pironman, as well as the associated software configuration.
Features¶
Functions
Raspberry Pi mini PC
Tower cooler can cool a 100% CPU load Pi to 39°C at 25°C room temperature
Onboard USB to M.2 SATA SSD, TRIM supported
IR Receiver for multi-media center like Kodi or Volumio
RGB Fan, with GPIO control
16 WS2812 Addressable RGB LED light up the whole case with cool light effect
Retro metal power button with indicator light for safe shut down
0.96” OLED Display showing Raspberry Pi’s CPU usage, temperature, disk usage, IP address, RAM usage etc.
External GPIO extender with pin name label, for easy access
Power status memory, remembers the power status incase accident power cut off
Re-wiring the microSD card for easy access
Aluminum main body with clear Acrylic side panel
Parameters
Dimension: 112.45x68.2x118.92mm
- Material
Main body: aluminum alloy
Both sides and front panel: acrylic
Support platform: Raspberry Pi 4B
Power input: USB Type C 5V/3A
Rated power: 5V/800mA
- interface (d ~ i is the original Raspberry Pi interface exposed)
Raspberry Pi standard 40-Pin GPIO
micro SD
USB Type C power input
USB 2.0 x 2
USB 3.0
Gigabit LAN port
USB Type C Raspberry Pi power supply (direct power to Raspberry Pi, not recommended)
micro HDMI x 2
3.5mm headphone jack
Power button
OLED screen: 0.96’’ 128x64 resolution
Infrared receiver: 38KHz
Cooling fan: size 40x40x10mm
WS2812 RGB LED: 16xWS2812B-5050
Pin Functions

Shutdown Signal Pin: By pressing the power button, the Raspberry Pi will power off, while setting GPIO26 to a high level, and if the Main Board detects this high level, it will power cut.
Dimensional Drawing

Main Board¶
About the Jumper Caps

There are 5 jumper caps on the Main Board, each jumper cap corresponds to a function, if you do not need the function and want to use the pin elsewhere, you can unplug the jumper cap. The following is a detailed explanation of the functions of the five jumper caps.
Cooling Fan (IO6): The fan is always spinning when this jumper cap is unplugged. You can unplug the fan wires or remove the fan if you don’t need it.
IR Receiver (IO13): If you pull out this jumper cap, the IR Receiver will not work.
WS2812 Strip (IO12): If you pull out this jumper cap, the WS2812 Strip will not work.
Shutdown Signal (IO26): The Main board powers on/off depending on the level of the
State
pin; whenState
is low, it powers on, and whenState
is high, it powers off.You can only turn off the main board by pressing and holding the power button for 10 seconds if you connect GND and state with a jumper cap.
If you connect
State
and IO26 with a jumper cap, after configuration, the Raspberry Pi can control theState
pin through IO26. When Raspberry Pi is on,State
will be set to low level, when Raspberry Pi is off,State
will be set to high level, so the motherboard and Raspberry Pi can power on/off synchronously.
Power Button (IO16): If you pull out this jumper cap, the power button will not work. Besides, the power button is also used to wake up the OLED screen in Sleep Mode.
Power Cut Memory
When the Pironman suddenly loses power, the chip of the Main Board will record this state and will automatically power on the next time.
OLED Screen¶
After installation, the script will start automatically and the OLED screen will display the CPU, RAM and ROM Usage, CPU Temperature and IP Address of the Raspberry Pi.
In order to extend the life of OLED screen, OLED will turn off after 60 seconds by default, and will light up by pressing the power button shortly. You can enable/disable this feature with the following command.
set to sleep mode: “al” means to “always on”. In sleep mode, short press the power button to wake up.
pironman -al off
set to always on mode:
pironman -al on
Set the duration in seconds,
pironman -s 60
The above are what we set for OLED screen, if you want to make OLED screen display other information and effects, you can open
/opt/pironman/main.py
to modify and run it.Open this python script and modify its contents.
sudo nano /opt/pironman/main.py
Press
Ctrl+X
->Y
->Enter
to save and exit editing.Run it.
sudo python3 /opt/pironman/main.py
Cooling Fan¶
Note
The Cooling Fan is connected to GPIO6 (BCM).
The working status of the Cooling Fan is decided by the CPU temperature. When the CPU temperature reaches the set threshold, the fan spins, and if it is 2 degrees Celsius below the threshold, the fan is stopped.
Set the temperature unit,
C
: Celsius,F
: Fahrenheit.
pironman -u C
Set the temperature at which the fan starts, for example, 40 degrees Celsius (the unit is set by you).
pironman -f 40
WS2812 RGB Strip¶
Note
The WS2812 RGB Strip is connected to GPIO12.
The WS1812 RGB Strip is a light strip with 8 RGB LEDs that can be used to display Pironman’s status. You can use commands to make it turn on or off, or to modify its color (default is blue), display mode and change rate.
Turn on the WS2812 RGB Strip.
pironman -rw on
Turn it off.
pironman -rw off
Change its color, using hexadecimal color values.
pironman -rc fe1a1a
Changing the display mode, there are four modes to choose from:
breath
,leap
,flow
,raise_up
.
pironman -rs leap
Change the speed of change (0 ~ 100%).
pironman -rb 80
Above are the effects we preset for WS2812 RGB Strip, if you want it to display other effects, you can open
/opt/pironman/ws2812_RGB.py
to modify and run it.Open this python script and modify its contents.
sudo nano /opt/pironman/ws2812_RGB.py
Press
Ctrl+X
->Y
->Enter
to save and exit editing.Run it.
sudo python3 /opt/pironman/ws2812_RGB.py
IR Receiver¶
Note
The IR receiver is connected to GPIO13, if you want to change it to another pin, please refer to Compatible Systems.
Before you can use IR receiver, you need to test its connection and install the relevant module.
Use the following command to test, if there is a display device then the configuration is successful.
sudo ls /dev |grep lirc
Install the
lirc
module.sudo apt-get install lirc -y
Run the following command, and if you press a key on the remote controller, the code of the corresponding key will be printed.
mode2 -d /dev/lirc0
Note
If you want to play Kodi on Raspberry Pi, please refer to: Install Kodi on Raspberry Pi Use OSMC.
SATA M.2 SSD¶
Why not compitable with NVME M.2 SSD?¶
Note
The M.2 SSD hard drive interface only supports SATA protocol, not NVME/PCIe.
Our current interface is designed to support SATA M.2 SSDs, and we want to clarify our decision to not offer compatibility with NVMe M.2 SSDs:
The primary factor is that while NVMe SSDs excel in high-performance computing environments, the Raspberry Pi 4’s processing capacity and bus bandwidth are limited. This means that even if an NVMe SSD is connected, hardware constraints could prevent it from fully utilizing the SSD’s performance advantages, resulting in suboptimal resource utilization.
Furthermore, the USB power supply on the Raspberry Pi 4 has limitations. Connecting an NVMe SSD might lead to insufficient power supply, especially under heavy workloads. NVMe SSDs often require higher currents for stable performance, but the Raspberry Pi 4’s USB ports might not meet these power demands, leading to unstable SSD operation or even failure to function properly.
Due to these reasons, connecting an NVMe SSD wouldn’t yield significant performance improvements. This is why we have chosen not to support the NVMe SSD interface.
We appreciate your understanding of our design considerations. Our commitment is to provide you with a product that effectively meets your needs while delivering a seamless experience.
About the Model¶
M.2 SSD (M.2 solid-state drive) comes in various models, depending on their specifications and performance characteristics. Here are some common M.2 SSD models:
SATA M.2 SSD: This is the most common type of M.2 SSD, using the SATA interface. They typically offer lower read/write speeds and lower prices, suitable for general computing tasks.
NVMe M.2 SSD: This is a higher-performance type of M.2 SSD, utilizing the NVMe (Non-Volatile Memory Express) interface. NVMe SSDs provide faster transfer speeds and lower latency, suitable for tasks that require high-speed data transfer, such as gaming and large file processing.
PCIe M.2 SSD: This type of M.2 SSD uses the PCI Express (PCIe) interface, offering higher bandwidth and faster speeds. They are typically more expensive than SATA and NVMe SSDs and are suitable for professional users who require the highest performance, such as video editing and scientific computing.
M.2 SSDs come in three key types: B key, M key, and B+M key. However, later on, the B+M key was introduced, combining the functionalities of the B key and M key. As a result, it replaced the standalone B key. Please refer to the image below.

In general, M.2 SATA SSDs are B+M-keyed (can fit in sockets for B-keyed and M-keyed modules), while M.2 NVMe SSDs for PCIe 3.0 x4 lane are M-keyed.

About the Length¶
M.2 modules come in different sizes and can also be utilized for Wi-Fi, WWAN, Bluetooth, GPS, and NFC.
Pironman supports four M.2 SATA SSD sizes based on their names: 2230, 2242, 2260, and 2280. The “22” is the width in millimeters (mm), and the two following numbers are the length. The longer the drive, the more NAND flash chips can be mounted; therefore, the more capacity.

Assemble the SSD¶
Take off the base plate of the Pironman.
Remove the screw for the M.2 SATA SSD.
Insert your M.2 SATA SSD.
Screwed in place.
Put the base plate back on.
Plug in SSD Bridge and 5V/3V power supply.
Booting from SSD¶
Now that you’ve installed the SSD on your Raspberry Pi, let’s explore how to install the Raspberry Pi OS on it and configure the Raspberry Pi to boot from the SSD.
1. Install Raspberry Pi OS to SSD
There are two methods to install Raspberry Pi OS on your SSD:
The first method is to directly install it via the Raspberry Pi Imager. This method is similar to installing the OS on a Micro SD card. Just select your SSD when you’re prompted to choose a storage device. If you’re unfamiliar with this process, you can refer to the tutorial 3. Installing the OS.
The alternative method is copying from your existing SD card. If you want to retain the files and system on your SD card, this method is for you.
Let’s walk through how you can copy the contents of your Micro SD to the SSD:
Insert the micro SD card into the Pironman, plug in the USB Bridge to connect the SSD to the Raspberry Pi, and power the pironman up.
Access the Raspberry Pi desktop. You can do this by connecting a monitor directly or through remote desktop, see the tutorial for guidance: If You Have No Screen.
Launch the SD Card Copier from the Accessories section of the start menu.
Choose the Copy from device (Micro SD card) and the copy to device (SSD,
/dev/sda/
). Double-check to ensure you’ve selected the correct drives, then click “Start” to initiate the copying process. This can take around several minutes.Once you see “Copy Complete”, shut down the Raspberry Pi and remove the micro SD card.
Note
If your Micro SD card is the the Raspberry Pi Lite, you’ll need to use commands to complete the copying process. For detailed instructions, please refer to: How to copy Raspberry Pi OS Lite from Micro SD to SSD?.
2. Install Bootloader
With the Raspberry Pi OS now on the SSD, it’s time to reset the Pi’s Bootloader to prioritize booting from USB.
Download and install the Raspberry Pi Imager from the Raspberry Pi website.
Insert a spare micro SD card into your computer. Please be aware that the contents of this card will be erased, so back up any important data first.
Launch the Raspberry Pi Imager and scroll down under “Operating System” to “Misc Utility Images”. Left-click to access the subsequent menu.
Select Bootloader.
Next, choose USB Boot. This will bring us back to the main menu.
Under “Storage”, select the micro SD card. Double-check to ensure you’ve chosen the correct drive before proceeding.
Click “WRITE” to download the configuration image and write it to the micro SD card.
Wait for a successful write confirmation before removing the micro SD card from your computer.
Insert the micro SD card into the Pironman and power it up.
Once the update is complete, the green activity LED will flash steadily. If you have an HDMI monitor connected, the screen will turn green upon completion. The update might take 10 seconds or even longer, so ensure you don’t remove the micro SD card during this process.
Turn off the Raspberry Pi’s power and remove the micro SD card.
3. Boot from SSD
At this point, ensure the micro SD card is removed. Connect the USB Bridge to connect the SSD to the Raspberry Pi. Now, power up the Pironman.
7. Appendix¶
Install Kodi on Raspberry Pi Use OSMC¶
Kodi is one of the most popular ways to play media on your Raspberry Pi. It supports a large number of different media formats, and you can use this media center software to play music, videos, and even show your images.
With Kodi, you can scan and sort all your media files. It will download information about your files and present it to you in an attractive manner.
You can install Kodi directly on your Raspberry Pi system, or you can just use a distribution with Kodi pre-installed, such as OSMC and LibreELEC.
In this tutorial, we will show you how to install and set up OSMC Media Center.

OSMC is an operating system distribution that uses Kodi media center software.
One of the advantages of OSMC is that it is actively maintained and built on top of a full operating system, allowing it to be easily extended beyond its built-in Kodi functionality. For example, we can easily set up Netflix on it because we can easily access the backend.
For the best experience with Kodi, we recommend that you use the Raspberry Pi 4 or newer. The stronger processor and increased RAM will help Kodi run at its best.
Components List¶
Required
Pironman
Micro SD card (8GB+)
Ethernet cable or Wi-Fi
HDMI cable
Monitor
Keyboard and mouse
Optional
M.2 SATA SSD
Install the OSMC Image¶
You will learn how to install OSMC image on a Micro SD card in this section. Traditionally, burning tools used to be Etcher and Win32 disk imager, but Raspberry Pi has now developed Raspberry Pi Imager, which is an all-in-one image and tool that makes image installation easy.
If you don’t have Raspberry Pi Imager, please download it.
Open Raspberry Pi Imager, and click CHOOSE OS.
Click the Media player OS button. This button will bring up 2 images for Kodi.
Here we choose OSMC.
Raspberry Pi 0/1, 2/3, 4/400 versions are provided; please select the appropriate version.
After selecting the appropriate drive, then click Write.
Once the installation success message appears, you can pull out the Micro SD.
Initial Setup of OSMC on the Raspberry Pi¶
Now that we have installed OSMC to an SD card, we will walk you through the process of its initial set up process.
Now pull out the Micro SD card and insert it into the card slot of the Piron.
Connect your display to the Pironman with the HDMI cable, then turn it on with the power switch.
You will be greeted with the following screen when you launch OSMC for the first time. Please wait until the setup process is complete before continuing with our OSMC setup guide.
Once the installation is complete, you will need to reboot Pironman. You can reboot by long pressing the power switch or by re-plugging the power cable.
The configuration page will appear once you have rebooted, and it will ask you to select the language. Select Yes to continue the setup after selecting a language for OSMC.
Next, you will be asked to select the time zone. Make sure to select the relevant time zone where you live, as this will help ensure that the time is correct.
You will be asked if you would like to rename your device here. Default device name is osmc and it is recommended to change to another name.
You can disable or enable the SSH service in this section. OSMC’s setup tool will enable SSH by default. Click Accept to continue the installation.
In this step, you will be asked to agree to OSMC’s and Kodi’s terms of service. Please select the Continue option after reading the license and agreeing to it.
Select a theme of your choice. For this guide, we will use the default OSMC theme.
Now you will be asked if you want to sign up for OSMC’s newsletter. For this guide, we will continue using the No thanks option.
At this point, you have now finally completed the initial configuration process of OSMC on your Raspberry Pi. You can take yourself to the Kodi main screen by selecting the Exit option.
Configuring Network in OSMC¶
In this section, we will show you how to configure the network for your device using the OSMC interface.
Go to the Settings option.
Then go to the My OSMC menu.
Select Network. This menu also contains several other options that can help you configure OSMC on your Raspberry Pi.
You can configure WIFI in this option, or just plug in a network cable, after which you will see information about the connection and remember this IP address, which you will need to access OSMC remotely later in the guide.
Files Transfer¶
Sometimes you may need to transfer files between your OSMC device and your computer in order to edit, add, or change files that already exist. Depending on your previous experience, there are many ways to transfer files. Some of these methods work right out of the box (if SSH is enabled). Some methods require additional OSMC features, such as a Samba (SMB) server or an FTP server.
SFTP
For the sake of simplicity, we will focus only on SFTP using FileZilla, since it works out of the box on all three platforms (Windows, macOS, and Linux) with no additional changes to OSMC (required the SSH has been enabled).
When you open FileZilla for the first time, you will not connect to anything, you will need to provide the host, username and password.
Host: sftp://ip-address-of-your-osmc
User name: osmc
Password: osmc (or the password specified by your user)
Port: can be left blank to use the default SSH port 22
Once you have entered these, simply click the Quick Connect button to establish a connection.
Samba Server
You can also transfer files using SMB server, which is a more intuitive and useful way. But you need to go to OSMC and install this server first, as follows.
Go to the My OSMC menu page and select the App Store icon.
Select Samba (SMB) Server.
Select Install.
Select Apply to start the SMB server installation.
A popup will appear in the upper right corner to prompt you to install. Once the installation is complete, you will be able to access your Raspberry Pi files from your own computer.
On Windows, use
Win+R
to open Run Box.Type
\\ip address
in the input box.Now you will see a shared drive called
osmc
.Once you click in, you will see different folders and now you can transfer your music, videos or movies to them.
Adding OSMC’s videos to Scrape¶
In this section, we will show you how to add a video folder for OSMC to scrape.
Scrapping video is a fairly simple process and is one of the main features of Kodi.
First, we need to go to the Video menu.
Next, we need to select the Files submenu. This submenu will allow you to browse through the imported folders or add additional folders.
Next, select the Add video.. option. In this option, we will add folders for OSMC’s Kodi to scan into its library.
In this menu, you need to select the Browse or Add option.
The Browse option will allow you to find folders via OSMC’s file browser.
Add option will allow you to manually input the path to the directory.
Whichever route you take, choose the folder where your TV shows and movies are stored, then click OK.
Make sure you separate movies and TV shows in separate folders.
This is because if they are contained in the same folder, Kodi’s scrapers will not be able to distinguish between them.
OSMC divides videos into three separate categories, Movies, Music Videos and TV Shows. Select the option that is most relevant to your video. The options you select will affect how OSMC obtains information from the video.
After selecting the type of media the catalog contains, you can now select OK. OSMC will automatically select a known good information provider that will be used to scrape your library.
OSMC will scan your video and search for its name in a database on the Internet. This scan allows it to retrieve posters, actors, messages and other interesting information about your video.
After selecting Ok, the scrape process should start automatically. You should begin to see that your movie or TV show has been added to the OSMC interface
Configure a remote¶
A 38KHz IR receiver is built into the Pironman and is connected to the GPIO13 pin, so you can use the remote control to control your Kodi.
1. Configure IR receiver
Go to the Settings -> My OSMC menu and select the Raspberry Pi icon.
Select Hardware Support, and add the pin number to 13 in
gpio_pin
.Once set, you will be prompted to reboot to make this configuration effective.
2. Select a remote control
Kodi supports many different remotes and you can follow the instructions to configure them. Now go back to the My OSMC menu and select the Remotes icon to go to the configuration page.
Choose the brand of remote you are using from the list.
Kodi can now be controlled with your remote.
For more information, please refer to: https://osmc.tv/wiki/.
3. Manually add a remote
Manually configuring a remote is a way to get your .conf file that fits your remote, add it to the Remotes list, and select it as the one to use at this time.
i. Logging in via SSH
Now log in to the OSMC system remotely from your PC, the default name and password are osmc
.
Windows users can download an SSH client called PuTTY here.
As an alternative, some Windows 10 installations provide access to a command line SSH client via “PowerShell” from the Windows Start Menu. If your Windows 10 system supports this, you can use the Linux instructions.
Linux and OS X users should have an SSH client already
You can find your device’s IP address in Settings -> Systems -> Network.
Windows
Run PuTTY and enter the IP address of your device and click OK. When prompted, enter osmc
for both username and password.

Linux / OS X
Open a Terminal interface and run the following command:
ssh osmc@<ip address of your device>
You will be prompted to accept the SSH key if this is the first time you have connected to the device. Type yes.
ii. Create an LIRC configuration file
Make sure you have set
gpio_pin
to 13 in OSMC via Settings -> My OSMC -> Raspberry Pi -> Hardware Support.In the terminal, check if the Raspberry Pi detects your IR receiver with the following command.
ls /dev/lirc*
A port message like
/dev/lirc0
should appear.Now to see if you can receive data from the remote.
sudo mode2 --driver default --device /dev/lirc0
Then press the button on the remote and see if a string of pulse data appears.
osmc@osmc:/etc/lirc$ sudo mode2 --driver default --device /dev/lirc0 Using driver default on device /dev/lirc0 Trying device: /dev/lirc0 Using device: /dev/lirc0 Running as regular user osmc space 16777215 pulse 9083 space 4442 pulse 628 space 509 pulse 626 space 508 pulse 596 space 543 pulse 593 space 538
Now stop lircd.
sudo killall lircd
Get all available
KEY_codes
to match them later.irrecord --list-namespace
Now create a
.conf
configuration file that fits your remote.irrecord -d /dev/lirc0
All you need to do is to run the above command.
Press the Enter key twice.
Name the remote control
Press and hold a key to sample until Please enter the name .. appears. .
Refer to the previous command to define all the keys.
After configuring all the keys on the remote, press Enter to exit. You can use the
ls
command to see if the.conf
file you configured exists.
Now go back to OSMC and click Settings -> My OSMC -> Remotes.
Select the .conf file under your Home folder by Browse.
Once selected, press OK to select and then confirm your change.
At this point you can use your remote to control OSMC.
Get the IP address¶
There are many ways to know the IP address, and two of them are listed as follows.
Checking via the router
If you have permission to log in the router(such as a home network), you can check the addresses assigned to Raspberry Pi on the admin interface of router.
The default hostname of the Raspberry Pi OS is raspberrypi, and you need to find it. (If you are using ArchLinuxARM system, please find alarmpi.)
Network Segment Scanning
You can also use network scanning to look up the IP address of Raspberry Pi. You can apply the software, Advanced IP scanner and so on.
Scan the IP range set, and the name of all connected devices will be displayed. Similarly, the default hostname of the Raspberry Pi OS is raspberrypi, if you haven’t modified it.
Home Assistant¶
This section will guide you in installing the Home Assistant operating system on your Raspberry Pi. Please note that this process will result in the loss of all existing content on your Raspberry Pi system. It is important to backup your data before proceeding.
Install the HassOS¶
Step 1
Raspberry Pi have developed a graphical SD card writing tool that works on Mac OS, Ubuntu 18.04 and Windows, and is the easiest option for most users as it will download the image and install it automatically to the SD card.
Visit the download page: https://www.raspberrypi.org/software/. Click on the link for the Raspberry Pi Imager that matches your operating system, when the download finishes, click it to launch the installer.

Step 2
When you launch the installer, your operating system may try to block you from running it. For example, on Windows I receive the following message:
If this pops up, click on More info and then Run anyway, then follow the instructions to install the Raspberry Pi Imager.

Step 3
Insert your SD card into the computer or laptop SD card slot.
Step 4
In the Raspberry Pi Imager, select the OS that you want to install and the SD card you would like to install it on.




Step 5
Select the SD card you are using.

Step 7
Click the WRITE button.

Step 8
If your SD card currently has any files on it, you may wish to back up these files first to prevent you from permanently losing them. If there is no file to be backed up, click Yes.

Step 9
After waiting for a period of time, the following window will appear to represent the completion of writing.

Setup Your Home Assistant¶
Step1
This step is about enabling the I2C interface to start the Pironman OLED.
Open File Explorer and access the SD card named Hassio-boot

Create a new folder named CONFIG
in the root partition.

Inside the CONFIG
folder, create a folder named modules
.

Enable file extension display.

Create a text file inside the modules
folder and rename it to rpi-i2c.conf
. You will be prompted to confirm the extension change, select “Yes”.

Open rpi-i2c.conf
with Notepad and add the following content:
i2c-dev
Save and close the file.
Step2
This step involves configuring the RGB LED.
Open the file named config.txt
in the Hassio-boot
directory.

Add the following content at the bottom:
dtparam=i2c_vc=on
dtparam=i2c_arm=on
dtoverlay=gpio-poweroff,gpio_pin=26,active_low=0
dtoverlay=gpio-ir,gpio_pin=13
Due to the usage of GPIO12 by WS2812, which is also employed for audio output, it’s necessary to disable the audio by adding the following command to the config.txt
file.
dtparam=audio=off
Save and close the file.
Step3
Next, we will configure WiFi for Pironman.
Note
If you intend to use a wired connection for network access, you can skip this step.
Create a folder named network
inside the CONFIG
folder.

Inside the network
folder, create a new text file named my-network
(without extension).

In the my-network
file, write the following text, replacing MY_SSID
and MY_WLAN_SECRET_KEY
with your own network’s SSID and password:
[connection]
id=my-network
uuid=72111c67-4a5d-4d5c-925e-f8ee26efb3c3
type=802-11-wireless
[802-11-wireless]
mode=infrastructure
ssid=MY_SSID
# Uncomment below if your SSID is not broadcasted
#hidden=true
[802-11-wireless-security]
auth-alg=open
key-mgmt=wpa-psk
psk=MY_WLAN_SECRET_KEY
[ipv4]
method=auto
[ipv6]
addr-gen-mode=stable-privacy
method=auto
Save and exit the file.
Step4
Remove the microSD card from your computer and insert it into the Raspberry Pi. Then, connect the power (and Ethernet cable if needed).
Go back to your computer and navigate to homeassistant.local:8123
,
or if that doesn’t work, you can find the IP address by checking your router.
During the first use of Home Assistant, you may need to wait for some time as it performs initial setup.

Step5
Next, you will be prompted to create the first account.

The system will prompt you to install some detected devices, but for now, you can skip this by clicking FINISH.

Step6
Now we will install the Pironman addon for Home Assistant.
Please click the button below to quickly add it. Then proceed to step7 .
Alternatively, follow the steps below to install manually:
In Home Assistant, navigate to Settings -> Addons.
Click the “Addon Store” button in the lower right corner.
Click the menu button in the top right corner and select “Repositories”.
Type the repository URL:
https://github.com/sunfounder/home-assistant-addon
, and click Add. After adding the SunFounder repository, close the popup window.Click the menu button again, and click “Check for updates”.
After a few seconds, the Pironman addon will appear at the end of the addon store. If not, try refreshing the page.
Step7
Enter the Pironman addon and click Install. This process may take a few minutes.

Currently, you need to disable protection mode to allow the addon to access hardware information. Find “Protection Mode” and turn it off. Then, start (or restart) the addon.

At this point, you should see the Pironman’s lighting effect and the OLED display light up. This indicates that the configuration is complete.
Troubleshooting¶
If your OLED or RGB strip fails to start properly, please go to the “Log” page.

[DEBUG] oled init failed:
[Errno 2] No such file or directory
Cannot open /dev/spidev0.0. spi_bcm2835 module not loaded?
[DEBUG] rgb_strip init failed:
ws2811_init failed with code -13 (Unable to initialize SPI)
If you see the above logs, it means the configuration was not successful. Please follow the steps below:
First, shut down Home Assistant.
Warning
If you force power off, it may damage HassOS. Follow the shutdown steps below:
Then, wait for one minute before unplugging the power.
Repeat Step 1 and Step 2 of this section (Setup Your Home Assistant) .
Insert the SD card back into Pironman, connect the power, and wait for a minute or two. Then, in your browser, navigate to
http://homeassistant.local:8123/
. Click on START in the Pironman Addon.Wait for a moment, and you should see the Pironman (RGB strip & OLED) light up.
Addon Configuration¶
You can customize the Pironman effects on the Configuration page.

Here, you can modify:
The temperature display unit on the OLED.
The duration of the OLED screen brightness.
The temperature at which the fan will start working.
The color and blinking mode of the RGB strip.
After making the desired changes, click “SAVE” to apply the settings.
FAQ¶
How to copy Raspberry Pi OS Lite from Micro SD to SSD?¶
Updating the Bootloader
sudo apt update sudo apt full-upgrade sudo rpi-update sudo rpi-eeprom-update -d -a
After setting, reboot to take effect.
Use the following command to view the name of the storage device.
sudo fdisk -l
You will see a list of all the drives connected to your Raspberry Pi. In most cases,
/dev/mmcxxx
refers to your Micro SD card, and/dev/sda/
refers to your SSD.Now, use the following command to clone the system from the Micro SD card to the SATA M.2 SSD.
Note
Replace
/dev/mmcblk0
with the name of your Micro SD card, and also modify/dev/sda
to match the name of your SSD if it has a different name.sudo dd if=/dev/mmcblk0 of=/dev/sda bs=4M
Pull out the Micro SD card, connect the M.2 SATA SSD and then power on the Pironman.