Skip to main content
Associate III
November 14, 2024
Solved

supply power from Nucleo STM32G4

  • November 14, 2024
  • 2 replies
  • 3358 views

Good morning.

I am wiling to use the STM32G4 Nucleo-32 board (MB1430) board for an analog to CAN use.

PHOTO-2024-11-14-11-35-13.jpg

I would like to know if I could power up my 10 5V sensors. so i would like to know if I can use the +5V of my board and the current capacity of it to power up my sensors.

 

Capture d’écran 2024-11-14 à 11.46.30.png

My other question would be around the power supply of the board, It seems logical to use 7V and 800 mA to power it up so I will have as much power possible to use my 5V for my sensors. Is it the correct way to think?

Capture d’écran 2024-11-14 à 11.21.44.png

I would also like to know if i Have a 14 Volt battery, if I can directly put 2 boards in serial, the regulator inside of them making always sure that the tension is stable even if there is current variation in the circuit.

Best answer by mƎALLEm

@Jad wrote:

I would like to know how to calculate how much supply my MCU would need


Measure the consumption on JP1 while running the application:

SofLit_0-1731587949723.png

But seems not only the target MCU that pulls the current from LD1117 but also the STLINK block: MCU+LDO+ LEDs:

SofLit_1-1731588179901.png

 

2 replies

mƎALLEm
Technical Moderator
November 14, 2024

@Jad wrote:

Good morning.

I am wiling to use the STM32G4 Nucleo-32 board (MB1430) board for an analog to CAN use.

PHOTO-2024-11-14-11-35-13.jpg

I would like to know if I could power up my 10 5V sensors. so i would like to know if I can use the +5V of my board and the current capacity of it to power up my sensors.

 


That depends on the load that LD1117 (the 5V regulator) will reach with your sensors. According to its datasheet the current should not exceed 800 mA of output current:

SofLit_0-1731582615007.png

The load includes the supply of the MCU + LDO regulator LD39050P (5V to 3.3V).

"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."
JadAuthor
Associate III
November 14, 2024

thank you for the response, I saw the table of the current depending of the voltage, it is to maximise the power that i chose the 7 V input so I could get an output of 800 mA. I would like to know how to calculate how much supply my MCU would need, then to know the power that I can still use I do P(source) - (Pmcu) right?. If I do not use the 3.3V output i can not take care of the LDO regulator LD39050P (5V to 3.3V) right? 

Capture d’écran 2024-11-14 à 13.26.37.png

mƎALLEm
mƎALLEmBest answer
Technical Moderator
November 14, 2024

@Jad wrote:

I would like to know how to calculate how much supply my MCU would need


Measure the consumption on JP1 while running the application:

SofLit_0-1731587949723.png

But seems not only the target MCU that pulls the current from LD1117 but also the STLINK block: MCU+LDO+ LEDs:

SofLit_1-1731588179901.png

 

"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
November 14, 2024

@Jad wrote:

I would like to know if I could power up my 10 5V sensors. so i would like to know if I can use the +5V of my board and the current capacity of it to power up my sensors.


Yes - so long as the total of the Nucleo board and all your sensors doesn't exceed the power supply capacity.

 


@Jad wrote:

My other question would be around the power supply of the board, It seems logical to use 7V and 800 mA to power it up so I will have as much power possible to use my 5V for my sensors.


The limiting factor here is going to be the power dissipation in the regulator - see Table 5 in the User Manual:

AndrewNeil_0-1731583329115.png

https://www.st.com/resource/en/user_manual/um2397-stm32g4-nucleo32-board-mb1430-stmicroelectronics.pdf#page=13

 

So, from a 7V input, it should be able to give 800mA total for both the Nucleo itself and any added loads.

 


@Jad wrote:

I would also like to know if i Have a 14 Volt battery, if I can directly put 2 boards in serial


I think not.

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.
JadAuthor
Associate III
November 14, 2024

Thank you very much for the response, I am new in the power supply of MCUs and would like to know what could be the problems if I put 2 boards in serial. And if you have any tips regarding the power of MCUs in general, my main goal is to power up 3 MCU's and a light  with a 12 volt power supply

mƎALLEm
Technical Moderator
November 14, 2024

What do you mean by that?


@Jad wrote:

 I put 2 boards in serial. 


I think it's better to plot a sketch with different blocks and different power supply levels at each stage and share it here to understand what do you need to do ..

"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."