Skip to main content
Visitor II
July 9, 2024
Question

P-NUCLEO-IHM03 motor kit - control BLDC motor speed & interface LM35 temperature sensor

  • July 9, 2024
  • 1 reply
  • 799 views

I am using P-NUCLEO-IHM03 motor kit which comprises a STM32G431RB series microcontroller, gimbal motor (GBM2804H-100T), X-NUCLEO-IHM16M1 
I am interfacing LM35 temperature sensor to control the speed of the BLDC motor so as the temperature increases (eg. by using a soldering gun) the motor speed is also increasing so the motor is varying its speed according to the change in the ambient temperature but I am not able to print the value of the temperature on the console even though i have given the printing condition and in the live expression the value of the variable that is being displayed is not the right one too there is no proper ADC conversion happening nor I can read the temperature value.
Please help me solving this issue 
 

1 reply

Andrew Neil
Super User
July 9, 2024

Start by doing just one thing at a time!

 


@SahanaRaghu wrote:

 I am not able to print the value of the temperature on the console even though i have given the printing condition  


Are you able to print anything at all to this "console" ?

What "console" are you using?

How is this "console" connected to your Target?

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

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.