Light Up Your World: Blinking LED(External) With STM32F401CE
by Tushar_Garg in Circuits > Microcontrollers
43 Views, 0 Favorites, 0 Comments
Light Up Your World: Blinking LED(External) With STM32F401CE
Get started with embedded systems by blinking an LED with the STM32F401CE! This powerful microcontroller is a great gateway to the world of electronics projects. We'll use STM32CubeMX's Hardware Abstraction Layer (HAL) to control an external LED and make it blink.
Supplies
- STM32F401CE
- LED 3V
- Jumper wires M-F
- C-type Cable
Create New File in STM32cubeID
Navigate to Your Project:
- Open the project where you want to create the new file.
- You can either create a new project or use an existing one.
Create a New File:
- Right-click on the folder or directory where you want to add the new file.
- Select New > File from the context menu.
Now Configure Your STMcubeIDE
Selection of Modes for Pins
Pinout & Clock Configuration
Add Code
HAL_GPIO_WritePin(GPIOC,GPIO_PIN_14,1);
HAL_Delay(1000);
HAL_GPIO_WritePin(GPIOC,GPIO_PIN_14,0);
HAL_Delay(1000);
write this code in while loop.