Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Build products

Embedded systems and IoT cheat sheet (Arduino and ESP32)

Opens with credits

For students and early-career engineers building devices on Arduino and ESP32, from C on bare hardware to sensors, protocols, FreeRTOS and an MQTT dashboard. Snippets use the Arduino core in the Arduino IDE, with ESP-IDF named wherever it is the next step.

Curated by Tauseef Fayyaz10 chapters74 concepts138 glossary terms

Chapters

10 chapters · 74 concepts

  1. 1C for embeddedThe parts of C that matter most on hardware: exact-width integers, bitwise operations, pointers to registers, volatile and where your variables live in memory.7 concepts
  2. 2Electronics you needEnough circuit theory to wire things without smoke: Ohm's law, resistors for LEDs, dividers, logic levels, pull-ups, a shared ground and clean power.7 concepts
  3. Microcontroller basicsHow a board runs your code: the build and flash cycle, GPIO modes, debouncing, timers and PWM, interrupts and timing without blocking.8 conceptsOpens with credits
  4. Protocols: UART, I2C and SPIThe three wired buses nearly every sensor and module uses, how to wire each one and how they compare.6 conceptsOpens with credits
  5. Sensors and actuatorsReading the physical world and acting on it: datasheets, ADCs, filtering and calibration, and switching loads such as motors and relays safely.8 conceptsOpens with credits
  6. RTOS basicsRunning several jobs at once safely: the superloop, FreeRTOS tasks, queues, mutexes and semaphores, and on the Raspberry Pi, Linux threads and services.7 conceptsOpens with credits
  7. Wireless and IoTGetting data off the device: Wi-Fi, MQTT and its topics and QoS, BLE, long-range radios, security and updates in the field.10 conceptsOpens with credits
  8. Cloud dashboards for devicesWhere readings go after MQTT: a broker you run, a payload format, time-series storage, flows and dashboards, and alerts people can trust.7 conceptsOpens with credits
  9. Debugging hardwareFinding faults when the problem might be code, wiring or power: meters, logic analysers, debuggers, logs, watchdogs and brownouts.7 conceptsOpens with credits
  10. Portfolio: a working deviceTurning a prototype into proof: a power budget, low-power modes, a tidy build, a bill of materials, measured results and a write-up.7 conceptsOpens with credits
  11. 11Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.138 terms

About this sheet

C, microcontrollers, sensors, MQTT.

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com