Setup
Use these steps once for either Pi 4 or Pi 5. If your Pi already boots a supported Raspberry Pi OS and you can sign in, return to its board guide and run the Python project.
Choose your setup
For a desktop, connect a monitor through micro-HDMI, plus a USB keyboard and mouse. For a headless Pi, use another computer on the same network and enable SSH in Imager before writing the card.
Write Raspberry Pi OS
Install Raspberry Pi Imager on your computer. Insert a microSD card through a USB card reader. Select your exact Pi model, Raspberry Pi OS (64-bit) with desktop, and the correct storage device. Writing erases that device: back up its files and check the selection before proceeding. Use a current image that supports your model; an old Pi 4 card may not boot Pi 5.
Set your account and connection
In Imager's customisation settings, set a hostname, username, password, locale and Wi-Fi details if needed. For headless access, enable SSH and configure its authentication. Keep those details; there is no account name or password supplied by this project. Write the image, wait for verification, then eject the card.
Boot the Pi
With power disconnected, insert the card and connect your display and input devices, or Ethernet for a wired headless connection. Connect the model-appropriate USB-C supply last: Pi 4 uses a 5 V / 3 A supply; Pi 5 is recommended with a 5 V / 5 A USB-PD supply. Allow the first boot to finish, then sign in.
Open a terminal on the Pi
On the desktop, open Terminal. For headless access, connect from your computer using the command below, replacing both placeholders with the account and hostname you set. Confirm the destination before accepting a new host key. The commands in the board guide must run on the Pi, not in your computer's local terminal.
ssh YOUR_USERNAME@YOUR_HOSTNAME.local
Run your first program
Return to your board's guide for the complete project, Python source and expected output.
Troubleshooting
- No boot or display
Check the selected Pi model, freshly written OS card, micro-HDMI connection and supply. Connect the display before power. Do not reformat a card containing files you still need.
- SSH cannot connect
Check that SSH was enabled in Imager, both computers are on the same network, and the hostname and username match your settings. If .local does not resolve, use the Pi's actual IP address from your router.
- Low-voltage warning or unreliable USB
Use the appropriate supply and cable. Pi 5 can restrict peripheral current with a 3 A supply; use its recommended 5 A USB-PD supply. Shut down before changing hardware.

