
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.
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…
Create a weather station using STM32 and the Mongoose library. Learn to read sensor data…
Build a web server on STM32 using the Mongoose library. Learn how to serve web…
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…
Learn how to interface the AHT20 sensor with Arduino to measure temperature and humidity, and…
Learn how to interface the SHT21 temperature and humidity sensor with Arduino. This tutorial shows…
Learn how to interface DHT11 and DHT22 sensors with Arduino to measure temperature and humidity….
In this tutorial you will learn how to Interface W25Q Flash with Arduino using SPI….
Learn how to interface the AT25C256 EEPROM with Arduino using I2C. This tutorial covers circuit…
Learn how to use the MAX7219 7-segment display with Arduino to show text and numbers….
In this tutorial, you’ll learn how to interface the SH1106 1.3″ I2C OLED display with…
This tutorial explains how to connect and program the 1.8-inch ST7735 TFT display with Arduino….