到手的胸牌上挺多的,拆来用过几个芯片很不错还带USB。这次有幸申请到了电机驱动demo板,非常感谢面包板社区和灵动微。
MM32SPIN160C的介绍
MM32SPIN160C Demo板原理图
FOC无感跳线帽
趁这几天有时间把MM32SPIN160C驱动无刷电机研究了一下,第一次玩刷电机有点迷茫资料和教程有点少160C的例程是有感的,手头没有有感电机翻箱倒柜找出来一个航模电机和两个光驱电机。好在有大佬已经出了移植MM32SPIN05的无感FOC的说明,参照大佬的说明我也移植到了我的板子上,先测试了银燕 EMAX BL2215/20 1260KV无刷外转子马达,一通折腾后还是启动不了电机线圈有启动脉冲嗒嗒嗒嗒的那种最后换光驱电机可以启动。修改SPIN05和SPIN160C的IO不同的地方后配置电机参数在\USER\Whole_Motor_Parameters.h文件修改
- #define PWM_FREQUENCY 22000 //unit:HZ 第一次玩无刷PWM频率不知道多少合适就用默认吧
- #define POLE_NUMBER 12//8 这里好像是单级数,网上查资料核实测得出的结果大概意思是电机定子线圈个数,光驱电机9个线圈POLE_NUMBER 9
这里是调节电位器对应八个档位(0档时停止)的转速设置
- //-----Close loop parameters------------------------------------------------------------------------------------------------
- //-----Close loop parameters------------------------------------------------------------------------------------------------
- #define TARGET_SPEED_1 2000 //unit: RPM, define the user's lowest target speed
- #define TARGET_SPEED_2 4000 //unit: RPM, define the user's second target speed
- #define TARGET_SPEED_3 6000 //unit: RPM, define the user's Third target speed
- #define TARGET_SPEED_4 8000 //unit: RPM, define the user's 4th target speed
- #define TARGET_SPEED_5 10000 //unit: RPM, define the user's 5th target speed
- #define TARGET_SPEED_6 12000 //unit: RPM, define the user's 6th target speed
- #define TARGET_SPEED_7 14000 //unit: RPM, define the user's highest target speed
- #define SMO_Kslf_MAX_VALUE 27000//27000//4200 //recommended value (300~6000), range (1~32767)
- #define SMO_Kslf_MIN_VALUE 5200//5200//1600 //recommended value (100~2000), range (1~32767)
- #define DC_BUS_VOLTAGE 120 //unit: 0.1V, define the dc bus voltage, 100 means 10V. it will be used if not define "USE_MEASURED_DC_BUS_VOLTAGE_TO_GET_POWER"
- //----for MAX DCBUS CURRENT LIMIT //20190626--------------------------------------------------------------------------------------------------------------
- #define MAX_DCBUS_CURRENT_PROTECTION 2000 //unit:1mA, define the dc bus max current protection,2000 means 2.0A, if over it, motor will be stopped and show error
- #define MAX_DCBUS_CURRENT_LIMIT 1500 //unit:1mA, define the dc bus max current limitation,1500 means 1.5A //20190626
- #define MIN_CURRENT_LIMIT_RESOLUTION 40 //10 means 10mA as minimum current limitation resolution,if over max.current 20mA,it means 20mA/10mA =2RPM Speed CMD Decrease every 50ms//20190606
我把视频做成了gif,图片大小有限制压缩成ppt了????将就看吧。
还买了好几个小无刷电机在路上,后续在拍几个成功驱动的电机????
2021-12-28 21:22 上传
点击文件名下载附件
2021-12-28 21:23 上传
点击文件名下载附件
全部回复 2
评测文章
热帖
大家都在看的技术资料
举报
内容系网友发布,其中涉及到安全隐患的内容系网友个人行为,不代表面包板社区观点
关闭
站长推荐 /2
- 返回顶部
工具栏