position control randomly stopped working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-20 6:26 AM
Hi,
I had successfully created a project using the AN5464 application note using the following hardware:
- NUCLEO-F303RE
- X-NUCLEO-IHM08M1
I have create the project using MotorControl Workbench 5.4.4 and managed to achieve rotation on the motor, however this doesn't seem to be a reliable code, it works for a while and then suddenly stops working, I have debugged the code and I have realised that it never goes beyond the "while(MC_GetAlignmentStatusMotor1()!=TC_ALIGNMENT_COMPLETED){}" eventhough it has worked for the past week! I have also noticed the motor doesn't take any current (0.01A) which means it doesn't even try to move if I don't power the microcontroller but only the ihm08m1 board it takes 0.04A when I plug in the microcontroller it goes down to 0.01A. Previously it was using 0.045A - 0.4A of current while driving the motor and 0.45A when in locked rotor mode. I cannot understand why did it suddenly stop?! I have checked the encoder and all 3 channels work fine. any help is much appreciated.
Kind regards
Manpreet Singh
Solved! Go to Solution.
- Labels:
-
STM32 Motor Control
-
STM32F3 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-27 2:47 AM
Good morning,
So here's an update. I have gone back by 2 backups to get motor rotates again. I do not know what happened to my latest backup as it was working fine when I did the back up. However it didn't work straight away but I had to create a new work space, clean the project and built it, while last week I only cleaned and build the project and none of my back ups worked. This week I decided to create a completely new workspace for each version of my backup and one of the backups worked, does anyone know how changing the workspace helped? and it doesn't work with the latest backup but the previous ONLY. (I still don't understand why it stopped in the first place).
Manpreet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-27 7:20 AM
Dear @msingh​
Therefore, you're problem is fixed, isn't it?
Best regards
Laurent Ca...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-27 8:01 AM
Yes, the basic function works now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-20 7:55 PM
is your code from an5464 working. I'm having the same issue. can you get back as soon as possible. my code stops at "while(MC_GetAlignmentStatusMotor1()!=TC_ALIGNMENT_COMPLETED){}" too
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-20 8:12 PM
@msingh @Laurent Ca... @KKuma.3 I'm trying to do position control using AN5464. My code stops at "while(MC_GetAlignmentStatusMotor1()!=TC_ALIGNMENT_COMPLETED){}". My hardware setup is all good. any help regarding this would be much appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-21 1:41 AM
Hello @Rajeswari,
To ensure the best support from our part and by respect to other users, I recommend creating a new post for your issue, and making reference to the posts / solutions you have already checked or tested. That way, the original poster doesn't get pinged for an issue he already solved, and your issue will have more visibility among the other posts.
Do not forget to follow these basic rules in your new post :
How to write a Motor control post to get a respons... - STMicroelectronics Community
Best regards.
GMA

- « Previous
- Next »