Hello everyone. I am trying to run the closed-loop V/F scalar control of a 3-phase Induction Motor using TI C2000 TMS320F28069M Board. The first step was testing the open-loop and it works perfectly. Now I'm trying to take signals from the speed encoder attached to the motor and see in Code Composer Studio the speed of the motor in rpm. However, the 'rpm' expression is giving some incorrect random values. Can someone please check it also suggest if I'm missing something?
It's been a very long time since I worked with CCS. I'm betting if you go line by line and explain what you are doing to someone else, you'll see your mistake pop out. Sometimes it's a "1" where there should be an "i", sometimes it's a missing term, and sometimes is a pointer that is never actually initialized.
The process of explaining is not the same as the process of checking. It's amazing how we skip over things - like the ape costume in the basketball video. Even if the person you talk to has no idea what you're talking about, you'll find the problem pretty quickly.
Good luck, and have fun!
In line with the other replies, try explaining the code to a video recording as if you'll be publishing the explanation of how to debug to YouTube (other platforms available;-).
Having a bath duck handy can help, or play a nodding head video in the corner of your screen as if on a Zoom call.
Whatever it takes to vocalise what your brain would otherwise skip over!