Raspberry Pi online course

What Is a Raspberry Pi?

Learn what a Raspberry Pi is, how its hardware and software work, what accessories you need, common uses, and how historical models differ.

What Is a Raspberry Pi?

A Raspberry Pi is a family of small, low-cost single-board computers (SBCs). An SBC is a complete computer built onto one circuit board. A Raspberry Pi can run an operating system, applications, programming tools, and network services much like a conventional computer.

Unlike a desktop computer or laptop, the board is normally supplied as an exposed printed circuit board (PCB). A PCB is the board that carries electronic components, connectors, and electrical pathways. You usually add the power supply, storage, display, input devices, and case separately.

Its card-sized form factor makes it easy to place inside a small enclosure, attach to electronics, carry between locations, or include in a project where a full-sized computer would be too large or expensive.

Purpose and Origin

The Raspberry Pi Foundation is the organization associated with the platform's educational mission and development. Raspberry Pi was created to make computer science, programming, and experimentation more accessible.

Low cost and simple hardware make the platform useful in schools, homes, clubs, and hobby projects. A learner can use the same board to write software, explore Linux, build a physical-computing circuit, or create a small networked device.

No previous programming or electronics experience is required. Beginners can start with a graphical desktop, while more advanced learners can use the command line, programming libraries, and electronic interfaces.

What You Need to Use a Raspberry Pi

The board alone is not normally a ready-to-use workstation. The exact accessories depend on the model and the project, but a first setup commonly includes the following items.

ItemPurposeWhen it is neededCompatibility considerations
Raspberry Pi boardThe computer itselfAlwaysChoose a model with suitable memory, ports, performance, and connectivity.
Power supplyProvides stable electrical powerAlwaysUse the connector, voltage, and current specification required by the model.
Storage cardHolds the operating system, applications, and filesUsually required for bootingA microSD card is common, but supported storage options vary by model.
Operating systemProvides the software environmentRequired for normal computer useOperating-system support depends on the board generation.
Display and cableShows the desktop or command-line outputNeeded for local graphical setupMatch the cable and display input to the board's video output.
Keyboard and mouseProvide text and pointer inputNeeded for local interactive useUSB availability differs among models; wireless devices may need additional support.
Network connectionProvides internet or local-network accessNeeded for downloads, remote access, or network projectsUse built-in Ethernet or wireless networking where available, or a compatible adapter.
CaseProtects the exposed circuit boardRecommended, but not essential for every bench projectUse a case designed for the exact board layout and connectors.

For a basic desktop setup, connect the board to suitable power, prepared storage, a display, a keyboard, and a mouse. Add networking when the operating-system setup or project requires it. The guide Set Up Raspberry Pi covers the general setup process, while Install Raspbian covers the historical installation workflow.

Core Hardware Components

Although layouts differ between generations, Raspberry Pi boards commonly include these major features:

  • Processor: Executes instructions and runs the operating system and applications.
  • RAM: Working memory used by the operating system and running programs. More RAM can make multitasking and memory-intensive software easier.
  • USB ports: Connect peripherals such as keyboards, mice, storage devices, cameras, and compatible adapters. USB means Universal Serial Bus.
  • Video output: Connects the board to a monitor or television.
  • Storage: Often provided by a removable microSD card, which stores the operating system and user files.
  • Networking: May include wired Ethernet, wireless networking, or neither, depending on the model. Ethernet is a wired network connection.
  • Power input: Receives power through the connector specified for that model.
  • GPIO header: Provides general-purpose input/output pins for connecting external electronics.

Specifications differ substantially between Raspberry Pi generations and models. Port counts, processor performance, RAM capacity, networking, power requirements, and operating-system support should therefore be checked for the particular board.

GPIO and Physical Computing

GPIO pins can be configured as inputs or outputs. Software can read an input from a push button or sensor, or set an output to control an LED, relay interface, display, or other circuit. With suitable driver electronics, projects can also control motors.

GPIO pins are electrical interfaces, not general-purpose power sockets. Check voltage levels, current limits, wiring, and component requirements before connecting a circuit. LEDs normally need an appropriate resistor, and motors generally need a separate driver or controller.

Raspberry Pi Versus a Microcontroller

A microcontroller board is designed mainly to run a small program directly on its chip and control electronics with predictable timing. A Raspberry Pi can perform GPIO work too, but it also runs a full operating system and general-purpose applications such as browsers, editors, servers, and programming environments.

Device typeRuns a full operating systemSuitable for GPIO projectsTypical role
Raspberry Pi single-board computerYesYesLinux computer, networked device, media system, or physical-computing controller
Traditional desktop or laptopYesUsually requires an external interface or controllerGeneral-purpose computing with more space, power, and peripheral capacity
Microcontroller boardUsually no full desktop operating systemYesDedicated sensor, control, automation, or real-time electronics task

Historical Raspberry Pi Models

The following models are historical examples, not current buying recommendations. They show how the platform developed from modest boards into more capable computers.

ModelRAMCPUUSB portsNetworkingGPIO and design notesBest suited historical use
Raspberry Pi Model A256 MBSingle-core ARM11 generation1No built-in EthernetEarly 26-pin GPIO design; minimal and lower-power boardSmall, inexpensive projects that needed limited connectivity
Raspberry Pi Model B256 MBSingle-core ARM11 generation2Built-in EthernetEarly 26-pin GPIO design; more connected than Model AEarly desktop, network, and beginner projects
Raspberry Pi Model B+512 MBSingle-core ARM11 generation4Built-in EthernetExpanded 40-pin GPIO header, more USB ports, and improved power efficiencyProjects needing more peripherals and GPIO expansion
Raspberry Pi 2 Model B1 GBQuad-core ARM Cortex-A7, approximately 900 MHz4Built-in Ethernet40-pin GPIO header; substantially greater CPU and memory capacityMore demanding desktop, programming, and server experiments

The Model B+ represented an expansion over Model B mainly through four USB ports, a 40-pin GPIO header, revised layout, and improved power efficiency. The Raspberry Pi 2 Model B was a performance milestone because its quad-core ARM Cortex-A7 processor and 1 GB of RAM provided a significant increase in processing and multitasking capability over the earlier single-core boards.

Physical Size and Portability

The early Raspberry Pi board form factor was approximately 85.6 mm by 54 mm and weighed about 45 g, although exact dimensions and weight vary by model and by whether a case or accessories are attached.

This small size and relatively low power requirement support embedded, portable, educational, and space-constrained projects. A board can fit inside a custom enclosure, monitoring device, display system, or home-automation controller. Small does not mean completely self-contained: power, storage, cooling, and external connections still need to be planned.

Operating Systems and Software

Raspberry Pi devices commonly run Linux-based operating systems. Linux is an open-source operating-system family. A Linux system can provide a graphical desktop or operate entirely from a command line.

Raspberry Pi OS was historically known as Raspbian. It is a beginner-oriented distribution based on Debian, a widely used Linux distribution. A graphical user interface (GUI) provides windows, icons, menus, and a pointer for desktop-style use. Command-line operation provides text-based control and is useful for administration, programming, and lightweight servers.

Operating-system support is model-dependent. A system that works well on one generation may be unavailable, unsupported, or slow on another. Windows 10 IoT was a device-focused Windows edition historically supported by certain hardware, including the Raspberry Pi 2 Model B; it was distinct from ordinary desktop Windows and should not be treated as a universal Raspberry Pi operating system.

For an overview of available systems, see Operating Systems for Raspberry Pi. To explore the Linux desktop and command line, see Use Raspbian and Terminal in Raspbian.

Common Uses

  • Programming education: Learn Python, Linux, files, networking, and software development.
  • Desktop computing: Browse the web, write documents, manage files, and perform basic productivity tasks when the model is capable enough.
  • Physical computing: Read buttons and sensors or control LEDs and other electronics through GPIO.
  • Home automation: Monitor devices and coordinate compatible sensors, switches, or controllers.
  • Media: Play selected audio or video with suitable software and hardware.
  • Networking: Experiment with network services, remote access, and monitoring.
  • Lightweight servers: Host small personal or educational services when the workload fits the board's CPU, RAM, storage, and network capacity.
  • Portable and embedded projects: Build compact data loggers, information displays, environmental monitors, or custom controllers.

Practical Example: A Basic Desktop

Connect a display, keyboard, mouse, suitable storage, and power supply. Boot a Linux-based operating system and use its GUI for browsing, writing, file management, and introductory programming. The experience resembles a basic desktop computer, but performance and software compatibility depend on the model.

Practical Example: LED and Button

Connect a push button to a GPIO input and an LED, with the appropriate resistor, to a GPIO output. A program can read the button state and switch the LED on or off. This demonstrates the relationship between software instructions and physical components.

Practical Example: Home Monitoring

Combine a network-capable Raspberry Pi with sensors to collect environmental measurements or report device status. The board can store readings locally or send them to another system, provided the chosen model and software can handle the workload.

Choosing and Obtaining a Board

Boards may be obtained through official channels, authorized distributors, local resellers, and major online marketplaces. Availability changes, so compare the specific model rather than relying on a generic product name.

Before buying, check:

  • Whether the model is available and appropriate for the intended project.
  • Processor performance and RAM requirements.
  • Required USB, display, GPIO, Ethernet, or wireless connectivity.
  • Power-supply requirements.
  • Supported storage and operating systems.
  • Whether accessories such as a case, power supply, cable, and storage are included.
  • Seller reliability, product authenticity, warranty, and return terms.

Do not use historical prices or legacy models as current purchasing guidance. A minimal board may be ideal for a simple embedded project, while a desktop or server project may require a newer, more capable model.

Limitations and Expectations

A Raspberry Pi is capable, but it is not equivalent to every modern desktop computer. Its performance, memory, ports, networking, storage speed, cooling needs, and operating-system compatibility depend on the model generation.

Some demanding desktop applications, games, storage workloads, or server tasks may run slowly or require a different computer. USB accessories can also exceed the available power budget, and older models may have too few ports for a complete local setup.

Reliable operation begins with three foundations: a suitable power supply, compatible and correctly prepared storage, and an operating system supported by the selected model.

Troubleshooting Common First-Setup Problems

The Raspberry Pi Does Not Start

  • Check that the power supply matches the model's requirements and is connected securely.
  • Recheck that the storage card was prepared correctly and is compatible.
  • Confirm that the display cable is connected to the correct output and that the display is selecting the right input.

This problem illustrates that a board computer depends on compatible external power, boot storage, and peripherals.

A Keyboard, Mouse, or USB Device Does Not Work

  • Older models may have too few USB ports for all required peripherals.
  • Several devices may draw more power than the board can provide reliably.
  • A compatible powered USB hub may be needed.

Port count and available power vary by model, so check both before adding accessories.

The Desired Operating System Will Not Install or Performs Poorly

  • The board may lack the CPU, RAM, or other features required by that operating system.
  • The instructions may describe a different Raspberry Pi generation.

Verify model-specific operating-system compatibility before installation.

A Project Needs Wired Networking

A historical Model A does not include built-in Ethernet. If wired networking is essential, select a board with Ethernet or plan for a compatible network adapter and its power and USB requirements.

Summary

A Raspberry Pi is a compact, affordable single-board computer developed around an educational mission. It can run a Linux-based operating system with either a graphical desktop or command-line interface, while its GPIO header lets software interact with LEDs, buttons, sensors, motors, and other electronics.

The right choice depends on the project. Compare CPU, RAM, ports, networking, storage, power, operating-system support, and accessories. With suitable external components and realistic performance expectations, one board can serve as a learning computer, a physical-computing platform, or a small embedded and networked system.