Arduino vs Raspberry Pi vs ESP32: Which Board for Which Project?
An Arduino and an ESP32 are microcontroller boards that run one program, while a Raspberry Pi is a small computer with an operating system. See them side by side, then match five classroom projects to the right board.
By the MakerBuddy team Published 19 min read
Three boards on a desk: an Arduino UNO R3 wired to an LED and a push button, an ESP32 board sending Wi-Fi to a phone, and a Raspberry Pi 5 with a monitor and a camera module.
Arduino vs Raspberry Pi is really a question of what kind of thing you need. An Arduino UNO R3 and an ESP32 board are microcontroller boards: they run one program from the moment they get power, read sensors and switch lights, motors and buzzers. A Raspberry Pi 5 is a small computer. It runs an operating system from a memory card, with a desktop, files and Python, according to Raspberry Pi's getting started guide (opens in a new tab).
So pick an Arduino for simple 5 V circuits with no network. Pick an ESP32 when your readings should reach a phone or laptop over Wi-Fi. Pick a Raspberry Pi when the project needs a screen, a camera, lots of stored data or a full computer. Below, a table puts the three side by side, a short guide helps you choose, and five classroom projects are matched to a board, with the reason for each.
Arduino vs Raspberry Pi vs ESP32 at a glance
Arduino UNO R3
ESP32 development board
Raspberry Pi 5
What it is
Microcontroller board
Microcontroller board
Single-board computer
Brain
ATmega328P at 16 MHz
ESP32: one or two Xtensa LX6 cores at up to 240 MHz
Broadcom BCM2712: four 64-bit Arm Cortex-A76 cores at 2.4 GHz
Working memory
2 kB SRAM
520 KB SRAM
1 GB to 16 GB LPDDR4X
Where the program lives
32 kB flash on the chip
Flash on the board's module
A microSD card holding the operating system
Wireless
None
2.4 GHz Wi-Fi (802.11 b/g/n), Bluetooth 4.2 and Bluetooth LE
Dual-band Wi-Fi (802.11ac), Bluetooth 5.0
Analog inputs
6
Up to 18 channels, 12-bit
None listed
Pin voltage
5 V
3.3 V
3.3 V, not 5 V tolerant
Power
USB-B cable from a computer
USB; the chip draws 10 µA in Deep-sleep
5 V, 5 A supply over USB-C
You program it in
Arduino C++
Arduino C++, MicroPython or ESP-IDF
Python 3 and other languages
Price checked 29 October 2026
US$27.60 at SparkFun
US$10.00 for Espressif's DevKitC-32E at DigiKey
US$110.00 for the 4 GB model at SparkFun, plus a power supply and a card
What it is
Arduino UNO R3
Microcontroller board
ESP32 development board
Microcontroller board
Raspberry Pi 5
Single-board computer
Brain
Arduino UNO R3
ATmega328P at 16 MHz
ESP32 development board
ESP32: one or two Xtensa LX6 cores at up to 240 MHz
Raspberry Pi 5
Broadcom BCM2712: four 64-bit Arm Cortex-A76 cores at 2.4 GHz
Working memory
Arduino UNO R3
2 kB SRAM
ESP32 development board
520 KB SRAM
Raspberry Pi 5
1 GB to 16 GB LPDDR4X
Where the program lives
Arduino UNO R3
32 kB flash on the chip
ESP32 development board
Flash on the board's module
Raspberry Pi 5
A microSD card holding the operating system
Wireless
Arduino UNO R3
None
ESP32 development board
2.4 GHz Wi-Fi (802.11 b/g/n), Bluetooth 4.2 and Bluetooth LE
Raspberry Pi 5
Dual-band Wi-Fi (802.11ac), Bluetooth 5.0
Analog inputs
Arduino UNO R3
6
ESP32 development board
Up to 18 channels, 12-bit
Raspberry Pi 5
None listed
Pin voltage
Arduino UNO R3
5 V
ESP32 development board
3.3 V
Raspberry Pi 5
3.3 V, not 5 V tolerant
Power
Arduino UNO R3
USB-B cable from a computer
ESP32 development board
USB; the chip draws 10 µA in Deep-sleep
Raspberry Pi 5
5 V, 5 A supply over USB-C
You program it in
Arduino UNO R3
Arduino C++
ESP32 development board
Arduino C++, MicroPython or ESP-IDF
Raspberry Pi 5
Python 3 and other languages
Price checked 29 October 2026
Arduino UNO R3
US$27.60 at SparkFun
ESP32 development board
US$10.00 for Espressif's DevKitC-32E at DigiKey
Raspberry Pi 5
US$110.00 for the 4 GB model at SparkFun, plus a power supply and a card
The table hides one big point. The Uno and the ESP32 are the whole job on one board. The Pi is a computer you then teach to do the job, with software on top of an operating system.
Is Raspberry Pi a microcontroller?
No. A Raspberry Pi 5 is a single-board computer. Its processor, the BCM2712, works with 1 GB to 16 GB of LPDDR4X memory, and it starts from an operating system image on a microSD card, as the Raspberry Pi 5 page (opens in a new tab) and the getting started guide (opens in a new tab) describe. That is how a laptop works too, only smaller.
A microcontroller puts the processor, memory and pins on one chip and runs one program with no operating system in the way. The ESP32 and the Uno's ATmega328P both work like that. Our guide to what a microcontroller is explains the difference in more detail.
The name causes confusion, because Raspberry Pi also makes microcontroller boards. The Raspberry Pi Pico (opens in a new tab) is built on the RP2040, a microcontroller chip that Raspberry Pi designed. So "Raspberry Pi 5" and "Raspberry Pi Pico" sit on opposite sides of the line. The Pico gets its own comparison with the ESP32 further down.
Microcontroller vs computer. Left: one ESP32 chip holds the CPU, memory, pins and radio and is wired straight to a soil sensor and, through a relay, a pump. Right: a Raspberry Pi stacks your program on Python 3, on Raspberry Pi OS from a microSD card, on BCM2712 hardware with 1 GB to 16 GB of RAM, a screen and a camera.
One program or a whole operating system: what changes in class
The microcontroller vs computer difference shows up in small, practical ways during a lesson.
Starting up. An Uno or an ESP32 starts its program as soon as it has power. There is nothing to log in to. A Raspberry Pi has to start its operating system first, and it needs a card prepared with that system. Raspberry Pi recommends a card of at least 32 GB for the desktop version of Raspberry Pi OS, according to its getting started guide (opens in a new tab).
Switching off. You can unplug a microcontroller board at any time. A Pi is a computer that writes files, so Raspberry Pi's shutdown advice (opens in a new tab) is to shut it down before you disconnect the power. On a Pi 5 you double-press the power button, or type sudo poweroff.
Extra things on the desk. For a desktop setup, the Pi needs a display, a keyboard and a mouse, per the same getting started guide (opens in a new tab). You can skip those and reach it over the network instead, which Raspberry Pi calls a headless setup. A microcontroller board only needs a USB cable and a laptop for programming.
What the Pi does better. It is a real computer. Raspberry Pi OS comes with Python 3 already installed, according to the Raspberry Pi OS documentation (opens in a new tab), and it can save weeks of data to files, show a web page, run a camera and do maths that would not fit on a microcontroller.
Which board should you choose? A quick decision guide
Start from the project, not the specs. Read down this list and stop at the first line that matches.
1
If your project needs a camera, video, a screen with a desktop, or heavy number-crunching,
If it needs to store readings for days, or serve them to many people,
use a Raspberry Pi or a laptop for the storing part. A microcontroller can still do the sensing, as the worked example below shows.
3
If its readings should reach a phone or laptop, or it should take commands over Wi-Fi,
choose an ESP32. The radio is on the chip.
4
If it runs from a battery for a long time,
choose an ESP32 or another microcontroller that can sleep.
5
If it uses 5 V modules or a book written for the Uno, and never needs a network,
choose an Arduino UNO R3.
6
If none of the above apply,
any microcontroller board will do. Pick the one your class already has.
Notice that only the first two lines point at the Pi. A build that senses something and reacts is microcontroller work. Our beginner's guide to the ESP32 shows how far one microcontroller board can go, and our post on ESP32 vs Arduino Uno compares those two in depth.
Decision flowchart from "What will your project do?": a camera, video, desktop or heavy number-crunching leads to a Raspberry Pi; storing readings for days leads to a Pi or laptop that stores while a microcontroller senses; Wi-Fi to a phone or a long battery life leads to an ESP32; 5 V modules or an Uno book with no network lead to an Arduino UNO R3; otherwise, any microcontroller board.
Five classroom projects matched to the right board
Here are five classroom projects, most of them from our 50 project ideas and the MakerBuddy lessons, with the board that fits each and why.
Project
What it must do
Best fit
Why not the others
Automatic plant watering
Read soil moisture, switch a small pump, ideally alert you on a phone
ESP32
An Uno works but cannot report to a phone; a Pi has no analog input for the soil sensor
Parking gate
See a car with a distance sensor, lift a servo arm, wait, lower it
Arduino UNO R3 or ESP32
A Pi can do it, but it is a whole computer for one small job
Weather logger
Read temperature and humidity, keep weeks of timed records
ESP32 to sense, Raspberry Pi to record
A microcontroller alone has nowhere big to store weeks of rows
Bird-feeder camera
Take photos when something moves, save them
Raspberry Pi
A camera, image files and storage are computer work
Reaction-time game
Light an LED at a random moment, time a button press in milliseconds
Arduino UNO R3 or any microcontroller
A short sketch with exact timing is all it needs
Project
Automatic plant watering
What it must do
Read soil moisture, switch a small pump, ideally alert you on a phone
Best fit
ESP32
Why not the others
An Uno works but cannot report to a phone; a Pi has no analog input for the soil sensor
Project
Parking gate
What it must do
See a car with a distance sensor, lift a servo arm, wait, lower it
Best fit
Arduino UNO R3 or ESP32
Why not the others
A Pi can do it, but it is a whole computer for one small job
Project
Weather logger
What it must do
Read temperature and humidity, keep weeks of timed records
Best fit
ESP32 to sense, Raspberry Pi to record
Why not the others
A microcontroller alone has nowhere big to store weeks of rows
Project
Bird-feeder camera
What it must do
Take photos when something moves, save them
Best fit
Raspberry Pi
Why not the others
A camera, image files and storage are computer work
Project
Reaction-time game
What it must do
Light an LED at a random moment, time a button press in milliseconds
Best fit
Arduino UNO R3 or any microcontroller
Why not the others
A short sketch with exact timing is all it needs
Automatic plant watering
When the soil gets dry, a relay switches on a small low-voltage pump, and a second rule switches it off when the soil is wet again. That is the Garden Auto-Waterer on our project ideas page, and the pump is the one part not in the MakerBuddy box. An ESP32 suits it because you can check the soil reading from another room. A Raspberry Pi struggles here: its specification lists no analog inputs, and a soil sensor gives an analog voltage. Lesson 18 on smart agriculture covers the sensor, and our automatic plant watering guide builds the whole thing.
Parking gate
A distance sensor sees a car, a servo lifts the barrier, the gate waits, then closes. This needs a sensor, a motor and simple logic, which any microcontroller handles. On a MakerBuddy board it is two Condition rules in the dashboard, with no code. Lesson 29 on the parking gate plans it as a state diagram and calibrates the servo, and Lesson 30 adds the 3-second wait and the gap between the open and close distances that stops the gate flapping. Our smart parking system project has the full build.
Weather logger
Reading a temperature is easy for any board. Keeping a timed record for weeks is the hard part. The MakerBuddy board has no clock and keeps no history of readings, as our guide to choosing a dashboard says, so a second device has to do the recording. That split is the worked example below. For a live weather display without logging, see our DIY weather station with an ESP32.
Bird-feeder camera
This one is a Raspberry Pi job. The Pi 5 has two MIPI camera or display connectors, per its product page (opens in a new tab), and Raspberry Pi's camera documentation (opens in a new tab) lists Camera Module 3 as a 12-megapixel camera with a 4608 × 2592-pixel sensor. Photos that size need real storage and software to sort them, which a computer has. The MakerBuddy kit has no camera, so it is not the board for this project.
Reaction-time game
An LED lights at a random moment and the player presses a button as fast as possible. The board must time the press to the millisecond, so this is a job for your own code on a microcontroller. Our project ideas list it as an Arduino build, because the MakerBuddy dashboard checks the button only once a second. An Uno is perfect, and an ESP32 runs the same sketch. Our reaction-time game guide walks through it.
Worked example: a weather logger built from an ESP32 and a Raspberry Pi
You do not always have to choose one board. In this logger, a MakerBuddy board, which carries a 30-pin ESP32 DevKit, does the sensing, and a Raspberry Pi does the remembering. It copies the task from Lesson 16, the data logger, where pairs record readings every 5 minutes by hand, then ask what an automatic logger would catch. This is that automatic logger.
How the pieces fit:
1
The MakerBuddy board reads its sensors every second and answers web requests on your Wi-Fi.
2
Every 5 minutes, a short Python program on the Pi asks the board for a snapshot at /api/sensors.
3
The Pi adds one row to a CSV file, with the time from its own clock. A spreadsheet opens the file later.
The board's REST API returns short keys: te is the DHT11 temperature in °C, hu the humidity and li the light level from 0 to 100. Any computer with Python 3 can run this program, but a Pi is cheap to leave on all week, and the Pi 5 even has a real-time clock that runs from an external battery, per its product page (opens in a new tab).
The weather logger: every 5 minutes the Raspberry Pi asks the MakerBuddy board, with its DHT11 plugged in, for /api/sensors over the classroom Wi-Fi. The board answers with a JSON snapshot (te, hu, li) and no time, and the Pi adds a timestamped row to weather-log.csv: 288 rows a day.
The program
Save this as weather_logger.py on the Pi. Change BOARD to your board's name followed by .local, or to its IP address.
python
#!/usr/bin/env python3
"""Weather logger: every 5 minutes, ask a MakerBuddy board for its
readings and add one row to a CSV file that a spreadsheet can open."""
import csv
import json
import time
import urllib.request
from datetime import datetime
from pathlib import Path
BOARD = "http://makerbuddy-01.local" # or the IP address, e.g. "http://192.168.1.100"
EVERY_SECONDS = 5 * 60 # one row every 5 minutes, as in Lesson 16
LOG_FILE = Path("weather-log.csv")
COLUMNS = ["time", "temperature_c", "humidity_percent", "light_0_to_100"]
def read_board():
"""Ask the board for one snapshot and pick out three readings."""
with urllib.request.urlopen(BOARD + "/api/sensors", timeout=5) as reply:
data = json.load(reply)
return [data["te"], data["hu"], data["li"]]
def main():
new_file = not LOG_FILE.exists()
with LOG_FILE.open("a", newline="") as log:
writer = csv.writer(log)
if new_file:
writer.writerow(COLUMNS)
while True:
stamp = datetime.now().isoformat(timespec="seconds")
try:
writer.writerow([stamp] + read_board())
log.flush() # write to the card now, not later
print(stamp, "saved")
except (OSError, KeyError, ValueError) as error:
print(stamp, "skipped:", error) # board off or Wi-Fi down
time.sleep(EVERY_SECONDS)
if __name__ == "__main__":
main()
Run it with python3 weather_logger.py. Stop it with Ctrl+C. It uses only the libraries that come with Python, so there is nothing to install.
Why each part is there
The time comes from the Pi. The board has no clock, so the snapshot carries no time. The Pi writes the time on every row.
`timeout=5`. If the board is unplugged, the request gives up after 5 seconds instead of hanging forever.
The `try` block. A missed reading prints "skipped" and the loop carries on. Without it, one Wi-Fi drop at 3 am would stop the whole log.
`log.flush()`. Each row is written to the card straight away, so a power cut loses at most the row being written.
Opening the file with `"a"`. The program adds to an old log instead of wiping it, and writes the header row only once.
We ran this program on 29 October 2026 with a pretend reply in the board's documented format and one pretend Wi-Fi drop. It wrote the header once, saved a row on each good loop and skipped the failed one. It was not run against a real board.
What a day of logging looks like
At one row every 5 minutes, an hour gives 60 ÷ 5 = 12 rows, and a day gives 12 × 24 = 288 rows. A week gives 288 × 7 = 2,016 rows. By hand, even a full 60-minute lesson gives at most 12 rows. The automatic log keeps going overnight, when nobody is in the room, which is the point Lesson 16 asks students to discover. Our guide to data logging shows what to do with the rows next.
Keep it safe
The board's web connection has no password. Anyone on the same network can read it or send it commands, as the security notes explain. Run this logger only on a Wi-Fi network you trust, and never make the board reachable from the internet. The logger only reads; it never sends a command, so the board's rules keep running as normal.
ESP32 vs Raspberry Pi Pico: two microcontrollers compared
If you came here for the Pico, the fair comparison is ESP32 vs Raspberry Pi Pico, because both are microcontroller boards.
ESP32 development board
Raspberry Pi Pico
Raspberry Pi Pico 2
Chip
ESP32
RP2040
RP2350
Cores and speed
One or two Xtensa LX6 cores, up to 240 MHz
Two Arm Cortex-M0+ cores, up to 133 MHz
Two Arm Cortex-M33 or two Hazard3 RISC-V cores, 150 MHz
SRAM
520 KB
264 kB
520 KB
Flash on the board
On the module
2 MB
4 MB
Analog inputs
Up to 18 channels
3
3
Wireless
Wi-Fi and Bluetooth on every ESP32
Only on the Pico W: 2.4 GHz 802.11n and Bluetooth 5.2
Only on the Pico 2 W: 2.4 GHz 802.11n and Bluetooth 5.2
Languages
Arduino C++, MicroPython, ESP-IDF
C and MicroPython
C/C++ and Python
Price from Raspberry Pi
Not sold by Raspberry Pi
From $4; Pico W $6
From $5
Chip
ESP32 development board
ESP32
Raspberry Pi Pico
RP2040
Raspberry Pi Pico 2
RP2350
Cores and speed
ESP32 development board
One or two Xtensa LX6 cores, up to 240 MHz
Raspberry Pi Pico
Two Arm Cortex-M0+ cores, up to 133 MHz
Raspberry Pi Pico 2
Two Arm Cortex-M33 or two Hazard3 RISC-V cores, 150 MHz
SRAM
ESP32 development board
520 KB
Raspberry Pi Pico
264 kB
Raspberry Pi Pico 2
520 KB
Flash on the board
ESP32 development board
On the module
Raspberry Pi Pico
2 MB
Raspberry Pi Pico 2
4 MB
Analog inputs
ESP32 development board
Up to 18 channels
Raspberry Pi Pico
3
Raspberry Pi Pico 2
3
Wireless
ESP32 development board
Wi-Fi and Bluetooth on every ESP32
Raspberry Pi Pico
Only on the Pico W: 2.4 GHz 802.11n and Bluetooth 5.2
Raspberry Pi Pico 2
Only on the Pico 2 W: 2.4 GHz 802.11n and Bluetooth 5.2
Both are good first boards. The ESP32's draw is wireless on every chip and many analog channels. The Pico's draw is its low price, clear documentation from Raspberry Pi and a simple pin layout. If a project needs Wi-Fi, check you are buying a W model of the Pico. Our guide to MicroPython vs Arduino C helps you pick a language for either.
Common mistakes when choosing between Arduino, Raspberry Pi and ESP32
A 5 V signal wired to a Raspberry Pi pin
Symptom: A pin stops working, or the whole Pi becomes unreliable. Cause: Raspberry Pi's GPIO documentation (opens in a new tab) says its pins "operate at 3.3 V and aren't 5 V tolerant", and that 5 V on a pin can damage the chip for good. Arduino UNO tutorials use 5 V parts everywhere. Fix: Check every module's voltage before wiring. Bring 5 V signals down to 3.3 V, as our guide to 3.3 V and 5 V logic shows. The same rule applies to an ESP32.
An analog sensor plugged straight into a Raspberry Pi
Symptom: A soil, light or gas sensor gives no useful number on the Pi. Cause: The Raspberry Pi 5 specification (opens in a new tab) lists no analog inputs, and these sensors give a varying voltage. Fix: Add an analog-to-digital converter chip. The GPIO Zero library (opens in a new tab) supports several, including the 10-bit, 8-channel MCP3008. Or let a microcontroller read the sensor and send the number to the Pi, as the logger above does.
Pulling the plug on a running Pi
Symptom: The last part of a log is missing, or files are damaged after a power cut. Cause: The Pi is a computer writing to a card. Raspberry Pi's shutdown guidance (opens in a new tab) says to shut down before disconnecting power. Fix: Double-press the Pi 5's power button or run sudo poweroff, and wait before unplugging. Flush log files as you write them, as the logger does.
An ESP32 that never joins the school Wi-Fi
Symptom: The board works by USB but never connects. Cause: The ESP32 supports 2.4 GHz Wi-Fi only, according to its datasheet (opens in a new tab), while the Pi 5's Wi-Fi is dual-band. A 5 GHz-only network, or one with a sign-in page, shuts the ESP32 out. Fix: Use a 2.4 GHz network. A phone hotspot set to 2.4 GHz works.
A column of zeros in the log
Symptom: The temperature and humidity columns read 0.0. Cause: The MakerBuddy firmware turns a failed DHT11 reading into 0.0, so an unplugged or loose sensor looks like a cold, dry room. Fix: Check the DHT11 is pushed fully into its socket, labelled 25, and treat a run of exact zeros as "no reading", not as weather.
A Raspberry Pi bought for a blinking light
Symptom: The first lesson is spent preparing cards and finding screens, and the LED blinks in the last five minutes. Cause: A Pi needs an operating system, a power supply and often a display before it can blink anything. Fix: Start with a microcontroller board for sensor and output lessons. Bring in a Pi when a project needs a camera, files or a desktop.
Why the MakerBuddy kit is built on an ESP32
Classroom projects that sense something and react are often better when the readings appear on a screen in front of the class. That is why the MakerBuddy IoT Kit V1.0 carries an ESP32 rather than an Uno or a Pi. Lesson 1 on electronics, automation and IoT introduces it as the brain of the board.
It talks to a browser over Wi-Fi. The dashboard shows live readings, switches outputs and builds rules, with no code and no accounts. Readings stay on your network.
Rules run on the board. Up to 10 rules, each with up to 10 steps, keep running when the dashboard is closed, as our rules documentation describes. The parking gate and plant waterer above are rules like these.
It starts like a microcontroller. Plug in the 5 V micro-USB cable and it runs. There is no card to prepare and nothing to shut down.
Code is there when you want it. You can upload your own Arduino sketch, like the reaction-time game. That replaces the MakerBuddy firmware until you put it back, as Install by USB explains.
The limits matter too. The board has no clock and keeps no history, which is why the logger above uses a Pi. Its dashboard and rules read sensors once a second, too slow for a reaction game. It needs 2.4 GHz Wi-Fi. Laptops connect through the Chrome, Edge or Firefox extension, or Safari on a Mac, and iPhones and iPads through Safari; on an Android phone, use the free MakerBuddy app from Google Play.
If that fits your class, you can order a MakerBuddy IoT kit: a kit is USD 200, and a written quote adds delivery; in Pakistan it is PKR 40,000, ordered online. More board guides are on the MakerBuddy blog.
FAQ
Which is better for beginners, Arduino or Raspberry Pi?
For learning electronics, an Arduino or another microcontroller board, because it runs your program as soon as it has power and needs only a USB cable. A Raspberry Pi is better for learning how a computer works, Linux and Python, but it needs an operating system on a card, a power supply and often a screen first, per Raspberry Pi's getting started guide (opens in a new tab). Many students start with a microcontroller and add a Pi later.
What can a Raspberry Pi do that an Arduino can't?
A Raspberry Pi runs a full operating system, so it can show a desktop on two screens, take photos through a camera module, store large files, run Python and serve web pages. The Raspberry Pi 5 page (opens in a new tab) lists two 4K HDMI outputs, two camera or display connectors and Gigabit Ethernet. An Arduino UNO R3 has none of those.
Can a Raspberry Pi replace an Arduino?
Sometimes. The Pi has a 40-pin header and the GPIO Zero library (opens in a new tab) makes it easy to switch LEDs and read buttons from Python. But its pins are 3.3 V only and it has no analog inputs, so many Arduino sensor projects need extra parts. It also has to boot and shut down like a computer.
Can a Raspberry Pi act as an Arduino programmer?
Yes. The Arduino CLI has ready-made downloads for Linux on ARM in 32-bit and 64-bit, according to its installation page (opens in a new tab), so a Pi can compile a sketch and upload it to an Uno or an ESP32 over USB. The Pi then becomes the computer and the Arduino stays the microcontroller.
Is ESP32 faster than Raspberry Pi?
No. A Raspberry Pi 5 has four cores at 2.4 GHz, per its product page (opens in a new tab), while an ESP32 has one or two cores at up to 240 MHz, per its datasheet (opens in a new tab). But the ESP32 starts its program straight away, uses far less power and is fast enough for reading sensors and switching outputs.
Is Arduino C, C++ or Python?
Arduino sketches are C++. The Arduino tools turn each sketch into a C++ program and compile it with versions of gcc and g++ made for your board's chip, as the Arduino CLI build notes (opens in a new tab) explain. Python is the usual language on a Raspberry Pi, and MicroPython, a small Python, runs on the ESP32 and the Raspberry Pi Pico.
Which board is best for an IoT project?
For most student IoT projects, an ESP32, because Wi-Fi and Bluetooth are on the chip, according to its datasheet (opens in a new tab). An Arduino UNO R3 needs an extra module to join a network. A Raspberry Pi works well as the hub that collects data from several ESP32 boards.
Should a school buy Arduino, Raspberry Pi or ESP32 boards?
Buy for the lessons you will teach. Sensor, light, motor and automation lessons fit microcontroller boards, and a kit with plug-in sensors saves wiring time. Add one or two Raspberry Pis for camera and data projects once students have the basics.
The ESP32 can join your Wi-Fi as a station, make its own network as an access point, or do both. Learn how each mode works, why the chip only uses 2.4 GHz, and how a real kit uses both during setup.
Most ESP32 pins are free to use, but a few are wired to the flash chip, some can only read, five decide how the board starts, and the ADC2 analog pins stop working when Wi-Fi is on. This guide sorts every pin into safe, careful and avoid, then shows a real board's pin map as a worked example.
A microcontroller is a whole small computer on one chip, built to control one thing. See what is inside it, how it differs from the microprocessor in your phone or laptop, and how to pick a first board.
· 20 min read
Learn with MakerBuddy
Start building today.
Every part in these guides has its own lesson. Read them free, or get a kit for your class.