
Microcontroller Tutorials with Code from Scratch
Controllerstech.com is dedicated to teaching STM32, ESP32, and embedded systems through practical, hands-on tutorials. All examples are built from scratch using datasheets and reference manuals, and every project is tested on real hardware to ensure accuracy and reliability. The goal is to help you gain complete control, deep understanding, and the confidence to build real-world embedded applications.
This guide walks you through connecting and programming a 16×2 I2C LCD with STM32 using…
Learn how to display an analog clock on the GC9A01 round display using STM32 and…
Learn how to interface the GC9A01 round TFT display with STM32 via SPI and implement…
Step-by-step guide to interface an SD card with STM32 using SDIO peripheral and DMA. Covers…
Learn how to interface SD card with STM32 via SPI using HAL, DMA & FATFS….
Learn how to interface the GP2Y0A41SK0F IR distance sensor with STM32 using ADC. Includes circuit…
Learn how to interface the AHT20 temperature and humidity sensor with STM32 using I2C. Includes…
Implement OTA (Over‑The‑Air) firmware updates on STM32 using the Mongoose Ethernet library. Learn setup, HTTP…
Master ESP32 SPI Part 2: Configure bus to read data from a W25Q flash slave, retrieve…
Learn how to configure ESP32 SPI as master, initialize the bus & device, and transmit…
Learn how to read and write data to the MPU6050 accelerometer via I2C on ESP32…
Learn how to interface a PCF8574‑based I2C LCD1602 with ESP32 using ESP‑IDE. Complete wiring guide,…
Learn how to control an ESP32 LED over UART using ESP‑IDF. Covers UART2 setup, cross‑wiring…
This guide teaches you how to set up UART communication on ESP32 using ESP-IDF, including…