Blinking of an External LED Using Stm32(Black Pill)

by Prateek Thapar in Circuits > Microcontrollers

18 Views, 0 Favorites, 0 Comments

Blinking of an External LED Using Stm32(Black Pill)

highdef.jpg

Blinking of an external LED using stm32(Black pill) using STMCubeIDE Software.

Supplies

  • STM-32 black pill
  • jumper wires
  • LED
  • USB - C cable
  • STM-32CubeIDE
  • STM32CubeProgrammer

Create a New Project on STM32CubeIDE

Screenshot 2024-04-09 224631.png

Create a new project on STMCubeIDE.

Selection of Board.

Screenshot 2024-04-09 225221.png

Select the above board.

Configure Pins

Screenshot 2024-04-09 225921.png

change pb10 to GPIO_Output

Write Code

Screenshot 2024-04-09 230643.png

Go to while and do the following changes.

Interface of Led

connect pb10 to +ive of led

connect -ive of led to gnd

Setup of STM-32 Cube Programmer

Screenshot 2024-04-09 231042.png
download.png
  1. now click on download.
  2. click on download icon on right screen.
  3. run as start automatic mode.

Output.

Screenshot 2024-04-09 224948.png

Led is blinking.