Tool/software:
I have been going through the Universal motor control labs and I can get my motor to spin in levels 1-3. In level 4, it either will not spin the shaft or if I tinker with the variables in the first defined motor, the Teknic_M2310PLN04K, it spins at a high speed and then throws an over-current fault. My end game is to try and send PWM signals to the DRV-8323RS from a Jetson Orin Nano to spin my motor. However, I am having a lot of trouble getting the level 4 in the universal motor control to work. I know it has something to do with my parameters, but I am not very experienced and am trying to learn and I can't really see the forest from the trees. My thought was that if I could get the level 4 to work and then just run the motor at different speeds manually manipulating the variables, then I could possibly immitate what the code is doing in the lab in some code on the Jetson Orin Nano to send the correct PWM signals to control the motor how I want to.
1. How can I get this level 4 to work?
- I have gotten it to work before, but I can not remember how I did it. And I know once you have the correct motor parameters you can manipulate the acceleration and speed to make the motor go at different speeds.
2. Is it possible to send pwm signals through SPI to the DRV-8323 from a Jetson Orin Nano and control the motor in a similar way that my F280025C is doing?
I am trying to do this in the simplest way possible. It seems as though these motor control labs do a lot of extra stuff that is maybe not needed to cover a variety of motors and applications. All I want to do is control the speed and direction of a motor and then gradually learn how I can use the hall sensor as well. But one step at a time. From my understanding all motor control is at its very simplest is PWM frequencies. Correct? That is to just do a simple spin of a motor. I know there is a lot more complicated things to a motor. Any help to get me unstuck would be greatly appreciated. Thanks
This is the data sheet to my motor
MotorDatasheet.pdf
And these are the motor parameters of which some I tweaked in the code.