Control a Led Push Button with Stm32f103c8

Опубликовано: 12 Ноябрь 2024
на канале: Narinder
3,045
32

In this video Tutorial in the STM32f103C8 Series, How to a simple led on/off tutorial with push button as input is made to explain the coding and working. When a push button is pressed the led turns on and when push button is released the led turns off.
Hardware Required
• Stm32 Blue Pill Board
• One LED
• Push button
• 500 ohm ,10K ohm resistor
• Electronic Pratical bread Board
• Jumper Wires
Button Switch connected to GPIO Pin PA0 and connected in parallel with a 10K ohm resistor used for pull-up mcu gpio pin ,The anode of the LED are connected in series with a 500-ohm resistor to GPIO Pin PB0 on the Stm32 blue pill board. Their Button and Led cathode connect to ground.