Index

Topics (start here for exam queries)

Concepts

  • ohms-law — V = IR; derived forms for LED resistor calc
  • kirchhoffs-law — sum of voltages in loop = 0; V_source = sum of V_drops
  • adc — analog-to-digital conversion; sampling rate, bit resolution; Grove Hat = 12-bit
  • gpio — 40-pin digital I/O on Pi; 3.3V logic; 16mA max per pin; no native ADC
  • pwm — duty cycle; simulates analog; LED dimming + servo control
  • spi — synchronous serial; 4 wires; full-duplex; CS active LOW; fast
  • i2c — synchronous; 2 wires (SDA+SCL); up to 1008 devices; hex address; smbus2
  • uart-serial — asynchronous; 2 wires (TX+RX); no clock; agree on baud rate; pySerial
  • mqtt-broker — routes pub/sub messages; stores retained; handles LWT and sessions
  • telemetry — sensor data sent D2C to cloud; time-series; use D2C messages not twin
  • pub-sub — decoupled messaging pattern; publisher/broker/subscriber
  • qos — MQTT delivery: 0=fire&forget, 1=at-least-once, 2=exactly-once
  • venv — isolated Python env; required for pip on Debian Bookworm+; sudo $(which python)
  • asyncio — concurrent I/O; event loop; coroutines; tasks; gather; one thread

Sources (per raw file)