Raspberry Pi 4
{{Short description|4th generation of the mainline series of Raspberry Pi single-board computer}}
{{Use British English|date=March 2022}}
{{Use dmy dates|date=March 2020}}
{{Infobox computing device
| name = Raspberry Pi 4
| image = Raspberry Pi 4 Model B - Top.jpg
| aka = Pi 4, RPi4
| developer = Raspberry Pi Holdings
| type = Single-board computer
| release date = {{Start date and age|2019|6|24|df=yes}}
| lifespan = Will remain in production until January 2034{{Cite web |date=February 2025 |title=Raspberry Pi 4 Product Brief |url=https://datasheets.raspberrypi.com/rpi4/raspberry-pi-4-product-brief.pdf |access-date=2025-05-29 |website=Raspberry Pi Holdings}}
| baseprice = $35 (1 GB)
$45 (2 GB)
$55 (4 GB)
$75 (8 GB)
| os = Raspberry Pi OS (default)
| soc = Broadcom BCM2711
| cpu = Quad-core ARM Cortex-A72
| CPUspeed = 1.5 or 1.8 GHz
| memory = 1, 2, 4 or 8 GB
| RAMtype = LPDDR4
| memory card = MicroSD, USB
| graphics = VideoCore VI @ 500 MHz
| power = 5V @ 3A via USB-C or PoE (with additional HAT)
| predecessor = Raspberry Pi 3B+
| successor = Raspberry Pi 5
}}
The Raspberry Pi 4 is the fourth generation of the Raspberry Pi flagship series of single-board computers. Developed by Raspberry Pi Holdings and released on 24 June 2019, it introduced significant upgrades over its predecessor. At its core, the Pi 4 features a new Broadcom BCM2711 system-on-chip, which has a 64-bit ARM Cortex-A72 CPU and a VideoCore VI GPU, offering a boost in processing and graphics performance.
Among other notable hardware improvements are the addition of two USB 3.0 ports, the inclusion of true gigabit Ethernet, and support for dual displays at 4K resolution through two micro HDMI ports. Furthermore, RAM options go beyond the 1 GB standard of previous models, adding 2, 4, and 8 GB variants. While the base model with 1 GB of RAM maintained the $35 price point that had become a hallmark of the Raspberry Pi series, the higher RAM variants exceeded this price due to increased production costs.{{Cite web |last= |first= |title=Buy a Raspberry Pi 4 Model B |url=https://www.raspberrypi.com/products/raspberry-pi-4-model-b/ |access-date=2023-10-04 |website=Raspberry Pi |language=en-GB}}{{Cite web |title=Raspberry Pi 4 Review |url=https://www.pcmag.com/reviews/raspberry-pi-4 |access-date=2023-10-04 |website=PCMAG |language=en}}
On 28 September 2023, the Raspberry Pi 5 was announced, succeeding the Raspberry Pi 4.{{Cite web |last=Upton |first=Eben |date=2023-09-28 |title=Introducing: Raspberry Pi 5! |url=https://www.raspberrypi.com/news/introducing-raspberry-pi-5/ |access-date=2023-10-04 |website=Raspberry Pi |language=en-GB}}
Features
= CPU =
The Raspberry Pi 4 features a Broadcom BCM2711 system-on-chip (SoC), which is a significant upgrade over previous models. It retains the quad-core design of the BCM2837 used in the Raspberry Pi 3 but uses more powerful ARM Cortex-A72 CPU cores based on the ARMv8 64-bit architecture, running at either 1.5 or 1.8 GHz depending on the chip revision.{{Cite web |title=Raspberry Pi Documentation – Processors |url=https://www.raspberrypi.com/documentation/computers/processors.html |access-date=2023-10-04 |website=www.raspberrypi.com |language=en}} Early models used the B0 stepping (an earlier chip version), while later revisions adopted the C0 stepping in mid-2021, which offers improved thermal performance and higher clock speed.{{Cite web |last=Geerling |first=Jeff |date=September 27, 2021 |title=Raspberry Pi 4 model Bs arriving with newer 'C0' stepping |url=https://www.jeffgeerling.com/blog/2021/raspberry-pi-4-model-bs-arriving-newer-c0-stepping |access-date=October 4, 2023}} The BCM2711 is about 50% faster than the one used in the Raspberry Pi 3 Model B+. The processor includes 32 KB of L1 cache, 48 KB of L1 instruction cache per core, and a shared 1 MB L2 cache.
= GPU =
The BCM2711 integrates a VideoCore VI GPU, replacing the earlier VideoCore IV. It is clocked at 500 MHz and includes a new Memory Management Unit, allowing it to access more memory despite being a 32-bit GPU. The GPU supports OpenGL ES 3.1 and Vulkan 1.2.{{Cite web |title=Eben Upton Announces Official Raspberry Pi 4 VideoCore VI Open Source Vulkan Graphics Driver Effort |url=https://www.hackster.io/news/eben-upton-announces-official-raspberry-pi-4-videocore-vi-open-source-vulkan-graphics-driver-effort-9af11a00adfd |access-date=October 4, 2023 |website=Hackster.io}}{{Cite web |last=Evenden |first=Ian |date=August 1, 2022 |title=Raspberry Pi 4 Now Vulkan 1.2 Compliant |url=https://www.tomshardware.com/news/raspberry-pi-vulkan-1.2-compliant |access-date=October 4, 2023 |website=Tom's Hardware}} The multimedia capabilities include hardware decoding of H.265 (4Kp60) and H.264 (1080p60 decode and 1080p30 encode) video.
= RAM =
The Raspberry Pi 4 uses LPDDR4 RAM running at 3.2 GHz. It is available in variants with 1 GB, 2 GB, 4 GB, or 8 GB of memory, with the 8 GB model introduced a year after the initial release.{{Cite web |last=Upton |first=Eben |date=May 28, 2020 |title=8GB Raspberry Pi 4 on sale now at $75 |url=https://www.raspberrypi.com/news/8gb-raspberry-pi-4-on-sale-now-at-75/ |access-date=October 4, 2023 |website=Raspberry Pi}}{{Cite web |title=Raspberry Pi 4 Specs, Release Date, and First Look |url=https://www.electromaker.io/blog/article/raspberry-pi-4-specs-release-date-and-first-look |access-date=October 4, 2023 |website=Electromaker}}
= IO and Connectivity =
File:18346-Raspberry Pi PoE HAT-01 (cropped).jpg
The Raspberry Pi 4 introduced several upgrades to input/output (I/O) capabilities. USB connectivity was improved from four USB 2.0 ports on earlier models to two USB 3.0 ports and two USB 2.0 ports. A dedicated PCI Express bus connects the USB controllers and a natively attached Ethernet controller, enabling true Gigabit Ethernet speeds.{{Cite web |last=Stanton |date=July 2, 2019 |title=Raspberry Pi 4 Model B – Technical Specifications |url=https://community.element14.com/products/raspberry-pi/w/documents/4320/raspberry-pi-4-model-b---technical-specifications |access-date=October 4, 2023 |website=Element14}} The single full-sized HDMI port on previous models was replaced by two micro-HDMI ports, allowing for dual-display output.{{Cite web |date=March 19, 2018 |title=Raspberry Pi 3B+ Reduced Schematics |url=https://datasheets.raspberrypi.com/rpi3/raspberry-pi-3-b-plus-reduced-schematics.pdf |access-date=October 4, 2023 |website=Raspberry Pi Datasheets}} The board includes two DSI display ports (only one exposed on the Raspberry Pi 4B) and two CSI camera ports (only one exposed on the Raspberry Pi 4B). It also supports up to six I²C and UART interfaces and up to six SPI interfaces (five exposed on the Raspberry Pi 4B). Bluetooth was updated from version 4.2 to 5.0,{{Cite web |last=Garbett |first=Samuel L. |date=October 10, 2022 |title=Raspberry Pi 3 vs. 4: What's the Difference? |url=https://www.makeuseof.com/raspberry-pi-3-vs-4-differences/ |access-date=October 4, 2023 |website=MUO}} and the power input switched from Micro-USB to USB-C.{{Cite web |date=October 12, 2021 |title=Raspberry Pi 3 vs 4: Which One Should You Get? |url=https://itsfoss.com/raspberry-pi-3-vs-4/ |access-date=October 4, 2023 |website=It's FOSS}} The Ethernet port supports Power over Ethernet (PoE) in compliance with the IEEE 802.3af standard (802.3at Type 1), similar to the Raspberry Pi 3 Model B+.
Compute Module 4
File:CM 4 TOP DOWN ON WHITE (cropped).jpg
On 19 October 2020, 16 months after the original release of the Raspberry Pi 4 Model B, Raspberry Pi released the Compute Module 4, a computer-on-module version of the Pi 4 platform designed for embedded and industrial applications. The Compute Module 4, like the original Pi 4 model, features options for 1 GB, 2 GB, 4 GB, and 8 GB of RAM; however, it also features options for 8 GB, 16 GB, or 32 GB of optional eMMC onboard storage. There is also an option for wireless 2.4/5 GHz wireless connectivity.{{Cite web |last=Upton |first=Eben |date=2020-10-19 |title=Raspberry Pi Compute Module 4 on sale now from $25 |url=https://www.raspberrypi.com/news/raspberry-pi-compute-module-4/ |access-date=2023-10-06 |website=Raspberry Pi |language=en-GB}} Because of the 32 variations for the Compute Module 4, the MSRP ranges from $30 to $95 depending on the configuration.{{Cite web |date=April 2022 |title=CM4 Product Brief |url=https://datasheets.raspberrypi.com/cm4/cm4-product-brief.pdf |access-date=5 October 2023 |website=Raspberry Pi Datasheets}}
= IO and Connectivity =
Unlike the original Raspberry Pi 4 Model B, the Compute Module 4 uses a pair of 100-pin connectors on the bottom of the board for IO instead of traditional ports. These connectors are not meant to be accessed directly by the end user; instead, they are meant to interface with a daughter board to provide IO functionality. While the pins on the Compute Module 4 can be used for the same interfaces as other Pi 4 models, the Compute Module 4 exposes the PCIe 2.0 bus that was previously used for USB 3.0. The freeing of the PCIe bus allows designers to use it for other use cases, such as native NVMe storage or faster networking.{{Cite web |last=Geerling |first=Jeff |date=28 May 2021 |title=Two Tiny Dual-Gigabit Raspberry Pi CM4 Routers |url=https://www.jeffgeerling.com/blog/2021/two-tiny-dual-gigabit-raspberry-pi-cm4-routers |access-date=6 October 2023 |website=jeffgeerling.com}} Models of Compute Module 4 that have an eMMC chip do not have the capability to connect to external eMMC or microSD storage.{{Cite web |title=Raspberry Pi Compute Module 4 |url=https://datasheets.raspberrypi.com/cm4/cm4-datasheet.pdf?_gl=1*136s5ch*_ga*Mjg1MDAxNDQ0LjE2OTM5MzEzNjQ.*_ga_22FD70LWDS*MTY5NjYwNjA4My4yLjEuMTY5NjYwNjQ4Ny4wLjAuMA.. |access-date=6 October 2023 |website=Raspberry Pi Datasheets}}
Raspberry Pi 400
File:RPI 400 BACK 2 WHITE (cropped).jpg]]
The Raspberry Pi 400 is the final Raspberry Pi product to be based on the Raspberry Pi 4 platform. Released 2 November 2020, the Pi 400 is a Raspberry Pi 4 with 4 GB of RAM in a keyboard form factor. It also has an upgraded power supply and a large integrated heat sink, allowing the ARM Cortex-A72 processor to be clocked at 1.8 GHz.{{cite web |date=2020-11-03 |title=Designing Raspberry Pi 400 |url=https://www.raspberrypi.org/blog/designing-raspberry-pi-400/ |access-date=2021-07-07 |website=Raspberry Pi}}{{cite web |last=Upton |first=Eben |date=9 November 2021 |title=Bullseye bonus: 1.8GHz Raspberry Pi 4 |url=https://www.raspberrypi.com/news/bullseye-bonus-1-8ghz-raspberry-pi-4/ |access-date=14 November 2021}}
Intended to be used as a desktop PC, the Raspberry Pi 400 can either be bought alone for $70, or as part of a desktop kit which includes the Pi 400 itself, a power supply, a mouse, a 16 GB microSD card with Raspberry Pi OS preinstalled, and a guide book for $100.{{Cite web |last=Upton |first=Eben |date=2020-11-02 |title=Raspberry Pi 400: the $70 desktop PC |url=https://www.raspberrypi.com/news/raspberry-pi-400-the-70-desktop-pc/ |access-date=2023-10-06 |website=Raspberry Pi |language=en-GB}}
Peripherals
= Compute Module 4 IO Board =
The Compute Module 4 IO Board is an official daughter board designed to give Compute Module 4 users easier access to its various interfaces. While the board does feature many of the same ports as the original Pi 4 Model B, the Compute Module 4 IO Board also adds and changes various connectivity options.{{Cite web |date=October 2020 |title=Raspberry Pi Compute Module 4 IO Board Product Brief |url=https://datasheets.raspberrypi.com/cm4io/cm4io-product-brief.pdf?_gl=1*1bn46ix*_ga*MTAwMDI1OTU4Ni4xNjk2NDE5MDMx*_ga_22FD70LWDS*MTY5NzExNDQ4MC4zLjAuMTY5NzExNDQ4MC4wLjAuMA.. |access-date=12 October 2023 |website=Raspberry Pi Datasheets}}
== PCI-e 2.0 ==
The CM4 IO Board is a carrier board exposing the PCI-e 2.0 bus of the Compute Module 4, rather than having the bus directly connect to a USB 3.0 controller. The bus is exposed through a standard 1x PCI-e connector, allowing for the connection of standard PCI-e peripherals such as networking cards, high-speed storage devices, and even allows the possibility of external GPU support.{{Cite web |title=External graphics cards work on the Raspberry Pi {{!}} Jeff Geerling |url=https://www.jeffgeerling.com/blog/2022/external-graphics-cards-work-on-raspberry-pi |access-date=2023-10-12 |website=www.jeffgeerling.com}}
USB-C Power Issues
During the launch of the original Raspberry Pi 4, people soon discovered that some USB-C power cables would not work with the board. The reason for this was found to be the Pi 4's USB-C power connector being non-compliant with the official specification. The issue stems from the Raspberry Pi 4's use of a shared CC pull-down resistor, rather than each CC line being given its own resistor; the result of this change is that chargers using an e-marker chip will not be able to detect the Pi, thus supplying no voltage.{{Cite web |last=Pecina |first=Eduardo |date=12 July 2019 |title=Raspberry Pi 4 USB-C Power Problems: How to Power Your New Board |url=https://maker.pro/raspberry-pi/tutorial/raspberry-pi-4-usb-c-power-problems-how-to-charge-your-new-board |access-date=5 October 2023 |website=Maker Pro}}
The USB-C implementation was fixed with the release of the 1.2 revision of Raspberry Pi 4, which allowed for high-speed USB-C cables to work with the board.{{Cite web |last=Broekhuijsen |first=Niels |date=17 September 2022 |title=Raspberry Pi 4 Revision Fixes USB-C Compatibility Problem |url=https://www.tomshardware.com/news/raspberry-pi-4-usb-c-update |access-date=5 October 2023 |website=Tom's Hardware}}{{Cite web |last=Aufranc |first=Jean-Luc |date=24 February 2020 |title=Raspberry Pi 4 Rev 1.2 Fixes USB-C Power Issues, Improves SD Card Resilience |url=https://www.cnx-software.com/2020/02/24/raspberry-pi-4-rev-1-2-fixes-usb-c-power-issues-improves-sd-card-resilience/ |access-date=5 October 2023 |website=CNX Software}}