LED BLINKING

by amateurwriter in Circuits > Microcontrollers

148 Views, 0 Favorites, 0 Comments

LED BLINKING

stm32f103-board-front-and-back_orig.jpg

In this blog we will learn to blink LED with the help of STM32 BLACKPILL BOARD

Supplies

We require the following components:

1)STM 32 Black-pill Board

2)USB Type-C

3)Arduino IDE Programmer

Getting Started With STM 32

Click New Project Or Menu -> File -> New Project.

Available Options

From Board Selector section, filter to select and use STM 32 series

STM32F103C8T6_STM32CubeMX-SYS_Mode_Configuration-800x430.png

A new window will be opened where you need to change SYS Debug to Serial Wire and RCC of High-Speed Clock or HSC to Crystal/Ceramic Resonator as shown in the below fig.

33.png

Now in the right panel as shown in the below figure, click on the pin of the chip where you want to attach the LED and I have chosen PC13. Select that particular pin where you want to blink the LED as GPIO_output by right-clicking on that pin.


STM32F103C8T6_STM32CubeMX-Clock_Configuration.png

Now in the right panel as shown in the below figure, click on the pin of the chip where you want to attach the LED and I have chosen PC13. Select that particular pin where you want to blink the LED as GPIO_output by right-clicking on that pin.


Go to System View and select GPIO then change the Maximum Output speed as High as shown below.


Downloads

Install STM 32 F4 Series in the Arduino IDE Programmer

Enter the Code in the Software

4...jpg

After installing the STM 32 F4 Series in the Arduino IDE Write the code for LED Blinking