Title: How to start with RPi
Course: AI Projects for Students (SK) > Section: Raspberry Pi - select project - Ladislav

How to Get Started with Raspberry Pi

The Raspberry Pi is a small, affordable computer that can be used for everything from learning how to code, to creating a media center, to managing a smart home. This guide will walk you through the entire process, from unboxing to your first boot.

Step 1: What You Need (Essential Hardware)

To bring your Raspberry Pi to life, the board itself isn't enough. You will need the following hardware components:

- Raspberry Pi: A Raspberry Pi 4 Model B or the latest Raspberry Pi 5 is recommended (ideally with 4 GB or 8 GB of RAM for smooth performance).
- Power Supply: A high-quality USB-C adapter. (The Pi 4 requires 5.1V/3A, while the Pi 5 requires 5.1V/5A). Standard phone chargers often don't provide enough power and can cause random reboots.
- MicroSD Card: At least 16 GB, ideally 32 GB (Class 10 or faster). This card acts as your "hard drive" for the operating system and data.
- Cable and Monitor: A Micro-HDMI to standard HDMI cable and any monitor or TV.
- Keyboard and Mouse: Standard USB peripherals.
- (Optional) Case and Heatsink: These protect the board from physical damage and prevent overheating during heavy processing tasks.

Step 2: Preparing the Operating System (Installation)

The Raspberry Pi doesn't come with an operating system pre-installed (standard Windows does not run on it). The best choice for beginners is the official Raspberry Pi OS (based on Linux). You must first "flash" this system onto your MicroSD card using your regular computer.

1. Insert the MicroSD card into your computer (using an adapter if necessary).
2. Download the free Raspberry Pi Imager app from the official website (raspberrypi.com/software).
3. Launch the Imager and follow these steps:
  - Click on CHOOSE DEVICE and select your Raspberry Pi model.
  - Click on CHOOSE OS and select Raspberry Pi OS (32-bit or 64-bit).
  - Click on CHOOSE STORAGE and select your MicroSD card.
4. Pre-configure Settings (Recommended): After clicking "Next," the program will ask if you want to apply OS customization (Edit settings). It is highly recommended to do this:
  - Create a username and password.
  - Enter your home Wi-Fi network name and password (so the Pi connects to the internet immediately).
  - Set your time zone and keyboard layout.
5. Click YES to write. Wait for the writing and verifying process to finish, then safely eject the card.

Step 3: Plugging in Cables and First Boot

Now it's time to connect everything. Golden Rule: Always plug in the power last!

1. Insert the prepared MicroSD card into the slot on the underside of the Raspberry Pi board.
2. Plug your mouse and keyboard into the available USB ports.
3. Plug the Micro-HDMI cable into the first port on the Raspberry Pi (usually labeled HDMI0, closest to the power port) and the other end into your monitor. Turn on the monitor.
4. Finally, plug the power supply into the USB-C port and the wall outlet.

The Raspberry Pi will turn on immediately. You should see text scrolling on the monitor, and after a short wait, the graphical desktop will appear.

Step 4: First Steps in the System

If you didn't pre-configure your Wi-Fi and password in the Imager app, a "Welcome to Raspberry Pi" setup wizard will pop up on your first boot.

- Set Country: Select your region, which automatically sets the correct time and keyboard layout.
- Change Password: Create a strong password.
- Connect to Network: Select your Wi-Fi network.
- Update Software: The system will ask to download the latest security updates. Make sure to confirm this (it may take a few minutes depending on your internet speed).

Once the wizard is complete, the device will restart and is fully ready to use.

Step 5: What Can You Do With It? (Popular Projects)

The possibilities for this tiny computer are massive. Here are a few of the most popular use cases:

- Learn to Code: In the main menu, you'll find a Programming section with pre-installed apps like Thonny (for Python) or Scratch, a visual coding tool perfect for kids.
- Network Ad Blocker (Pi-hole): Install the free Pi-hole software. Your Raspberry Pi will act as a filter, blocking ads for your entire home network (on all phones, smart TVs, and computers).
- Retro Gaming Console (RetroPie): By installing RetroPie instead of Raspberry Pi OS, you can turn your board into a console that flawlessly emulates games from classic systems like the GameBoy, SNES, or PlayStation 1.
- Smart Home Server (Home Assistant): Connect your smart bulbs, thermostats, and sensors from different brands into one secure, local hub that doesn't rely on the cloud.

IMPORTANT WARNING: How to properly shut down a Raspberry Pi? Never turn off your Raspberry Pi by simply pulling the power cable out of the wall! Doing so can corrupt the system files on your SD card. To safely shut down, click the raspberry icon in the top left corner, select Logout, and then Shutdown. Wait until the green LED light on the board stops flashing (and only the solid red light remains) before unplugging the power cable.