Computer engineering · also Electrical engineering, Robotics
Inside a microcontroller
A microcontroller is a small computer on a single chip. It contains a processor core, flash memory that keeps the program when power is off, RAM for working data, a clock, and peripherals such as timers, serial interfaces and analog-to-digital converters. Source code is compiled and linked into firmware, which is copied into flash, often through a bootloader. Unlike a desktop computer, a microcontroller often runs a single program with no full operating system, starts within moments of power-up and uses very little energy.
Why it mattersMost robots have at least one microcontroller close to the motors, reading sensors and driving actuators many times a second.