Skip to main content
Associate
Dec 5, 2025 5:15 AM UTC
Question

Motor Control Protocol

I am using Nucleo L476RG for controlling BLDC motor. In the FOC control, i need to change the motor ID in the code. What is the procedure to change motor ID??

5 replies

GMA
ST Technical Moderator
Dec 8, 2025 4:53 PM UTC

Hello @deadlock,

What do you mean by "change motor ID"?

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
deadlockAuthor
Associate
Dec 9, 2025 6:08 AM UTC

I have 4 motors connected on same RS485 Bus, i want to address particular motor by Motor ID to control motors individually. Let me know  how to address this issue.

GMA
ST Technical Moderator
Dec 11, 2025 9:08 AM UTC

Hello @deadlock,

STM32L4 series MCSDK firmware is only capable of controlling one motor at a time.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
deadlockAuthor
Associate
Jan 7, 2026 8:56 AM UTC

Yes, I have connected 4 numbers of STML4 series motor on single RS485 protocol. I want to send RPM command to each motor individually. Please let me know how to modify the code so that i can control motor through ASPEP protocol.

BT.3
Associate II
Jan 12, 2026 11:29 AM UTC

I am also trying to the same. @GMA Please suggest