Raspberry Pi
Raspberry Pi
A micro-SD card: The micro-SD card is the main storage of the Raspberry
Pi, it’s like the hard drive on a traditional computer.
If you already have a system installed on your Pi, you can use another SD
card, so you don’t lose any data on it, and you can always plug it back if you
need to get back to your current installation later. Nothing is stored on the
main board directly, so when you switch SD cards, you switch everything.
Side note: On recent models, it’s possible to use a USB drive instead. I’ll
only mention SD cards in this article to keep things simple, but you can
replace SD cards with USB drives everywhere if you want to use a USB
drive instead.
A good power supply: A Raspberry Pi will start as soon as it’s plugged into
a USB cable, but it might not get the best performance using a random USB
cable or phone charger. If you can afford it, try to use the official power
supply (this is for the Pi 4, make sure to pick one compatible with your
model).
(Recommended) A monitor and display cable: It’s not mandatory, but I
highly recommend plugging your Pi into a monitor (or even your TV), at
least while doing the installation. You probably need a cable, with standard
HDMI on one side (for the monitor), and a compatible display port on the Pi
side (depending on the model you use).
Avoid adapters if possible. They cause more issues than they solve. A decent
micro-HDMI to HDMI cable is not expensive and always works best for me
than an adapter + a standard HDMI/HDMI cable.
(Recommended) A keyboard and mouse: Same thing, for beginners, I
highly recommend plugging a keyboard and mouse for the installation (at
least).
And that’s it! So basically, a Raspberry Pi, a micro-SD card and a power
supply, and you’re ready to go. A keyboard, mouse and monitor are
recommended, but you can start the installation without them if you have
another computer.
Install Raspberry Pi Imager:
The only tool you need on your computer to install Raspberry Pi OS on your
SD card is Raspberry Pi Imager. It has been developed by the Raspberry Pi
Foundation to make this process easier. No manual downloads or random
apps are required anymore.
Getting to Know the Raspberry Pi
The Raspberry Pi is a single-board computer developed by the Raspberry Pi
Foundation, a UK-based charity organization. Originally designed to provide
young people with an affordable computing option to learn how to program, it has
developed a massive following in the maker and DIY communities because of its
compact size, full Linux environment, and general-purpose input–output (GPIO)
pins.
With all the features and capabilities that are packed into this small board, there’s
no shortage of projects and use cases for the Raspberry Pi.
there’s no shortage of projects and use cases for the Raspberry Pi.
Raspberry Pi Board Overview
The Raspberry Pi comes in a variety of form factors for different use cases.
Here,you’ll be looking at the most recent version, the Raspberry Pi 4.
Below is the board layout of the Raspberry Pi 4. While this layout is slightly
different from previous models of the Raspberry Pi, most of the connections are
the same. The setup described in the next section should be the same for both a
Raspberry Pi 3 and a Raspberry Pi 4:
Image 1
The Raspberry Pi 4 board contains the following components:
Both are popular in DIY electronics, but they serve different purposes:
Arduino
Raspberry Pi
Unlike the Arduino, which requires only a USB cable and a computer to set up, the
Raspberry Pi has more hardware requirements to get up and running. After the
initial setup, though, some of these peripherals will no longer be required.
Software
The operating system for the Raspberry Pi is stored on a microSD card. If your
card did not come from an official Raspberry Pi kit, then you’ll need to install the
operating system on it.
There are multiple ways to set up the operating system on your Raspberry Pi. You
can find out more about the different installation options on the Raspberry Pi
website.
In this section, you’ll look at two ways to install Raspbian, the officially supported
Raspberry Pi operating system, which is based on Debian Linux.
Option 1: Raspberry Pi Imager (Recommended)
The easiest and official way to install Raspberry Pi OS (formerly called Raspbian).
Steps:
1. Download Raspberry Pi Imager
Go to the Raspberry Pi Downloads page and grab the version for your
system (Windows, macOS, or Linux).
2. Open the Imager (If Windows complains, click More info > Run anyway.)
3. Click “Choose OS”
Pick the Raspberry Pi OS (32-bit) option at the top.
4. Click “Choose SD Card”
Select your microSD card from the list.
5. Click “Write”
This will erase the card and install the OS. It may take a few minutes.
6. When it says "OS written successfully," eject the SD card.
Done! Plug it into your Pi and you’re ready to boot.
Image 2-7
Option 2: Install Raspbian From NOOBS
NOOBS = New Out Of the Box Software. It gives you a menu to choose and
install Raspberry Pi OS when you boot up the Pi.
Steps:
1. Download NOOBS ZIP
From the NOOBS download page, grab the standard NOOBS, not "Lite".
2. Unzip the NOOBS files on your computer.
3. Format your SD card:
o Download and open SD Memory Card Formatter
(Windows/macOS).
o Insert your SD card.
o Choose the card in the app.
o Set format to Quick format.
o Set volume label to NOOBS.
o Click Format (confirm when prompted).
🐧 Linux users: Use fdisk + mkfs.vfat to format as FAT32.
4. Copy the unzipped NOOBS files to the now-formatted SD card.
5. Eject the SD card from your computer.
Image 8-13
Final Setup
Here’s a simplified and structured version of your text:
To start, insert the microSD card into the Raspberry Pi's slot and connect peripherals:
Powering on the Raspberry Pi will begin the OS configuration. If you used the Raspberry Pi
Imager to install Raspbian, no additional setup is needed. If you used NOOBS, follow these
steps:
Once the installation completes, the Raspberry Pi restarts and boots into Raspbian. A setup
wizard guides you through configuring your password, locale, Wi-Fi, and system updates.
Python comes preinstalled on Raspbian, making it easy to start programming right away. Two
common ways to write Python code are:
Using the Mu Editor: Found in the Raspberry Pi menu under Programming → Mu, it
allows quick code editing.
Editing Remotely Over SSH: Enables code editing from another computer via remote
access.
To connect remotely:
Breadboard Basics
A breadboard helps prototype circuits without soldering. It has power rails marked with red (+)
and blue (-) lines and component rails for connections.
This structured version makes it easier to follow the setup, programming, and hardware
interaction process on the Raspberry Pi! Let me know if you need further refinements.