So what is a microcontroller?

So, what is a microcontroller? It is an integrated circuit (computer chip) that includes a tiny processor to do the “thinking” and some memory so it can keep track of what it is doing.

Microcontrollers also have input/output pins, I/O pins for short, that can exchange electrical signals with other devices such as lights, switches, beepers, motors, and sensors.