A microcontroller is a small computer built into one chip. It usually includes a processor, memory, input/output pins, timers, and communication features for controlling electronic devices.
What microcontrollers do
Microcontrollers can read sensors, turn motors on and off, control LEDs, manage buttons, collect data, drive displays, and run simple embedded programs. They are common in appliances, toys, vehicles, tools, and smart devices.
Microcontroller versus computer processor
A microcontroller is usually designed for direct control tasks rather than running a full desktop operating system. Boards like Arduino make microcontrollers easier to learn and prototype with.
When a device has simple programmed behavior, there is often a microcontroller behind it.