2025-03-10 2:42 AM
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?
Solved! Go to Solution.
2025-03-10 2:55 AM
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
2025-03-10 2:55 AM
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
2025-03-10 3:08 AM
@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:
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.