A Raspberry Pi is a complete computer the size of a credit card. It runs Linux from a microSD card or SSD, connects to screens, keyboards and networks, and has a 40-pin header for electronics. That makes it the right choice when a project needs a desktop, a camera, a web server, a database or AI models, as well as hardware control.
The main models compared
| Raspberry Pi 5 | Raspberry Pi 4 Model B | Raspberry Pi Zero 2 W | |
|---|---|---|---|
| Chip | Broadcom BCM2712, quad-core Arm Cortex-A76 | Broadcom BCM2711, quad-core Arm Cortex-A72 | RP3A0, quad-core Arm Cortex-A53 |
| Clock | 2.4 GHz | 1.8 GHz | 1 GHz |
| RAM | 1, 2, 4, 8 or 16 GB | 1, 2, 4 or 8 GB | 512 MB |
| Wireless | Dual-band 802.11ac Wi-Fi, Bluetooth 5.0 | Dual-band 802.11ac Wi-Fi, Bluetooth 5.0 | 2.4 GHz 802.11 b/g/n Wi-Fi, Bluetooth 4.2 |
| Power | 5 V 5 A over USB-C (Power Delivery) | 5 V 3 A over USB-C | 5 V over micro USB |
| Extras | PCIe 2.0 x1 for NVMe SSDs and AI accelerators, real-time clock, power button | Gigabit Ethernet, 2 × USB 3.0 | Tiny and low power. GPIO header comes unpopulated |
| GPIO | 40-pin header, 3.3 V | 40-pin header, 3.3 V | 40-pin footprint, 3.3 V |
Figures from the manufacturer's documentation, listed under Sources.
Which one should you get?
Get a Pi 5 for anything demanding: running AI models locally, a home server, or a desktop. Use the official 27 W power supply, because the Pi 5 limits USB current on weaker ones. A Pi 4 is still very capable and sometimes cheaper. A Zero 2 W suits small, always-on jobs like a sensor logger or a network gadget. If your project only reads sensors and drives outputs, a Pico is cheaper, boots instantly and is harder to corrupt by pulling the power.
Things that catch people out
- 3.3 V GPIO, and no protection. A 5 V signal on a GPIO pin can destroy the processor. There's no ADC either, so analogue sensors need an external converter.
- Shut down properly. Pulling the power while Linux is writing can corrupt the SD card. Run
sudo shutdown nowfirst, or use the Pi 5's power button. - Power supply problems look like software problems. A weak supply causes random crashes and a lightning-bolt warning. Use the supply Raspberry Pi recommends for your model.
- GPIO numbers aren't pin numbers. GPIO 17 is physical pin 11. Our pinout lists both.