Microcontrollers and Embedded Systems

Engineering

Dive into the world of microcontrollers — single-chip computers that power everything from washing machines to drones — and learn about GPIO, PWM, communication protocols, interrupts, and real-time operating systems.

57 XP
Reward
12
Questions
5–10 min
Time
Q1 Question 1 of 12

What is the key difference between a microcontroller and a microprocessor?

Q2 Question 2 of 12

An Arduino Uno has 32 KB of Flash memory and 2 KB of SRAM. What are these two types of memory used for?

Q3 Question 3 of 12

A microcontroller GPIO pin is configured as an output and set HIGH (5 V). A 220 Ω resistor and an LED are connected in series to ground. Approximately what current flows through the LED?

Q4 Question 4 of 12

A PWM output on a microcontroller runs at 1 kHz with a 75% duty cycle driving a motor. What is the effective average voltage on a 5 V system?

Q5 Question 5 of 12

Which communication protocol uses only 2 wires (SDA and SCL) and supports multiple devices on the same bus?

Q6 Question 6 of 12

Why are interrupts preferred over polling when responding to a button press on a microcontroller?

Q7 Question 7 of 12

What is the purpose of a watchdog timer in an embedded system?

Q8 Question 8 of 12

SPI (Serial Peripheral Interface) is often used for communicating with SD cards and displays rather than I2C. Why?

Q9 Question 9 of 12

A microcontroller's 12-bit ADC reads a temperature sensor output of 2.0 V on a 0–3.3 V reference. What is the digital reading?

Q10 Question 10 of 12

What is the role of a Real-Time Operating System (RTOS) in an embedded system?

Q11 Question 11 of 12

The Arduino Uno uses the ATmega328P running at 16 MHz. Approximately how many simple instructions can it execute per second?

Q12 Question 12 of 12

In an embedded system controlling a greenhouse, a sensor reads soil moisture every 10 seconds using I2C, and a pump is controlled via a relay on a GPIO pin. Which architecture is most appropriate?