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
STM32 SD Card Interface via SPI and DMA | Read, Write, FATFS + CubeMX
Learn how to interface SD card with STM32 via SPI using HAL, DMA & FATFS. Includes CubeMX setup, file read/write code, CSV parsing, and benchmarks.
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.
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.
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.
What’s New in ESP32
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.
ESP32 SPI Tutorial Part 2: Read Data from Slave
Master ESP32 SPI Part 2: Configure bus to read data from a W25Q flash slave, retrieve its ID, and access downloadable project files. Step-by-step guide.
ESP32 SPI Tutorial Part 1: Configure & Transmit
Learn how to configure ESP32 SPI as master, initialize the bus & device, and transmit data using Espressif-IDE. Step-by-step guide in this Part 1 SPI tutorial.
How to Read & Write MPU6050 with ESP‑IDE | I2C PART 2
Learn how to read and write data to the MPU6050 accelerometer via I2C on ESP32 using ESP‑IDF. Includes wiring, config, master init & read/write code.
How to Interface LCD1602 via I2C on ESP32 with ESP‑IDE
Learn how to interface a PCF8574‑based I2C LCD1602 with ESP32 using ESP‑IDE. Complete wiring guide, address setup, init & string‑display code.
What’s New in AVR
AVR #2. How to use input button || Ext. Interrupt
This tutorial covers how to read the Input button in AVR with and without using the Interrupt. We will also blink a LED in response to the…
ATtiny817 Xplained mini || Clock setup || LED Blink
This tutorial covers how to setup the first project in the microchip atudio for the AVR ATtiny817 xplained mini board and blink the LED..