楼主我很想用这个方案做一个项目。但是我试了很多次一直不成功。请教一下楼主:
1.我的电机是直径28mm,外转子7对极。KV330,带霍尔。我用的是有霍尔方案。
2.设置6step_conf.h为以下:
/*!< Motor control sensing : set one definition to 1, others to 0 */
#define SENSORS_LESS (0)
#define HALL_SENSORS (1)
#define SENSE_COMPARATORS (0)
/*!< Motor control mode */
/*!< Set VOLTAGE_MODE to 1 and CURRENT_MODE to 0 or the contrary */
#define VOLTAGE_MODE (1)
#define CURRENT_MODE (0)
/*!< Motor control additional features */
/*!< Set independantly SPEED_LOOP either to 1 or 0 */
#define SPEED_LOOP (1)
/*!< Set independantly SET_POINT_RAMPING either to 1 or 0 */
#define SET_POINT_RAMPING (1)
/*!< Set independantly gate driver pwm interface THREE_PWM either to 1 or 0 */
#define THREE_PWM (0)
/*!< Motor control user interface : set one definition to 1, others to 0 */
#define UART_INTERFACE (1)
#define POTENTIOMETER_INTERFACE (0)
#define PWM_INTERFACE (0)
感谢支持
感谢支持
感谢支持
1.我的电机是直径28mm,外转子7对极。KV330,带霍尔。我用的是有霍尔方案。
2.设置6step_conf.h为以下:
/*!< Motor control sensing : set one definition to 1, others to 0 */
#define SENSORS_LESS (0)
#define HALL_SENSORS (1)
#define SENSE_COMPARATORS (0)
/*!< Motor control mode */
/*!< Set VOLTAGE_MODE to 1 and CURRENT_MODE to 0 or the contrary */
#define VOLTAGE_MODE (1)
#define CURRENT_MODE (0)
/*!< Motor control additional features */
/*!< Set independantly SPEED_LOOP either to 1 or 0 */
#define SPEED_LOOP (1)
/*!< Set independantly SET_POINT_RAMPING either to 1 or 0 */
#define SET_POINT_RAMPING (1)
/*!< Set independantly gate driver pwm interface THREE_PWM either to 1 or 0 */
#define THREE_PWM (0)
/*!< Motor control user interface : set one definition to 1, others to 0 */
#define UART_INTERFACE (1)
#define POTENTIOMETER_INTERFACE (0)
#define PWM_INTERFACE (0)
1.第一次试验:
启动后电机不转,但有换向声,电机振动。
2. 第二次试验:
修改了Motor_Configuration.h
/*!< Motor control startup parameters */
#define STARTUP_SPEED_TARGET ((uint16_t) 400)
#define STARTUP_ACCELERATION ((uint32_t) 200)
#define STARTUP_SPEED_MINIMUM ((uint16_t) 60)
#define STARTUP_DUTY_CYCLE ((uint16_t) 90)
#define STARTUP_DIRECTION ((uint8_t) 0)
减小了加速值和SPEED_TARGET值,电机开始在200rpm转动,但无法通过MCSDK控制。且转几秒就停。
请问楼主有什么方法可以调试呢?