I have had a 4 GB Raspberry Pi 4 for a few weeks. The board went on sale on 24 June 2019. I use Pis headless, as sensor gateways, MQTT brokers and camera boxes, so these notes are about that kind of work, not the desktop.
Short version: it is a big step up from the Pi 3 B+, but power and heat need more attention than before.
What changed
| Pi 3 B+ | Pi 4 B | |
|---|---|---|
| CPU | 4x Cortex-A53, 1.4 GHz | 4x Cortex-A72, 1.5 GHz |
| RAM | 1 GB | 1, 2 or 4 GB LPDDR4 |
| Ethernet | Gigabit over USB 2.0, around 300 Mbit/s | Full gigabit |
| USB | 4x USB 2.0 | 2x USB 3.0, 2x USB 2.0 |
| Power | micro USB, 2.5 A supply | USB-C, 3 A supply |
| Video | 1x HDMI | 2x micro HDMI |
| Price | $35 | $35 / $45 / $55 |
The Raspberry Pi team says the CPU is two to four times faster than the 3 B+, depending on the test. The gigabit Ethernet and USB 3.0 are the changes I care about most. A Pi 4 with a USB 3.0 disk is finally a reasonable small file server or InfluxDB box, without the shared USB 2.0 bottleneck of the older boards. The PoE header is in the same place, so the PoE HAT still fits.
It needs Raspbian Buster. I wrote about moving to Buster last month.
Power: use a proper 3 A supply
The Pi 4 takes power over USB-C and wants 5 V at 3 A. The official supply gives 5.1 V at 3 A and costs about $8. The extra current is for USB devices: the board can now give more power to the USB ports than the Pi 3 could.
A weak supply shows the same symptoms as before: random reboots, SD card corruption, USB disks that disconnect. Check it:
vcgencmd get_throttled
throttled=0x0 is good. Any other value means the board saw under-voltage or throttling since boot. Bit 0 (0x1) is under-voltage right now, bit 16 (0x10000) is under-voltage at some point since boot. I check this on every new Pi with every new supply. It takes five seconds.
The USB-C cable problem
A few days after launch, users found that some USB-C chargers do not power the Pi 4 at all. The cause is in the board design: the two CC pins on the USB-C connector share one resistor, where the USB-C specification expects one resistor per pin. With a “smart” e-marked cable, like the ones that come with many laptop chargers, the charger thinks an audio adapter is connected and does not give power.
Eben Upton has confirmed the problem and said it will be fixed in a future board revision. Until then:
- Use the official power supply, or a simple 5 V 3 A USB-C supply with a cable that is not e-marked.
- Do not use your laptop charger and its cable. Even if it works with one cable, it may not work with another.
- If a Pi 4 shows no sign of life with a new supply, try another cable before you think the board is dead.
The plain fix for me was to buy the official supplies. I do not like having a special power supply per device, but it is the setup that was tested.
Heat
The Pi 4 runs much warmer than the 3 B+. Without a case, at idle, it is warm to the touch. Under constant load in a closed plastic case, it gets hot enough to throttle. When the SoC gets close to its temperature limit, the firmware lowers the clock, and you lose much of the speed you paid for.
Watch it while you put load on the board:
# in one terminal
watch -n 2 'vcgencmd measure_temp; vcgencmd measure_clock arm; vcgencmd get_throttled'
# in another, load all four cores for a while
sudo apt install stress
stress --cpu 4 --timeout 600
If the clock drops below 1500000000 during the test, the board is throttling. In get_throttled, bits 1 to 3 (0x2, 0x4, 0x8) mean the clock is capped or throttled right now, and bits 17 to 19 (0x20000 and up) mean it happened at some point since boot. If bit 0 is not set at the same time, the cause is heat and not power.
What I tried:
- The official case with no cooling: fine for an MQTT broker that is idle most of the time. Not fine for a camera box that runs OpenCV all day.
- A small heatsink on the SoC: helps a bit, delays throttling.
- A case with a small fan: no throttling in my test, but the fan is audible, and it is one more part that can fail.
I have not measured this carefully, and I do not know yet if firmware updates will change it. For now I plan for cooling on any Pi 4 that does real work.
Other things to know
- No USB boot or network boot yet. The Pi 4 boots from the SD card only. The team says this will come with an update to the boot EEPROM. My plan to run the system from a USB 3.0 SSD has to wait.
- Micro HDMI. For a headless board it does not matter, but keep one adapter around for the day you need a screen.
- The 1 GB model is fine for a sensor gateway. For a Grafana and InfluxDB box, or for OpenCV, I would take 2 or 4 GB.
- Old cases do not fit. The ports moved.
Where I would use it
For new projects that need CPU, network or disk: camera processing with OpenCV, a small home server, a database for sensor data. Here the Pi 4 is a clear upgrade, as long as it has a good supply and some cooling.
For a sensor node that reads a DHT22 every minute and sends MQTT, it is too much. A Pi 3 or a Zero W uses less power and needs no fan. My Pi 3 B+ stays where it is.