Home / Tutorials / STM32 Tutorial

STM32 Tutorial

Generating Sine, Triangular, and Sawtooth Waveforms using STM32F4 DAC

STM32F4 Waveform Generation using DAC

The STM32F4 microcontroller series is popular in embedded systems applications due to its powerful features. One of its key peripherals is the Digital-to-Analog Converter (DAC), which enables the generation of analog waveforms. In this article, I will show you how to generate sine, triangular, and sawtooth waveforms using the STM32F4 …

Read More »

Sending and Receiving Data over STM32 USB

STM32F407VE black board features

The serial port is the most usual comm channel between a microcontroller and a computer. However, the different voltage levels and loss of the RS-232 port in modern computers led to the use of USB-TLL converter chips like CH340, CP2102, etc. This is what happens in the NodeMCU ESP8266 and …

Read More »

STM32F1 Serial Port and printf()

STM32F1 serial output

Needless to say, a serial output is a necessary tool in debugging embedded system applications. Placing the right messages in the right place will help you save hours in figuring out what went wrong in your code. Arduino programmers are very familiar with Serial. print() and its derivatives. But how can …

Read More »

Programming the STM32F407VE Black Board

STM32F407VE black board features

I just got my hands on a STM32F407VET black development board from China and was excited about the possible projects I can build with it. To my demise, there’s not much information about programming the board so I had to find that out by myself. This post is for those …

Read More »

A Beginner’s Guide to Making a STM32 Board

STM32 Printed Circuit Board

If you’re looking to learn how to make your own electronic devices at home, it’s important to understand that you’re going to need two things: a microprocessor and the microprocessor board to put it on. In an earlier post, we taught you how to program the PIC16F84A — sometimes known as …

Read More »

Getting Started with Blue Pill and STM32Cube

Arduino is easy to use but that’s at the expense of numerous features, the most glaring of them is speed. Hence you would rarely see an Arduino in an embedded, industrial setting. ARM Cortex-M microcontrollers are low-cost, energy-efficient 32-bit devices with up to 2 DMIPS/MHz. They are the microcontroller of …

Read More »

STM32 Nucleo Serial Communication

STM32 Nucleo

Debugging through the serial port is one of the ways to find errors in your code. In this tutorial, I’ll show you how to add serial communication function to your STM32 Nucleo board.

Read More »

Input and Output with STM32 Nucleo

STM32 Nucleo

We managed to blink an LED in the previous tutorial. This time, still featuring the STM32F1 Nucleo, we will add a button that will control the attached LED and a simple clap switch.

Read More »

Blink a LED with STM32 Nucleo

STM32 Nucleo

On the previous tutorial, we managed to create our first program with the STM32 Nucleo board. Now we will dig deeper on the pinout and other functionalities of the board.

Read More »