Arduino vs Raspberry Pi: which one your project needs

An Arduino runs one program the moment it gets power. A Raspberry Pi 5 is a Linux computer. Here is which to pick for sensors, robots, USB controllers and screens, with real builds.

Published

Arduino vs Raspberry Pi: which one your project needs
On this page

An Arduino is a microcontroller board. It runs one program, and that program starts the moment the board gets power. A Raspberry Pi 5 is a small Linux computer with two HDMI outputs, four USB ports and up to 16 GB of RAM.

That difference settles most choices. If your build reads sensors, lights LEDs, beeps or drives motors, use a microcontroller. If it needs a desktop, a monitor or Linux software, use a Raspberry Pi 5.

One name trips people up. The Raspberry Pi Pico is not a smaller Pi 5. It is Raspberry Pi's own microcontroller board, which makes it much closer to an Arduino. For how a microcontroller runs code without an operating system, see what is a microcontroller.

The short answer

  • Arduino Uno for sensors, buttons, LEDs and motor drivers, with 5 V pins and six analog inputs.
  • Raspberry Pi 5 for Linux, screens, a keyboard and mouse, networking and anything that needs gigabytes of RAM.
  • Raspberry Pi Pico 2 for the same jobs as an Uno on a smaller 3.3 V board with 26 GPIO pins, programmed in C/C++ or Python. The Pico 2 W adds Wi-Fi and Bluetooth.

Arduino vs Raspberry Pi specs

Uno R3Pico 2Pi 5
ChipATmega328P, 16 MHzRP2350, 2 cores, 150 MHzBCM2712, 4 cores, 2.4 GHz
RAM2 kB520 KB1 to 16 GB
Storage32 kB flash4 MB flashmicroSD card
GPIO14 digital2626
Analog in63None
Logic5 V3.3 V3.3 V
WirelessNonePico 2 W onlyWi-Fi, Bluetooth 5.0
RunsOne programOne programLinux

A Raspberry Pi 5 will not start without an operating system image on its boot media, usually a microSD card. An Uno or a Pico has no operating system. You flash your program onto the board's own memory and it runs as soon as it has power.

The pins matter as much as the processor. Both Unos use 5 V logic and have six analog inputs, so most 5 V sensors and modules plug straight in. The Pi 5's header has none: every pin is power, ground, GPIO or the ID EEPROM. Its GPIO runs at 3.3 V, and Raspberry Pi's documentation says never to put 5 V on a GPIO pin. Each pin supplies up to 16 mA, 50 mA across all of them. Mixing 5 V parts with a 3.3 V board is covered in 3.3 V vs 5 V logic level shifting.

Two smaller differences. The Uno R3's ATmega328P isn't soldered down, so you can swap it if you kill it. The Uno R4 Minima keeps the Uno layout and 5 V logic but moves to a 48 MHz Renesas RA4M1 with 32 kB of SRAM and 256 kB of flash, switches to USB-C, and adds a DAC, a real-time clock, and the ability to act as a USB keyboard or mouse.

The Raspberry Pi Pico is not a small Pi

Raspberry Pi describes its Pico boards as microcontroller boards that don't run Linux. Programs are flashed onto on-board memory instead of a removable card. That puts the Pico next to the Arduino Uno, not the Pi 5.

The Pico 2 is 21 mm × 51 mm. It has 520 KB of SRAM, 4 MB of flash and 26 GPIO pins, three of them analog inputs. It takes 1.8 to 5.5 V in, but its GPIO stays at 3.3 V.

Plenty of guides still use the original Pico. It has an RP2040 (two Cortex-M0+ cores at 133 MHz), 264 KB of SRAM, 2 MB of flash and the same 26 GPIO with three analog inputs. You program it by dragging a file onto it over USB, and it runs MicroPython.

Pico or Uno?

Which to pick for your project

Sensors and alarms: Arduino Uno

Reading a sensor and making a noise is what an Uno is for. The laser tripwire alarm shines a laser on D2 at a light sensor (an LDR with a 10k resistor) on analog pin A0. The Uno reads A0 every 100 ms. If the reading drops below 400, the beam is broken and a buzzer on D5 sounds at 1 kHz.

The tripwire in the Schematik simulator: drag the light sensor down and the serial monitor prints Intruder detected.

Ivan Ilaw's automated mini greenhouse does more of the same on one Uno. It reads soil moisture, temperature, humidity and light, switches a pump and a fan on set thresholds, and shows the readings on an LCD.

A Pico works as well when the box has to be small. Sven Letterer's stratospheric balloon tracker uses a Pico 2 to log GPS position, air pressure and thermocouple temperature to an SD card during the flight.

Games, robots and motors: either microcontroller

Buttons, LED matrices and motors want fast, direct pin control. Marco Machado Wada's LED matrix games, the build in the photo at the top, runs five games on an Uno with an 8x8 LED matrix, a joystick, buttons and a buzzer.

Motors never go straight on a pin, on any board. Md. Masud Rana's line-following robot reads an eight-channel infrared sensor bar on an Uno and drives two N20 motors through an L298N motor driver.

For many servos, a Pico plus servo driver boards keeps the wiring sane. Shaikh Tajmul haque's tiny spider robot walks on eight legs with two servos each, 16 in total, through two PCA9685 driver boards chained over I2C.

Schematik's cosmic critter pet puts a Pico with an accelerometer, an OLED face, an LED ring and a buzzer on a desk. Tilt it and the face switches between four moods: HAPPY, SLEEPY, DIZZY and HYPER.

A Pico, a button and an OLED in the Schematik simulator: press the button and the face changes mood.

USB controllers and MIDI: Pico or Uno R4

A controller that plugs into a computer has to show up as a USB device. Arduino's Keyboard library lists the Uno R4 Minima and Uno R4 WiFi, but not the Uno R3.

The Pico does this well. stan_vandervoort's Pico MIDI controller has eight buttons and three knobs in a 3D-printed case and sends MIDI notes and control changes to music software over USB. The three knobs use the Pico's three analog inputs, GPIO 26, 27 and 28.

Screens, video and a desktop: Raspberry Pi 5

Once a project needs a monitor, a browser, a keyboard and mouse, or Linux software, move to a Pi 5. It has two 4Kp60 HDMI outputs, two USB 3.0 and two USB 2.0 ports, Gigabit Ethernet, dual-band Wi-Fi and Bluetooth 5.0, and runs from a 5 V, 5 A USB-C supply. No board in the other three columns of the table can drive a 4K screen or run a desktop.

Use both

The most useful answer is often both. otieno.robind's dual-screen cyberdeck, based on Sector 07's design, gives each board the job it is good at. A Raspberry Pi 5 runs Linux and two displays. A Pico runs the control panel, with two rotary encoders, four macro keys and a trackpad, and talks to the Pi 5 over USB as a keyboard and mouse.

A render of a white dual-screen cyberdeck with a mechanical keyboard, a landscape screen showing a city scene and a portrait screen showing code.

Arduino vs ESP32

If you want Wi-Fi or Bluetooth on a microcontroller, the usual alternative to an Uno is an ESP32.

The original ESP32 has two Xtensa LX6 cores at up to 240 MHz, 520 KB of SRAM, Wi-Fi, Bluetooth 4.2 and Bluetooth LE, 34 GPIO pins and a 12-bit ADC with up to 18 channels. Like the Pico and the Pi 5, it runs at 3.3 V.

  • ESP32: Wi-Fi and Bluetooth on a 3.3 V board with plenty of pins. To choose between the newer chips, see ESP32-C3 vs ESP32-S3.
  • Uno R3 or R4 Minima: 5 V pins and no networking needed.
  • Uno R4 WiFi: an Uno R4 with an ESP32-S3 on the board for Wi-Fi and Bluetooth, plus a 12x8 LED matrix.

Schematik's ESP32 plane radar shows what the radio is for. An ESP32-C3 Super Mini fetches live aircraft positions over Wi-Fi every five seconds and draws them on a 1.28-inch round display. More wireless builds are in ESP32 projects.

Try one without buying a board

The Schematik simulator runs Arduino Uno, Nano and Mega, Raspberry Pi Pico and ESP32 boards in the browser. Both clips above come from it. Arduino and Pico runs have no Wi-Fi.

Start your build

Open Schematik and describe what you want to make, for example:

Build a laser tripwire alarm with an Arduino Uno: an LDR and 10k resistor on A0, a low-power laser module on D2, and a piezo buzzer on D5 that sounds at 1 kHz when the beam is broken.

Keep building from here

Jump into a step-by-step build, or open Schematik and turn your own idea into code, wiring, and assembly instructions.