Skip to main content
Visitor II
May 4, 2025
Question

How to connect led?

  • May 4, 2025
  • 2 replies
  • 896 views

I just bought stm32 and i cant find any guides how can i enable led. I flashed pin PB7 so that it would output current

1000008815.jpg

2 replies

STTwo-32
Technical Moderator
May 4, 2025

Hello @Krafti @and welcome to the ST Community. 
This is not an ST official evaluation board but it is a Board based on an STM32 MCU. So, you should ask the manufacturer of this board about the connections and the board layout. 
‘Best Regards.
STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
TDK
Super User
May 4, 2025

You need to connect the LED so toggling the pin completes the circuit.

Any of these:

[PB7] --> [LED] --> [RESISTOR] --> [GND]

[PB7] --> [RESISTOR] --> [LED] --> [GND]

[VCC] --> [LED] --> [RESISTOR] --> [PB7]

[VCC] --> [RESISTOR] --> [LED] --> [PB7]

Make sure the LED polarity is correct and resistor is sized such that the LED gets around 3 mA, or whatever the data sheet says is safe.

"If you feel a post has answered your question, please click ""Accept as Solution""."