/ˈmaɪkroʊkənˌtroʊlər/

noun … “Compact CPU with built-in peripherals.”

Microcontroller is a small, self-contained computing device that integrates a CPU, memory (both RAM and ROM), and input/output peripherals on a single chip. Unlike general-purpose microprocessors, microcontrollers are designed for embedded systems and dedicated tasks, such as sensor control, motor driving, or user interface management. They are widely used in consumer electronics, automotive systems, industrial controllers, and Internet-of-Things (IoT) devices.

Key characteristics of Microcontroller include:

  • Integrated components: CPU, memory, timers, ADC/DAC, GPIO, and communication interfaces on one chip.
  • Low power consumption: optimized for battery-operated or energy-efficient applications.
  • Real-time operation: capable of deterministic execution for time-sensitive tasks.
  • Embedded application focus: designed for specific control or monitoring functions rather than general computing.
  • Compact form factor: suitable for small devices and single-purpose systems.

Workflow example: Reading a sensor and controlling an LED:

microcontroller.init_gpio("LED")
microcontroller.init_adc("TemperatureSensor")

while true:
    temp = microcontroller.read_adc("TemperatureSensor")
    if temp > 30:
        microcontroller.write_gpio("LED", HIGH)
    else:
        microcontroller.write_gpio("LED", LOW)

Here, the microcontroller reads a temperature sensor and controls an LED in real time, using its integrated CPU and I/O peripherals.

Conceptually, a Microcontroller is like a tiny factory manager: it monitors inputs, executes control logic, and drives outputs efficiently within a compact, self-contained environment.

See CPU, RAM, ROM, Memory Management, Embedded Systems.