What is a microcontroller? A microcontroller is a small computer on a single chip. One chip holds a processor, memory and pins that connect to buttons, sensors, lights and motors. It runs one program, starts the moment it gets power, and controls one thing: a microwave oven, a TV remote, a toy or a robot. Engineers often shorten the name to MCU, for microcontroller unit.
A microprocessor is different. It is only the processor. It needs separate chips for its memory and its connections, and it runs a full operating system that can open any app. Your laptop is built around a microprocessor, as IBM's comparison of the two (opens in a new tab) notes, and your phone's main chip works the same way: it runs a full operating system and its apps.
Below, you compare the two using things on your desk: the ESP32 on a MakerBuddy board and the phone or laptop that controls it. Then you try one small job and pick a first board.
What is a microcontroller? A whole computer on one chip
IBM's guide to microcontrollers vs microprocessors (opens in a new tab) puts it simply: a microcontroller is a small computer on a single chip. It combines a processor core, working memory and program memory on one piece of silicon, together with the parts that talk to the outside world.
The Computer History Museum explains why that fits. Its page on an early general-purpose microcontroller family (opens in a new tab) says a microcontroller has the same basic ROM, RAM and processor as a microprocessor. It is aimed at less demanding jobs, so the whole computer fits on one chip.
The chip designer Arm sorts its own processor designs the same way. On its CPU products page (opens in a new tab), the Cortex-M family is described as low-power processors for microcontrollers used in embedded systems and real-time control. The Cortex-A family is described as application CPUs for scalable performance across devices.
Here is a picture that helps. A laptop is like a big kitchen: a chef, a pantry, a fridge and many tools in separate cupboards. A microcontroller is like a lunchbox with a tiny chef inside. Everything it needs is packed in one box, and it only ever makes one meal, but it makes that meal reliably every time you open the lid.
A microcontroller is the brain of an embedded system. Our student's guide to embedded systems covers the whole product; this post looks at the chip.
What is inside a microcontroller
Every microcontroller has the same set of building blocks. The table uses the ESP32 as the example, with figures from Espressif's ESP32 datasheet (opens in a new tab), version 5.3. The last column shows where you meet each block on the MakerBuddy board, from the technical details page.
| Building block | Its job | On the ESP32 | Where you see it on MakerBuddy |
|---|---|---|---|
| Processor (CPU) | Follows the program's instructions one by one | One or two 32-bit Xtensa LX6 cores, up to 240 MHz | Runs your rules and reads every sensor |
| ROM | Holds start-up code that never changes | 448 KB | Starts the chip when you plug in the USB cable |
| SRAM (working memory) | Holds readings and settings while the program runs; empties when power goes | 520 KB | Holds the live readings the dashboard shows |
| Flash (program memory) | Holds the program and saved settings; keeps them with the power off | Up to 16 MB of external flash can be mapped in | Holds the MakerBuddy firmware and your saved rules |
| GPIO pins | Switch outputs and read inputs | 34 programmable GPIOs | The button, LEDs, buzzer and every plug-in socket |
| ADC | Turns a voltage into a number | 12-bit, up to 18 channels | The knob, light sensor, gas sensor and soil sensor |
| PWM | Switches a pin on and off fast to dim or steer | LED PWM up to 16 channels | Blue light brightness, colour light, servo angle |
| Timers and watchdog | Keep time and restart a stuck program | Two timer groups, each with a watchdog | The once-a-second sensor reading |
| Communication | Talks to other chips | I2C, SPI, UART and more | The text screen on I2C |
| Radio | Talks without wires | 2.4 GHz Wi-Fi, Bluetooth v4.2 and Bluetooth LE | Connects to the dashboard over Wi-Fi |
- Building block
- Processor (CPU)
- Its job
- Follows the program's instructions one by one
- On the ESP32
- One or two 32-bit Xtensa LX6 cores, up to 240 MHz
- Where you see it on MakerBuddy
- Runs your rules and reads every sensor
- Building block
- ROM
- Its job
- Holds start-up code that never changes
- On the ESP32
- 448 KB
- Where you see it on MakerBuddy
- Starts the chip when you plug in the USB cable
- Building block
- SRAM (working memory)
- Its job
- Holds readings and settings while the program runs; empties when power goes
- On the ESP32
- 520 KB
- Where you see it on MakerBuddy
- Holds the live readings the dashboard shows
- Building block
- Flash (program memory)
- Its job
- Holds the program and saved settings; keeps them with the power off
- On the ESP32
- Up to 16 MB of external flash can be mapped in
- Where you see it on MakerBuddy
- Holds the MakerBuddy firmware and your saved rules
- Building block
- GPIO pins
- Its job
- Switch outputs and read inputs
- On the ESP32
- 34 programmable GPIOs
- Where you see it on MakerBuddy
- The button, LEDs, buzzer and every plug-in socket
- Building block
- ADC
- Its job
- Turns a voltage into a number
- On the ESP32
- 12-bit, up to 18 channels
- Where you see it on MakerBuddy
- The knob, light sensor, gas sensor and soil sensor
- Building block
- PWM
- Its job
- Switches a pin on and off fast to dim or steer
- On the ESP32
- LED PWM up to 16 channels
- Where you see it on MakerBuddy
- Blue light brightness, colour light, servo angle
- Building block
- Timers and watchdog
- Its job
- Keep time and restart a stuck program
- On the ESP32
- Two timer groups, each with a watchdog
- Where you see it on MakerBuddy
- The once-a-second sensor reading
- Building block
- Communication
- Its job
- Talks to other chips
- On the ESP32
- I2C, SPI, UART and more
- Where you see it on MakerBuddy
- The text screen on I2C
- Building block
- Radio
- Its job
- Talks without wires
- On the ESP32
- 2.4 GHz Wi-Fi, Bluetooth v4.2 and Bluetooth LE
- Where you see it on MakerBuddy
- Connects to the dashboard over Wi-Fi
Two rows deserve a closer look. The ADC, or analog-to-digital converter, is what lets a microcontroller read a turning knob. The datasheet says the ESP32 has two 12-bit ADCs, so a voltage becomes a number from 0 to 4095. Our guide to analog vs digital signals explains why that matters.
The flash row has a small surprise. Most ESP32 chips keep their program in a separate flash chip. Section 4.1.3 of the datasheet says the ESP32 supports external flash and reads it through high-speed caches. On many ESP32 boards, both chips sit together under one metal cover called a module. Espressif's ESP32-WROOM-32E module datasheet (opens in a new tab), for example, lists 4, 8 or 16 MB of flash inside the module. So the "one chip" rule is really "one small package" on many modern boards.

How a microcontroller works: read, decide, act, repeat
A microcontroller does not wait for you to open an app. When power arrives, it starts the program in its memory and keeps running it until the power goes.
The program follows a loop that you can say in four words: read, decide, act, repeat.
- 1
Read.
The chip checks its inputs. A pin is high or low for a button. The ADC turns the knob's voltage into a number.
- 2
Decide.
The processor runs the instructions in the program. Is the temperature above 30? Is the button pressed?
- 3
Act.
The chip sets its outputs. It switches a pin to turn on the buzzer, or changes a PWM signal to dim a light.
- 4
Repeat.
Then it goes round again, many times a second.
A clock keeps all of this in step. Each tick lets the processor move one small step through its work. The ESP32's clock can run at up to 240 MHz, which is 240 million ticks a second, according to its datasheet (opens in a new tab).
This is exactly how the MakerBuddy board behaves. Its firmware reads the sensors once a second, checks your rules, and drives the outputs. The rules documentation says rules run on the board itself, even when no dashboard is open. Lesson 1 names the loop Input, Process, Output, and Lesson 2 finds each part of it on the board: the sensors are the inputs, the ESP32 is the brain, and the lights, buzzer and motor respond.
Microcontroller vs microprocessor: the key differences
A microprocessor is a processor on one chip, and only the processor. The Computer History Museum dates the idea to 1971, when Intel put the 2,300 transistors of its 4004 into one small package, as its page on the first single-chip CPU (opens in a new tab) explains. Modern microprocessors are far bigger, but the idea holds: the chip thinks, and other chips do the remembering and the connecting.
The Raspberry Pi 5 (opens in a new tab) shows the pattern clearly. Its processor is a Broadcom BCM2712 with four 64-bit Arm Cortex-A76 cores at 2.4 GHz. Its working memory is a separate LPDDR4X chip, from 1 GB to 16 GB. Its pins are run by another chip, the RP1 input and output controller. Three chips do the work that one ESP32 does on a much smaller scale.
| Microcontroller (ESP32) | Microcontroller (ATmega328P on an Arduino UNO R3) | Microprocessor (Raspberry Pi 5) | |
|---|---|---|---|
| What is on the chip | Processor, ROM, SRAM, GPIO, ADC, timers, Wi-Fi and Bluetooth | Processor, flash, SRAM, GPIO, ADC, timers | Processor cores; memory and pin control are separate chips |
| Clock speed | Up to 240 MHz | 16 MHz | 2.4 GHz |
| Working memory | 520 KB | 2 kB | 1 GB to 16 GB |
| Program memory | External flash, often inside the module | 32 kB flash on the chip | A memory card or drive |
| Operating system | Usually none, or a small real-time one | None | Raspberry Pi OS |
| Power | 5 V USB on a DevKit; 10 µA in Deep-sleep | 5 V USB | Asks for a 5 V, 5 A USB-C supply |
| Typical job | One control job, with Wi-Fi | One control job | A full computer: apps, video, desktop |
- What is on the chip
- Microcontroller (ESP32)
- Processor, ROM, SRAM, GPIO, ADC, timers, Wi-Fi and Bluetooth
- Microcontroller (ATmega328P on an Arduino UNO R3)
- Processor, flash, SRAM, GPIO, ADC, timers
- Microprocessor (Raspberry Pi 5)
- Processor cores; memory and pin control are separate chips
- Clock speed
- Microcontroller (ESP32)
- Up to 240 MHz
- Microcontroller (ATmega328P on an Arduino UNO R3)
- 16 MHz
- Microprocessor (Raspberry Pi 5)
- 2.4 GHz
- Working memory
- Microcontroller (ESP32)
- 520 KB
- Microcontroller (ATmega328P on an Arduino UNO R3)
- 2 kB
- Microprocessor (Raspberry Pi 5)
- 1 GB to 16 GB
- Program memory
- Microcontroller (ESP32)
- External flash, often inside the module
- Microcontroller (ATmega328P on an Arduino UNO R3)
- 32 kB flash on the chip
- Microprocessor (Raspberry Pi 5)
- A memory card or drive
- Operating system
- Microcontroller (ESP32)
- Usually none, or a small real-time one
- Microcontroller (ATmega328P on an Arduino UNO R3)
- None
- Microprocessor (Raspberry Pi 5)
- Raspberry Pi OS
- Power
- Microcontroller (ESP32)
- 5 V USB on a DevKit; 10 µA in Deep-sleep
- Microcontroller (ATmega328P on an Arduino UNO R3)
- 5 V USB
- Microprocessor (Raspberry Pi 5)
- Asks for a 5 V, 5 A USB-C supply
- Typical job
- Microcontroller (ESP32)
- One control job, with Wi-Fi
- Microcontroller (ATmega328P on an Arduino UNO R3)
- One control job
- Microprocessor (Raspberry Pi 5)
- A full computer: apps, video, desktop
The figures come from Espressif's ESP32 datasheet (opens in a new tab), Arduino's UNO R3 datasheet (opens in a new tab) and the Raspberry Pi 5 product page (opens in a new tab). The memory row shows the gap best. The smallest Raspberry Pi 5 has about 2,000 times the working memory of an ESP32, and the ESP32 has 260 times the working memory of an UNO R3.
IBM's comparison page (opens in a new tab) adds three more differences:
- Cost and power. Microcontrollers are small, cheap and low-power. Microprocessors cost more and use more power.
- What they need around them. A microcontroller works without extra chips or a complex operating system. A microprocessor needs both.
- How memory is wired. Microcontrollers usually keep separate paths for instructions and data, called a Harvard design. Microprocessors usually share one path, called a von Neumann design.

The two sides on your desk: the ESP32 and your phone or laptop
The microcontroller side is the ESP32 on the board. The technical details page describes the board's brain as a 30-pin ESP32 DevKit, powered with 5 V through its micro-USB port. It reads the knob, the light sensor and the plug-in sensors, runs your rules, and drives the lights, buzzer, servo, relay (for low-voltage things only) and text screen.
The microprocessor side is the phone, tablet or laptop that shows the dashboard. Its processor runs an operating system, a web browser and the dashboard page. It draws the buttons and graphs, and it sends your commands to the board over Wi-Fi. A laptop, an iPhone or an iPad does this in a browser, and an Android phone does it with the free MakerBuddy app, as the dashboard guide explains.
The work is split.
- The laptop or phone is the window. It shows readings and lets you switch things. Close it, and the window closes.
- The ESP32 is the worker. Your rules live on the board. They keep running with no dashboard open, as the rules documentation explains.
A smart thermostat works the same way: a microcontroller on the wall does the controlling, and a phone app gives you a screen.
The split also explains some limits. The board has no clock, so it cannot run a rule at 8 am; it can only count intervals, which Lesson 25 teaches with Timer mode. Your laptop knows the time because its operating system keeps it. The ESP32 on the board only knows how long it has been running.
Where the line blurs: SoCs, modules and boards with both
Real chips do not always fit two neat boxes. Three cases confuse beginners.
The ESP32 calls itself a SoC
Espressif's datasheet (opens in a new tab) calls the ESP32 a SoC, short for system on a chip, and calls its cores "microprocessors". That is not a contradiction. A SoC is any chip that puts a whole system on one piece of silicon. The cores are processor cores, and the full chip, with memory, pins and radio around them, works as a microcontroller: one program, controlling hardware directly. Phone chips are SoCs too, but built around application processors that run a full operating system.
Some microcontrollers keep flash outside the chip
The Raspberry Pi Pico is built on the RP2040, which Raspberry Pi's Pico product page (opens in a new tab) calls a microcontroller chip. It has a dual-core Arm Cortex-M0+ at up to 133 MHz and 264 kB of SRAM on the chip, but the 2 MB of flash sits on the board beside it. It is still a microcontroller, because it runs one program and controls pins directly.
Some boards carry both
The Arduino UNO Q puts both kinds of chip on one board. Arduino's UNO Q page (opens in a new tab) describes a Qualcomm Dragonwing QRB2210 microprocessor, four Arm Cortex-A53 cores at 2.0 GHz running Debian Linux, next to an STM32U585 microcontroller, an Arm Cortex-M33 at up to 160 MHz running Arduino sketches. The Linux side handles heavy computing. The microcontroller side handles the pins in real time. It is the desk split from the last section, squeezed onto one board.
Worked example: one job on a microcontroller, three ways
The job: make the knob control how bright the blue light is. It is the simplest read, decide, act loop, and it shows what a microcontroller does well and a laptop cannot do.
Way 1: no code, with the knob link
The MakerBuddy dashboard has a setting that links the knob to a part. The knob settings guide says the knob can control the blue light's brightness, the colour light, the servo angle, or nothing. Pick the blue light, turn the knob, and the light follows.
Inside the board, the firmware does three things each time it reads the sensors. It reads the knob with the ADC, which gives a number from 0 to 4095. It scales that to a brightness from 0 to 255. Then it sets the light. This happens with the once-a-second sensor reading, so the light catches up with the knob about once a second.
The link resets to nothing after each restart, so choose it again.
Way 2: your own Arduino sketch
The same job in Arduino code runs much faster, because nothing else is competing for the loop. The pin numbers come from the technical details page: the knob is on GPIO 34 and the blue light on GPIO 12.
// Knob to blue light: a microcontroller doing one job, fast
const int KNOB_PIN = 34; // the knob: an ADC1 pin, so it still works with Wi-Fi on
const int LED_PIN = 12; // the blue light
void setup() {
Serial.begin(115200); // open the Serial Monitor at 115200
}
void loop() {
int raw = analogRead(KNOB_PIN); // read: 0 to 4095 on the ESP32
int brightness = map(raw, 0, 4095, 0, 255); // decide: scale to 0 to 255
analogWrite(LED_PIN, brightness); // act: PWM sets the brightness
Serial.print("knob ");
Serial.print(raw);
Serial.print(" -> light ");
Serial.println(brightness);
delay(20); // repeat: about 50 times a second
}What each part does:
- `analogRead(KNOB_PIN)` uses the chip's ADC. Espressif's Arduino-ESP32 ADC reference (opens in a new tab) gives the default resolution as 12 bits, so the number runs from 0 to 4095.
- `map(raw, 0, 4095, 0, 255)` scales one range onto another. The MakerBuddy firmware uses the same line for its knob link.
- `analogWrite(LED_PIN, brightness)` uses PWM to dim the light. The MakerBuddy firmware source (opens in a new tab) drives the blue light with the same call.
- `delay(20)` waits 20 milliseconds, so the loop runs about 50 times a second. Turn the knob and the light follows almost at once.
If you have not set up the Arduino IDE for the ESP32 yet, our ESP32 guide for beginners walks through it.
Way 3: do the clock maths
How much work can the chip do between two passes of that loop? Work it out from the clock speed.
| Chip | Clock | Time for one tick | Ticks in one 20 ms pass |
|---|---|---|---|
| ESP32 | 240 MHz | about 4.2 nanoseconds | 4,800,000 |
| ATmega328P (Arduino UNO R3) | 16 MHz | 62.5 nanoseconds | 320,000 |
| BCM2712 (Raspberry Pi 5) | 2.4 GHz | about 0.42 nanoseconds | 48,000,000 |
- Chip
- ESP32
- Clock
- 240 MHz
- Time for one tick
- about 4.2 nanoseconds
- Ticks in one 20 ms pass
- 4,800,000
- Chip
- ATmega328P (Arduino UNO R3)
- Clock
- 16 MHz
- Time for one tick
- 62.5 nanoseconds
- Ticks in one 20 ms pass
- 320,000
- Chip
- BCM2712 (Raspberry Pi 5)
- Clock
- 2.4 GHz
- Time for one tick
- about 0.42 nanoseconds
- Ticks in one 20 ms pass
- 48,000,000
The clock speeds come from the ESP32 datasheet (opens in a new tab), the UNO R3 datasheet (opens in a new tab) and the Raspberry Pi 5 page (opens in a new tab). Here is the working for the ESP32:
- 1
240 MHz means 240,000,000 ticks every second.
- 2
One tick takes 1 ÷ 240,000,000 seconds, which is about 0.0000000042 seconds, or 4.2 nanoseconds.
- 3
20 ms is 0.02 seconds, so one pass of the loop gives 240,000,000 × 0.02 = 4,800,000 ticks.
A tick is not one whole instruction, so treat these as rough sizes. Still, reading one knob and setting one light uses a tiny part of the time. That is why a cheap microcontroller is enough for a control job, and a Raspberry Pi 5's speed only pays off for heavy work like video.
What about the laptop?
Now try the same job on a laptop alone. There is nowhere to plug the knob in. A laptop's ports speak USB, Wi-Fi and Bluetooth; it has no pin that reads a voltage. To read a knob, you would connect a microcontroller board to the laptop and let it do the reading.

Best microcontroller for beginners: how to choose
For a beginner, the board and the help around it matter more than the chip. Here are three common starting points. The figures come from Arduino's UNO R3 datasheet (opens in a new tab) and UNO R3 page (opens in a new tab), Espressif's ESP32 datasheet (opens in a new tab) and Raspberry Pi's Pico page (opens in a new tab). The languages row comes from the Arduino CLI build notes (opens in a new tab), Espressif's Arduino-ESP32 (opens in a new tab) and ESP-IDF (opens in a new tab) references and the MicroPython ESP32 quick reference (opens in a new tab).
| Arduino UNO R3 | ESP32 DevKit | Raspberry Pi Pico | |
|---|---|---|---|
| Microcontroller | ATmega328P, 16 MHz | ESP32, up to 240 MHz | RP2040, dual-core, up to 133 MHz |
| Working memory | 2 kB | 520 KB | 264 kB |
| Pins | 14 digital (6 PWM), 6 analog | Up to 34 GPIOs on the chip; a 30-pin DevKit brings out fewer | 26 GPIO, 3 analog |
| Signal voltage | 5 V | 3.3 V | 3.3 V |
| Wi-Fi | No | Yes, 2.4 GHz, plus Bluetooth | Only on the Pico W |
| Languages | Arduino C++ | Arduino C++, MicroPython, ESP-IDF | C, MicroPython |
| Best first project | Blink an LED, read a sensor, 5 V modules | Anything you want to see on a phone or laptop | MicroPython lessons and cheap experiments |
- Microcontroller
- Arduino UNO R3
- ATmega328P, 16 MHz
- ESP32 DevKit
- ESP32, up to 240 MHz
- Raspberry Pi Pico
- RP2040, dual-core, up to 133 MHz
- Working memory
- Arduino UNO R3
- 2 kB
- ESP32 DevKit
- 520 KB
- Raspberry Pi Pico
- 264 kB
- Pins
- Arduino UNO R3
- 14 digital (6 PWM), 6 analog
- ESP32 DevKit
- Up to 34 GPIOs on the chip; a 30-pin DevKit brings out fewer
- Raspberry Pi Pico
- 26 GPIO, 3 analog
- Signal voltage
- Arduino UNO R3
- 5 V
- ESP32 DevKit
- 3.3 V
- Raspberry Pi Pico
- 3.3 V
- Wi-Fi
- Arduino UNO R3
- No
- ESP32 DevKit
- Yes, 2.4 GHz, plus Bluetooth
- Raspberry Pi Pico
- Only on the Pico W
- Languages
- Arduino UNO R3
- Arduino C++
- ESP32 DevKit
- Arduino C++, MicroPython, ESP-IDF
- Raspberry Pi Pico
- C, MicroPython
- Best first project
- Arduino UNO R3
- Blink an LED, read a sensor, 5 V modules
- ESP32 DevKit
- Anything you want to see on a phone or laptop
- Raspberry Pi Pico
- MicroPython lessons and cheap experiments
Ask yourself three questions before you choose.
- 1
Do you want to see readings on a phone or laptop?
Then pick a board with Wi-Fi, like the ESP32. Our comparison of the ESP32 vs the Arduino UNO goes deeper.
- 2
Do you want to start without code?
A bare board needs code from the first minute. A kit like MakerBuddy starts with a dashboard and rules, and the 32 free lessons in the MakerBuddy curriculum add code later.
- 3
Do your parts use 5 V signals?
Many older sensor modules do. They suit a 5 V board, and need care on a 3.3 V one. Our guide to 3.3 V vs 5 V logic explains why.
There is an honest case against a microcontroller, too. If your project needs a camera feed, video, a desktop or a large AI model, a microcontroller is the wrong tool. Pick a single-board computer such as a Raspberry Pi instead, and our guide to Arduino, Raspberry Pi and ESP32 matches each board to a project.
If you want to start with the ESP32 and no wiring, the MakerBuddy kit for students puts the ESP32, six built-in parts and nine plug-in sensors and outputs on one board.
Common mistakes when you first use a microcontroller
Your readings vanish when you unplug the board
Symptom: Numbers you collected while the board ran are gone after a restart.
Cause: Readings sit in SRAM, the working memory, and SRAM empties when the power goes. Only flash keeps its contents with the power off.
Fix: Save what you must keep in flash, or send it somewhere else. The MakerBuddy firmware saves your rules in flash and loads them again at start-up, which is why rules survive a restart and live readings do not.
A 5 V sensor signal goes straight into a 3.3 V pin
Symptom: Odd readings, a hot chip, or a pin that stops working.
Cause: The ESP32 runs at 3.3 V. Table 5-3 of its datasheet (opens in a new tab) puts the highest input level on a pin at the 3.3 V supply plus 0.3 V, so a 5 V signal is well over the limit. Raspberry Pi's GPIO documentation (opens in a new tab) warns that its 3.3 V pins are not 5 V tolerant, and the same care applies to any 3.3 V microcontroller.
Fix: Bring the signal down to 3.3 V with a voltage divider or a level shifter before it reaches the pin.
An analog sensor reads nothing once Wi-Fi starts
Symptom: The sensor works in a simple sketch, then stops once you add Wi-Fi.
Cause: Espressif's GPIO reference (opens in a new tab) says ADC2 pins cannot be used when Wi-Fi is used.
Fix: Use an ADC1 pin. On MakerBuddy, all four analog inputs, including the knob on GPIO 34, sit on ADC1 pins for this reason.
The dashboard disappears after you upload a sketch
Symptom: The board no longer joins the dashboard, and your rules are gone.
Cause: A microcontroller runs one program at a time. Your sketch replaced the MakerBuddy firmware.
Fix: Upload the firmware again by following the updating guide.
A button press gets missed
Symptom: You press the button and nothing happens, but only sometimes.
Cause: The loop is stuck in a long delay(). While it waits, it is not reading anything.
Fix: Keep delays short, or check the time with millis() and let the loop keep running.
You expect a rule to start at a set time
Symptom: You look for a way to run a rule at 7 am and cannot find one.
Cause: The MakerBuddy board has no clock that knows the time of day. Its firmware only counts time since the board started.
Fix: Use intervals instead. Timer mode repeats a rule every so many seconds or minutes, as Lesson 25 shows.
FAQ
Is Arduino a microcontroller?
Arduino is not a chip; it is a platform of boards and software. Arduino's own What is Arduino page (opens in a new tab) calls it an open-source electronics platform and says you tell the board what to do by sending instructions to the microcontroller on it. The classic Arduino UNO R3 carries an ATmega328P microcontroller, so it is fair to call it a microcontroller board.
Is a CPU a microcontroller?
No. A CPU is the part that runs instructions. A microcontroller contains a CPU plus memory, pins and other parts on the same chip, as IBM's microcontroller vs microprocessor guide (opens in a new tab) explains. A microprocessor is a CPU on its own chip that needs other chips around it.
Is the ESP32 a microcontroller or a microprocessor?
It is used as a microcontroller. Espressif's ESP32 datasheet (opens in a new tab) calls the ESP32 a system on a chip, with one or two Xtensa LX6 "microprocessor" cores, but the chip also carries its own SRAM, pins, ADC, timers and Wi-Fi radio, and it runs one program that controls hardware directly. That is what a microcontroller does.
Can I run Python on a microcontroller?
Yes, on the bigger ones. MicroPython is a small version of Python built for microcontrollers, and it has a quick reference for the ESP32 (opens in a new tab). The Raspberry Pi Pico (opens in a new tab) is programmable in C and MicroPython. Our guide to MicroPython vs Arduino C helps you choose.
Do microcontrollers use C or C++?
Both are common. An Arduino sketch is C++: the Arduino CLI build notes (opens in a new tab) explain that the IDE turns a sketch into a C++ program and compiles it with gcc and g++. Chip makers' own tools are often written in C. The MakerBuddy firmware is written in Arduino C++.
How much does a microcontroller cost?
The chips themselves are cheap, which is why they are in so many products. The Computer History Museum notes that Texas Instruments' first TMS 1000 microcontrollers (opens in a new tab) were priced at $2 in volume in 1974. Today a ready-made board costs more than the chip: Raspberry Pi lists the Pico series (opens in a new tab) from $4.
What are some examples of microcontrollers?
The ATmega328P on the Arduino UNO R3, the ESP32 on many Wi-Fi boards including MakerBuddy, the RP2040 on the Raspberry Pi Pico and the STM32U585 on the Arduino UNO Q. Inside everyday products, microcontrollers run microwave ovens, toys and remote controls, as the Computer History Museum (opens in a new tab) and IBM (opens in a new tab) note. An early family, Texas Instruments' TMS 1000 from 1974, went into calculators, garage door openers and the Speak and Spell.
What is the difference between a chip and a microprocessor?
"Chip" is the everyday word for any integrated circuit: a memory chip, a sensor chip and a microcontroller are all chips. A microprocessor is one kind of chip, the one that holds a computer's processor. Intel's 4004 from 1971, with 2,300 transistors, is the early example the Computer History Museum (opens in a new tab) describes.
Which is the best microcontroller for beginners?
There is no single best one. Pick the ESP32 if you want Wi-Fi and to see readings on a phone or laptop, an Arduino UNO R3 if your parts use 5 V, and a Raspberry Pi Pico if you want to learn MicroPython cheaply. More guides like this one are on the MakerBuddy blog.
Sources
- IBM: Microcontrollers vs. microprocessors, what's the difference? (opens in a new tab)
- Computer History Museum: 1974, General-Purpose Microcontroller Family is Announced (opens in a new tab)
- Computer History Museum: 1971, Microprocessor Integrates CPU Function onto a Single Chip (opens in a new tab)
- Arm: CPU processor products (Cortex-A, Cortex-R, Cortex-M) (opens in a new tab)
- Espressif: ESP32 Series Datasheet, version 5.3 (PDF) (opens in a new tab)
- Espressif: ESP32-WROOM-32E and ESP32-WROOM-32UE datasheet (PDF) (opens in a new tab)
- Espressif: ESP-IDF GPIO and RTC GPIO reference (opens in a new tab)
- Espressif: Arduino-ESP32 ADC API reference (opens in a new tab)
- Arduino: What is Arduino? (opens in a new tab)
- Arduino: UNO R3 datasheet (PDF) (opens in a new tab)
- Arduino: UNO Rev3 product page (opens in a new tab)
- Arduino: UNO Q product page (opens in a new tab)
- Arduino CLI: sketch build process (opens in a new tab)
- Raspberry Pi: Raspberry Pi 5 product page (opens in a new tab)
- Raspberry Pi: Raspberry Pi Pico product page (opens in a new tab)
- Raspberry Pi: Raspberry Pi computers documentation, GPIO (opens in a new tab)
- MicroPython: quick reference for the ESP32 (opens in a new tab)
- MakerBuddy firmware source, MakerBuddy.ino (GitHub) (opens in a new tab)




