Raspberry Pi is a small but powerful computer with its own operating system that can run multiple applications, while microcontrollers are simpler devices designed for specific tasks like controlling lights or sensors, often used in automation.