Skip to main content
Associate III
March 10, 2025
Solved

maximum current of GPIO

  • March 10, 2025
  • 2 replies
  • 788 views

Good morning,

I am using an STM32G4 Nucleo-32 board (MB1430) and want to drive Relays with its GPIO; I need to know the maximum current that can give a GPIO. I searched on the datasheet of the STM32G431x6 , the maximum power that can be delivered, but found no values. Could someone tell me where to find that info?

This topic has been closed for replies.
Best answer by Peter BENSCH

Due to the inductance of relays, it is generally not a good idea to drive them directly from a GPIO. Instead, you should connect a driver stage in between, e.g. via BJT or MOSFET.

Irrespective of this, you can find the current carrying capacity in the data sheet of the respective STM32G431KB.

Does this answer your question?

Regards
/Peter

2 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
March 10, 2025

Due to the inductance of relays, it is generally not a good idea to drive them directly from a GPIO. Instead, you should connect a driver stage in between, e.g. via BJT or MOSFET.

Irrespective of this, you can find the current carrying capacity in the data sheet of the respective STM32G431KB.

Does this answer your question?

Regards
/Peter

In order 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.
Andrew Neil
Super User
March 10, 2025

@Jad wrote:

I searched on the datasheet of the STM32G431x6 , the maximum power that can be delivered, but found no values. 


Really?

It's there:

AndrewNeil_0-1741601209666.png

Note also the maximum total VDD and VSS pin ratings.

 

But, as @Peter BENSCH said, driving a relay from a port pin is really not a Good Idea anyhow.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.