Blinking of an External LED Using Stm32(Black Pill)
by Prateek Thapar in Circuits > Microcontrollers
15 Views, 0 Favorites, 0 Comments
Blinking of an External LED Using Stm32(Black Pill)
![highdef.jpg](/proxy/?url=https://content.instructables.com/F8S/BC9X/LUSE5L5T/F8SBC9XLUSE5L5T.jpg&filename=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](/proxy/?url=https://content.instructables.com/FYG/DKNP/LUSE5KX9/FYGDKNPLUSE5KX9.png&filename=Screenshot 2024-04-09 224631.png)
Create a new project on STMCubeIDE.
Selection of Board.
![Screenshot 2024-04-09 225221.png](/proxy/?url=https://content.instructables.com/FR7/5CPU/LUSE5KXG/FR75CPULUSE5KXG.png&filename=Screenshot 2024-04-09 225221.png)
Select the above board.
Configure Pins
![Screenshot 2024-04-09 225921.png](/proxy/?url=https://content.instructables.com/F8N/YSNJ/LUSE5KXY/F8NYSNJLUSE5KXY.png&filename=Screenshot 2024-04-09 225921.png)
change pb10 to GPIO_Output
Write Code
![Screenshot 2024-04-09 230643.png](/proxy/?url=https://content.instructables.com/F1Q/8681/LUSE5KYR/F1Q8681LUSE5KYR.png&filename=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](/proxy/?url=https://content.instructables.com/FCT/N6PQ/LUSE5L0D/FCTN6PQLUSE5L0D.png&filename=Screenshot 2024-04-09 231042.png)
![download.png](/proxy/?url=https://content.instructables.com/FSH/MSXU/LUSE5KWN/FSHMSXULUSE5KWN.png&filename=download.png)
- now click on download.
- click on download icon on right screen.
- run as start automatic mode.
Output.
![Screenshot 2024-04-09 224948.png](/proxy/?url=https://content.instructables.com/FQ1/EVNA/LUSE5KWZ/FQ1EVNALUSE5KWZ.png&filename=Screenshot 2024-04-09 224948.png)
Led is blinking.