Step-by-step guide to interface an SD card with STM32 using SDIO peripheral and DMA. Covers CubeMX setup, SDIO 4Bit config, and read/write file operations.
Microcontroller Tutorials with Code from Scratch
Learn STM32, ESP32, and embedded systems by writing code from scratch using datasheets and reference manuals. All tutorials are tested on actual hardware to help you build reliable, real-world projects with full control and understanding.
What’s New in STM32
Interface SD Card with STM32 via SPI+DMA
Step-by-step guide to interface an SD card with STM32 using SPI and DMA. Covers CubeMX setup, FATFS init, SPI‑DMA config, and read/write file operations.
GP2Y0A41SK0F STM32 ADC Distance Measurement Guide
Learn how to interface the GP2Y0A41SK0F IR distance sensor with STM32 using ADC. Includes circuit diagram, code example, and distance measurement explanation.
Interface AHT20 Sensor with STM32 Using I2C
Learn how to interface the AHT20 temperature and humidity sensor with STM32 using I2C. Includes circuit diagram, datasheet-based code, and project files.
STM32 Ethernet with Mongoose | Part 4 OTA Update
Implement OTA (Over‑The‑Air) firmware updates on STM32 using the Mongoose Ethernet library. Learn setup, HTTP transfer, and safe flashing.
STM32 Ethernet with Mongoose | Part 3 Weather Station
Create a weather station using STM32 and the Mongoose library. Learn to read sensor data and serve it over Ethernet via a dynamic web interface.
What’s New in ESP32
ESP32 SPI LCD Touch Interface | Add Touch to Your Display
Learn how to add a touch interface to an SPI LCD using ESP32. Step-by-step guide with code and circuit to create interactive touch-enabled displays.
ESP32 SPI LCD with Graphics using LVGL
Learn to interface an SPI LCD with ESP32 and display graphics using the LVGL library. This guide includes code, setup, and working demo to enhance your project.
Interface SPI LCD with ESP32 – Step-by-Step Guide
Learn how to connect and program an SPI LCD with ESP32 using Espressif IDE. Includes wiring, code, and display tips for your embedded projects.
ESP32 ADC | PART 2 ADC Continuous Mode Guide
Learn to configure ESP32 ADC in continuous mode using DMA and interrupts in ESP‑IDF. Includes code setup, callback, and data handling.
ESP32 ADC One‑Shot Mode Tutorial – Read Multiple Channels
Learn ESP32 ADC one-shot mode to read multiple ADC1/ADC2 channels, configure attenuation & calibration in ESP-IDF, and display raw & voltage readings.
ESP32 SPI Tutorial Part 3: W25Q Flash Read/Write Guide
Master ESP32 SPI Part 3: Learn to write and read data from W25Q flash memory using Espressif-IDF. Includes code walkthrough and downloadable project.
What’s New in AVR
AVR #8. I2C Master PART 4 || Read data from Slave
This tutorial covers how to use the AVR MCU as the I2C Master and read data from the I2C slave. We will use the AT24C256 EEPROM as the slave.
AVR #7. I2C Master PART 3 || Interface LCD1602 via I2C
This tutorial covers how to use the AVR MCU as the I2C Master and send data to the LCD1602, which is connected via PCF8574 using the I2C…
AVR #6. I2C Master PART 2 || comm. with Slave Device
This tutorial covers how to configure the AVR MCU as the I2C Master. We will transmit the data to the PCF8574 and control LEDs connected to..
AVR #5. I2C Master PART 1 || Configuration
This tutorial covers how to configure the AVR MCU as the I2C Master. We will also transmit the data to the slave device on the I2C Bus…
AVR #4. How to receive data via UART || Interrupt
This tutorial covers how to configure UART in AVR MCU, and how to receive the data via the uart using the interrupt..
AVR #3. How to Configure UART & Send Data
This tutorial covers how to configure UART in AVR MCU, and how to transmit a single byte or the entire string via the UART…