MakerLab
Raspberry PiRaspberry Pi 5

Raspberry Pi 5: The Next Generation of Single-Board Computing

The Raspberry Pi 5 elevates single-board computing with a powerful new processor, increased RAM options, and enhanced I/O capabilities, making it ideal for complex projects and desktop replacement.

Raspberry Pi 5

The Raspberry Pi 5 represents a significant leap forward for the popular single-board computer family. Building on the legacy of its predecessors, it introduces a substantially more powerful System-on-Chip (SoC) and a host of architectural improvements designed to boost performance and expand its use cases. This board is not just an incremental update; it's a re-imagining of what a Raspberry Pi can be, pushing the boundaries of what's possible in a compact, affordable form factor.

At the heart of the Raspberry Pi 5 is the Broadcom BCM2712, a quad-core 64-bit Arm Cortex-A76 processor clocked at 2.4GHz. This is a considerable upgrade from previous generations, offering a dramatic increase in computational power for demanding applications, faster data processing, and smoother multitasking. The SoC also integrates a VideoCore VII GPU, capable of driving high-resolution displays and accelerating graphics performance, alongside dedicated hardware for multimedia.

Positioned as the flagship model in the Raspberry Pi lineup, the Raspberry Pi 5 is aimed at a broad audience, from students and hobbyists to professional embedded engineers and even those seeking a low-cost desktop computer. Its enhanced performance makes it suitable for more ambitious projects such as AI inference, machine learning, advanced robotics, home media servers, and complex IoT gateways. The increased I/O capabilities, including PCIe support, open up new avenues for expansion and custom hardware integration.

The history of the Raspberry Pi is one of democratizing computing and making embedded systems accessible. The Raspberry Pi 5 continues this mission with a more powerful and versatile platform. While previous models were often limited by their processing power for certain tasks, the Pi 5 addresses these limitations, making it a compelling choice for users who have outgrown the capabilities of older Pis or are looking for a robust platform for desktop-like experiences and computationally intensive embedded applications.

Specifications

Microcontroller / SoCBroadcom BCM2712
Architecture64-bit Quad-core Arm Cortex-A76
Clock speed2.4GHz
Flash / StorageMicroSD card slot (up to 128GB officially supported, often more in practice)
RAM / SRAM4GB or 8GB LPDDR4X-4267 SDRAM
Operating voltage3.3V
Digital I/O pins40 GPIO pins
Analog / ADC2x 12-bit ADC inputs (on GPIO 24/25)
PWMUp to 6 PWM channels (on specific GPIO pins)
ConnectivityGigabit Ethernet, 2.4GHz and 5.0GHz IEEE 802.11ac wireless, Bluetooth 5.0 / BLE
USB2x USB 3.0 ports (5Gbps), 2x USB 2.0 ports
Power input5V DC via USB-C (minimum 5A recommended for full performance), 5V DC via 4-pin JST connector
Dimensions85mm x 56mm

Pinout & pin functions

PinFunction
3V3Power output (3.3V)
GNDGround
G0GPIO 0
G1GPIO 1
G2GPIO 2
G3GPIO 3
G4GPIO 4
G5GPIO 5
G6GPIO 6
G7GPIO 7
G8GPIO 8
G9GPIO 9
G10GPIO 10
G11GPIO 11
G12GPIO 12 (PWM0)
G13GPIO 13
G14GPIO 14 (UART0 TX)
G15GPIO 15 (UART0 RX)
G16GPIO 16
G17GPIO 17
G18GPIO 18 (PWM1)
G19GPIO 19 (I2C1 SDA)
G20GPIO 20 (I2C1 SCL)
G21GPIO 21
G22GPIO 22
G23GPIO 23
G24GPIO 24 (ADC0)
G25GPIO 25 (ADC1)
G26GPIO 26
G27GPIO 27
G28GPIO 28
G29GPIO 29
G30GPIO 30
G31GPIO 31
G32GPIO 32
G33GPIO 33
G34GPIO 34
G35GPIO 35
G36GPIO 36
G37GPIO 37
G38GPIO 38
G39GPIO 39
G40GPIO 40
G41GPIO 41
G42GPIO 42
G43GPIO 43
G44GPIO 44
G45GPIO 45
G46GPIO 46
G47GPIO 47
G48GPIO 48
G49GPIO 49
G50GPIO 50
G51GPIO 51
G52GPIO 52
G53GPIO 53
G54GPIO 54
G55GPIO 55
G56GPIO 56
G57GPIO 57
G58GPIO 58
G59GPIO 59
G60GPIO 60
G61GPIO 61
G62GPIO 62
G63GPIO 63
RUNSystem reset button input
5VPower output (5V)
GNDGround
GNDGround
5VPower output (5V)
CAM1Camera interface 1
CAM2Camera interface 2
DSIDisplay Serial Interface (DSI)
SPI0 MOSISPI0 MOSI (GPIO 10)
SPI0 MISOSPI0 MISO (GPIO 9)
SPI0 SCKSPI0 SCK (GPIO 11)
SPI0 CSSPI0 CS (GPIO 7)
I2C0 SDAI2C0 SDA (GPIO 2)
I2C0 SCLI2C0 SCL (GPIO 3)
UART1 TXUART1 TX (GPIO 14)
UART1 RXUART1 RX (GPIO 15)
PWM2PWM2 (GPIO 13)
PWM3PWM3 (GPIO 19)
ADC0ADC0 (GPIO 24)
ADC1ADC1 (GPIO 25)
JTAG TDOJTAG TDO
JTAG TDIJTAG TDI
JTAG TCKJTAG TCK
JTAG TMSJTAG TMS
RTC BATRTC Battery Input
FANFan Connector

Wiring & circuit basics

Powering the Raspberry Pi 5 requires a stable 5V DC supply capable of delivering at least 5A for full performance, especially when using power-hungry peripherals or the USB 3.0 ports. The primary power input is via the USB-C port. It's crucial to use a high-quality USB-C power supply designed for sufficient current output. An alternative power input is available via a 4-pin JST connector, often used for more industrial or embedded applications where a dedicated power rail is available. Avoid powering the Pi through its GPIO pins, as they are not designed for main power input and can be damaged.

The Raspberry Pi 5 operates at a logic level of 3.3V. This means that any sensors, LEDs, or other components you connect directly to the GPIO pins must also be compatible with 3.3V logic. Connecting 5V components directly to GPIO pins can cause permanent damage to the Raspberry Pi. If you need to interface with 5V devices, you will need a logic level shifter to translate the voltage levels between the Pi and the peripheral. Always ensure your common ground connection is established between the Pi and any connected devices.

For a simple LED circuit, connect a current-limiting resistor (typically 220-330 ohms for a standard LED) to a GPIO pin, such as GPIO 17. Connect the other end of the resistor to the anode (longer leg) of an LED. Connect the cathode (shorter leg) of the LED to a GND pin on the Raspberry Pi. When the GPIO pin is set to HIGH (3.3V), current will flow through the resistor and LED, illuminating it. This demonstrates basic digital output and current limiting principles.

Programming & getting started

The Raspberry Pi 5 is primarily programmed using Raspberry Pi OS, a Debian-based Linux distribution. You can develop applications using various programming languages like Python (highly recommended for beginners and rapid prototyping), C/C++, and Node.js. For Python development, the default installation includes the Thonny IDE, which is user-friendly for beginners. To upload your first program (e.g., a Python script to blink an LED), you would typically write the script in an editor, save it, and then run it from the terminal using `python your_script_name.py`. For more advanced embedded development, you can also explore frameworks like PlatformIO or use cross-compilation toolchains.

For users familiar with the Arduino ecosystem, it's possible to program the Raspberry Pi 5 using the Arduino IDE or PlatformIO, though this requires setting up specific board support packages. This allows you to leverage existing Arduino libraries and code. Another popular option is MicroPython or CircuitPython, which provide a Python-like environment directly on the microcontroller, enabling direct hardware control. Flashing MicroPython/CircuitPython typically involves writing the firmware image to a MicroSD card, which the Pi then boots from.

Project ideas

Home Automation HubUse the Raspberry Pi 5 as a central controller for smart home devices. It can interface with various sensors (temperature, motion) via GPIO and I2C, and control relays or smart plugs. This project leverages the Pi's processing power for managing multiple devices and its connectivity for network communication.
AI-Powered Object RecognitionBuild a system that can identify objects in real-time using a camera module and machine learning libraries like TensorFlow Lite. The Pi 5's powerful CPU and GPU are well-suited for running inference models, making it ideal for robotics or security applications.
Retro Gaming ConsoleTransform the Raspberry Pi 5 into a dedicated retro gaming machine using emulators like RetroPie or Lakka. The improved graphics performance and faster processing will provide a smoother emulation experience for classic games. This project utilizes the HDMI output and USB ports for controllers.
Network Attached Storage (NAS)Configure the Raspberry Pi 5 with external hard drives to create a personal cloud storage solution. Its Gigabit Ethernet port and USB 3.0 ports offer high-speed data transfer, making it efficient for storing and accessing files remotely.
Robotics Control PlatformDevelop an advanced robot using the Raspberry Pi 5 as its brain. It can handle complex navigation, motor control via PWM, sensor input (ultrasonic, encoders), and wireless communication. The Pi 5's processing power allows for sophisticated algorithms and real-time control.
Desktop Replacement ComputerWith its significantly improved performance, the Raspberry Pi 5 can serve as a capable desktop computer for web browsing, document editing, and light programming. This project showcases the Pi 5's ability to handle everyday computing tasks, utilizing its HDMI output, USB ports, and Ethernet connectivity.

Buying tips & gotchas

When purchasing a Raspberry Pi 5, ensure you buy from reputable sources to avoid counterfeit or faulty units. The Pi 5 requires a high-quality 5V/5A USB-C power supply; using an underpowered supply can lead to instability and performance issues. Also, consider a good quality MicroSD card (Class 10 or UHS-I U3) for faster boot times and overall system responsiveness. Accessories like a heatsink or active cooling fan are highly recommended, especially for sustained heavy workloads, as the BCM2712 can generate significant heat. Be aware that the Pi 5 uses 3.3V logic, so ensure all connected peripherals are compatible or use a logic level shifter.