keepcalculator

06 Numbers and Powers

Raspberry Pi 3 Starter Guide: Setup & First Boot

Card No. 06·20362 · Updated · Standard formula, shown below

This guide walks you through setting up a Raspberry Pi 3 from unboxing to your first successful boot and basic configuration. You’ll learn what hardware to gather, how to flash the operating system onto an SD card, and how to connect everything for the first time. By the end, you’ll have a working Pi ready for your projects.

What You’ll Need

  • Raspberry Pi 3 (Model B or B+)
  • Micro SD card (at least 8 GB, Class 10 recommended) and an SD card reader/writer for your computer
  • Power supply: 5V / 2.5A USB-C or micro-USB (depending on Pi 3 variant) – use a quality adapter
  • HDMI cable and a monitor or TV with HDMI input
  • USB keyboard and mouse
  • Computer (Windows, Mac, or Linux) with internet access to download the OS image
  • Optional but helpful: Ethernet cable, USB hub (if you need more ports), case with heatsinks

Step-by-Step

  1. Download the operating system image. Go to the official Raspberry Pi website (raspberrypi.com) and download the Raspberry Pi Imager tool for your computer. This tool simplifies flashing the OS onto the SD card. Alternatively, you can download a standalone image like Raspberry Pi OS (32-bit) and use a flashing tool like balenaEtcher.
  2. Insert the SD card into your computer. Use an SD card reader (built-in or USB). Make sure the card is empty or you don’t mind losing existing data, as flashing will erase it.
  3. Run Raspberry Pi Imager. Open the Imager. Click “Choose OS� and select “Raspberry Pi OS (32-bit)� – this is the recommended default. Then click “Choose Storage� and select your SD card. Finally, click “Write�. Confirm any warnings. The process takes a few minutes. Once done, you can optionally eject the card safely.
  4. Optional: Enable SSH or set up Wi‑Fi before first boot. After flashing, the SD card will appear as a boot drive on your computer. To enable SSH, create an empty file named ssh (no extension) in the root of the boot partition. For Wi‑Fi, create a file named wpa_supplicant.conf with the following content (replace your network name and password):
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=US
    network={
    ssid="Your_SSID"
    psk="Your_Password"
    }
  5. Insert the SD card into the Raspberry Pi. Push it firmly into the slot on the underside of the board until it clicks.
  6. Connect peripherals. Plug in the HDMI cable to the Pi and your monitor, then connect the USB keyboard and mouse. If you’re using Ethernet, plug in the cable.
  7. Power up the Pi. Connect the power supply to the Pi’s power port. The red LED should light up, and the green activity LED should blink as it boots. Wait for the desktop to appear on the monitor (first boot can take a minute or two).
  8. Complete the initial setup wizard. On first boot, Raspberry Pi OS will ask you to set your country, language, and timezone. Create a password for the default user (pi). You can also connect to Wi‑Fi if not already configured. The system will then update and reboot.
  9. Update the system. Open a terminal (black icon in the taskbar) and run:
    sudo apt update && sudo apt upgrade -y
    This ensures you have the latest security patches and software.
  10. Explore and start using. You now have a fully functional Linux computer. Open the recommended software, browse the web, or start coding. For headless use (no monitor), you can SSH into the Pi from another computer using its IP address.

Common Mistakes

  • Using a poor-quality power supply. The Pi 3 needs a stable 5V/2.5A supply. Phone chargers often provide less current, causing random crashes or boot failures.
  • Not using a fast enough SD card. A Class 10 or A1 rated card is essential for smooth performance. Slower cards can cause lag or corruption.
  • Forgetting to enable SSH before headless setup. If you plan to run without a monitor, you must create the ssh file or enable SSH during first boot. Otherwise you can’t connect remotely.
  • Incorrect Wi‑Fi configuration file. The wpa_supplicant.conf must be placed in the boot partition, not the rootfs, and the country code must be set correctly. A typo in the SSID or password will prevent connection.
  • Interrupting the flashing process. Removing the SD card while writing can corrupt the card. Always wait for the “Write Successfulâ€� message.

Tips

  • Use a case with heatsinks. The Pi 3 can get warm under load; heatsinks help prevent thermal throttling.
  • Back up your SD card. Once you have a working setup, create an image backup using the Imager’s “Readâ€� feature or a tool like Win32DiskImager. This saves you from redoing the setup if the card fails.
  • Enable automatic updates. Run sudo apt install unattended-upgrades and configure it to keep the system secure.
  • Use a static IP address for headless projects. Set a static IP in /etc/dhcpcd.conf to avoid IP changes that break SSH connections.
  • Explore GPIO. The 40-pin GPIO header allows you to control LEDs, sensors, and motors. Start with Python and the RPi.GPIO library.

Troubleshooting

  • No power LED. Check that the power supply is plugged in and providing at least 5V. Try a different outlet or cable. If the LED still doesn’t light, the Pi may be faulty.
  • Green LED blinks in a pattern. This indicates an error. A steady blink with no display often means the SD card is not readable. Re-flash the card with a fresh image.
  • No display on monitor. Ensure the HDMI cable is firmly connected and the monitor is set to the correct input. Try a different HDMI port on the Pi (if you have a Pi 3 B+ with two ports, use the one closest to the USB ports).
  • Boot loops or random reboots. Usually power-related. Replace the power supply with a high-quality 2.5A adapter. Also check that the SD card is not corrupt; re-flash it.
  • Cannot SSH into the Pi. Verify the Pi is on the network (check router admin page). Ensure SSH is enabled (the ssh file exists). If using Wi‑Fi, double-check the wpa_supplicant.conf syntax and country code.
  • Keyboard/mouse not working. Try different USB ports. Some wireless adapters need a powered hub. Also check that you’re using a USB port, not the power-only port (if your Pi has one).

Frequently Asked Questions

Do I need a monitor and keyboard to set up the Pi?

Not necessarily. You can run the Pi headless (without a monitor) by enabling SSH and connecting via Ethernet or Wi‑Fi. You’ll still need a computer to flash the SD card and to SSH into the Pi.

Can I use a laptop power adapter to power the Pi?

Yes, if it provides 5V and at least 2.5A. Many laptop USB-C adapters work, but check the output specifications. Avoid using a phone charger that only outputs 1A.

What is the default username and password?

On a fresh Raspberry Pi OS install, the default user is pi with password raspberry. The setup wizard will prompt you to change it on first boot.

How do I find the IP address of my Raspberry Pi?

If you have a monitor, run hostname -I in the terminal. Without a monitor, check your router’s DHCP client list, or use a network scanner like nmap on your computer.

Can I use a 64GB SD card?

Yes, the Pi 3 supports SD cards up to 256GB. However, you may need to format the card as FAT32 for the boot partition. Raspberry Pi Imager handles this automatically.

What is the difference between Raspberry Pi 3 Model B and B+?

The B+ has a faster CPU (1.4GHz vs 1.2GHz), dual-band Wi‑Fi, and better thermal performance. Both work with this guide; the setup steps are identical.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →