User Activity

#include "main.h" #include "stdlib.h" #include "string.h" #include "math.h" #include "ctype.h" #include "stdio.h" #include "speed_torq_ctrl.h" #include "ramp_ext_mngr.h" #define USART_IT_ENABLE 1 uint8_t rxbuffer[10] = {0}; uint16_t motor1Faults; v...
I am doing the project to control linear motor, For that I am using UART to send start and stop command to start and stop motor, as like this i sending different rpm value from 100 to 3000 randomly to change the ramp of the motor. The problem that i ...
I am using 24V, 2.0A, 3000RPM and 2 pairs of poles BLDC motor. When ever i start the motor, motor is run far 3 sec and it fetch speed feedback and start up error.Below i provided the code:while (1){/* USER CODE END WHILE */if(flag == 1){MC_StartMotor...
Sharing the snippets of code related to UART from code generated using motor profiler, motor pilot and stmcube ideuint16_t motor1Faults;uint16_t rxbuffer[5] = {0};uint16_t flag = 0; HAL_UART_Receive_IT(&huart2, (uint8_t*)rxbuffer, 5);while (1){if(fla...
#include "main.h" /* USER CODE BEGIN PM */uint16_t motor1Faults;uint16_t rxbuffer[10] = {0};/* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ADC_HandleTypeDef hadc1;ADC_HandleTypeDef hadc2;ADC_Han...
Kudos given to