cancel
Showing results for 
Search instead for 
Did you mean: 

Motor Control Workbench: Regarding the working & modification of generated code

Shubham08
Associate II

Hi Sir, I have steval spin3202 evaluation board for an application of bldc motor application. I have generated code using Motor Control Workbench, initally for testing i tested it out using Motor Pilot it was working as expected using Start and stop command using the interface, but i want little modification such that i dont want to control it using motor pilot interface for that, I turn off the UART button in the selection and again flash the code to run the motor but for the running of the motor i need to press the reset button after that i can control the motor usign potentiometer, i also dont want to use user button.

Following thing i need to do in the code,

1) When i power the board it  should start the motor, i.e i don't want to press the reset button manually for the starting of the motor as for my application i also don't want user button to start the motor.

2) In my application if the Source current is greater than 7A it should turn off the motor but in the code i have selected the max of 50A in the current limit i.e when i apply the setting of 50A and run the motor the current drawing from the souce was 3A but as the requirement was to set the current limit how to set it. As earlier i have set to 10A in the motor control workbench but the motor was not working.

3) For Over and Under voltage if i have set undervoltage to 9V it is also working at 8.90V and if i have set the over voltage to 16V the motor is not working at 15.3V. How to set  the floating values for it.

4)As there might be a situation where some error is generated like overvoltage, undervoltage, overcurrent etc, i need to modify code such that it will wait for 30seconds and try to run the motor if all the error is clear or else again it will wait for 30 second.

5) If i want to integrate the LIN Signal as input then how to do it, i.e  as currently adc is input signal now LIN is the input signal to control the motor

6) If the board is running for long time like 3-6 months what will be the characteristics of the board regarding temperature of the pcb and health of the component, is there any safety measure for component regarding the increase of the temperature especially for STSPIN3202F0A.

Thankyou sir for reading such a long problem statement, but as i need to elaborate my problem for understanding it in precise way so that the solution can be more precise The solution of it will help me a lot.

0 REPLIES 0