# bldc-drive
This is a project developing a simple BLDC servo controller. It is based on an STM32F103 microcontroller.
Some parts, especially the PID control loop is based on development done by user mcm_xyz in cnczone.com forum. Thank you! Check the thread http://www.cnczone.com/forums/open-source-controller-boards/283428-cnc.html
## Disclaimer
This software and hardware is provided "AS IS", WITHOUT ANY WARRANTY. The software is released under GPL v2. Authors accept no liability for any harm or loss resulting from use of this hardware or software.
## Authors & Contributors
* original Software by mcm_xyz from cnczone
* first Version of Hardware&Software in a Git-repo from pekkaroi via https://github.com/pekkaroi
* Schematic-additions and fork by Philipp Hörauf via https://github.com/Virtex7
## Firmware
Firmware is a work-in-progress (and will be for a while :), however following features are included:
* Trapezoidal BLDC commutation using either HALL sensors or quadrature encoder.
* Step+Dir input interface with PID position control loop.
* PWM+Dir input interface in velocity mode.
* USART communitacation for configuration. Configuration settings saved to flash memory.
* TODO: Motor Test Mode to simply activate a Motor with a fixed frequency, no encoder needed
### Update 1st May 2016
Some updates to the firmware.
* ADC current limiting implemented. Appears to work OK
* I created a quick and ugly Python gui for tuning
* Updated the PID loop to have feedfoward coefficients FF1 and FF2 (like LinuxCNC). This means that the PID output can be adjusted by the requested speed and the requested acceleration. This made the PID tuning a lot easier for me at least, I'm able to get a motor to follow the requested position very well also during acceleration and during constant drive.
## Hardware:
First prototype hardware is built and it is working well. However, there are couple of known issues:
* 6n137 optocoupler is not officially supporting 3.3V supply voltage which is used in the board. In reality they seem to work, but the optocoupler should be changed or additional levelshifting circuitry added on next revision. Also, the optocoupler input circuit supports only push-pull-type encoder output. Many encoders seem to have open drain output. :(
* Few connectors in the layout missed solder stop openings. They were bit painfull to solder. :)
* The current amplifier INA27x connection is wrong. The IN+ and IN- should be swapped.
### STATUS QUO:
Second hardware revision with the above findings fixed is published. There are no known issues, two servo drives are succesfully driving my CNC router. Pics and videos to come..
### HARDWARE TODOs:
* verify all part-values into the schematic
没有合适的资源?快使用搜索试试~ 我知道了~
使用 STM32微控制器 为 CNC 应用设计的廉价且简单的无刷直流电机驱动器_C语言_代码_相关文件_下载
共150个文件
h:52个
c:47个
lib:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 109 浏览量
2022-07-07
02:46:02
上传
评论
收藏 901KB ZIP 举报
温馨提示
这是一个开发简单 BLDC 伺服控制器的项目。它基于 STM32F103 微控制器。 某些部分,特别是PID控制回路是基于用户mcm_xyz在cnczone.com论坛上完成的开发 固件 固件是一个正在进行中的工作(并将持续一段时间:),但包括以下功能: 使用霍尔传感器或正交编码器的梯形 BLDC 换向。 Step+Dir 输入接口,带 PID 位置控制回路。 速度模式下的 PWM+Dir 输入接口。 用于配置的 USART 通信。配置设置保存到闪存。 TODO:电机测试模式可简单地激活具有固定频率的电机,无需编码器 2016 年 5 月 1 日更新 固件的一些更新。 实现了 ADC 电流限制。看起来工作正常 我创建了一个快速而丑陋的 Python gui 用于调优 更新了 PID 回路,使其具有前馈系数 FF1 和 FF2(如 LinuxCNC)。这意味着 PID 输出可以通过请求的速度和请求的加速度进行调整。这至少使 PID 调整对我来说更容易了,我能够让电机在加速和持续驱动期间也很好地跟随请求的位置。 硬件: 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
使用 STM32微控制器 为 CNC 应用设计的廉价且简单的无刷直流电机驱动器_C语言_代码_相关文件_下载
(150个子文件)
bldc_control_ver3.bak 44KB
bldc_drive.bak 29KB
6n137.bak 2KB
6n137.bck 48B
stm32f10x_tim.c 107KB
stm32f10x_flash.c 62KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 46KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 38KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
_syscalls.c 24KB
stm32f10x_gpio.c 23KB
vectors_stm32f10x.c 21KB
eeprom.c 20KB
stm32f10x_dac.c 19KB
stm32f10x_cec.c 11KB
pwm.c 11KB
stm32f10x_rtc.c 9KB
stm32f10x_pwr.c 9KB
stm32f10x_bkp.c 8KB
trace_impl.c 8KB
input.c 8KB
_startup.c 7KB
encoder.c 7KB
misc.c 7KB
usart.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_wwdg.c 6KB
configuration.c 5KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
adc.c 4KB
pid.c 4KB
hall.c 4KB
stm32f10x_crc.c 3KB
main.c 3KB
exception_handlers.c 2KB
utils.c 2KB
_sbrk.c 2KB
assert.c 1KB
Trace.c 1KB
_write.c 1KB
_initialize_hardware.c 1KB
_exit.c 1KB
_reset_hardware.c 876B
_cxx.cpp 1KB
.cproject 46KB
custom_7805.dcm 83KB
6n137.dcm 48B
.gitignore 402B
stm32f10x.h 619KB
arm_math.h 239KB
core_cm4.h 108KB
core_cm3.h 98KB
core_sc300.h 97KB
stm32f10x_tim.h 51KB
core_sc000.h 42KB
core_cm0plus.h 41KB
core_cm0.h 33KB
stm32f10x_rcc.h 30KB
stm32f10x_i2c.h 30KB
stm32f10x_can.h 27KB
stm32f10x_fsmc.h 26KB
stm32f10x_flash.h 25KB
core_cm4_simd.h 22KB
stm32f10x_sdio.h 22KB
stm32f10x_adc.h 21KB
core_cmInstr.h 20KB
stm32f10x_dma.h 20KB
stm32f10x_gpio.h 20KB
stm32f10x_spi.h 17KB
core_cmFunc.h 17KB
stm32f10x_usart.h 16KB
stm32f10x_dac.h 15KB
misc.h 9KB
stm32f10x_bkp.h 7KB
stm32f10x_exti.h 7KB
stm32f10x_cec.h 6KB
arm_common_tables.h 5KB
stm32f10x_pwr.h 4KB
stm32f10x_rtc.h 4KB
stm32f10x_iwdg.h 4KB
stm32f10x_dbgmcu.h 4KB
eeprom.h 3KB
stm32f10x_conf.h 3KB
semihosting.h 3KB
stm32f10x_wwdg.h 3KB
configuration.h 3KB
Trace.h 3KB
arm_const_structs.h 3KB
stm32f10x_crc.h 2KB
system_stm32f10x.h 2KB
encoder.h 2KB
pid.h 1KB
共 150 条
- 1
- 2
资源评论
- 中华电器2023-12-14感谢大佬分享的资源,对我启发很大,给了我新的灵感。
快撑死的鱼
- 粉丝: 2w+
- 资源: 9156
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Refrig-RefrigerationBoxLoads.exe
- AHTTv510.pdf
- TRANE.zip
- 开利PLV IPLV计算软件ECAT-PLV120.zip
- Copeland-Refrigeration-Manuals.zip
- 汽车空调制冷系统匹配设计1.pdf
- 换热器选型GreenheckCoilSelection.zip
- SystemSyzerPsychrometric .exe
- 汽车空调制冷系统匹配研究1.pdf
- 混合动力汽车空调系统研究及优化1.pdf
- 电动汽车热泵空调系统匹配特性研究1.pdf
- 基于互信息(MI)的回归数据特征选择算法 matlab代码
- 纯电动汽车动力电池与空调联合热管理仿真研究1.pdf
- 某车型汽车空调系统匹配研究1.pdf
- 汽车空调制冷系统匹配计算及研究1.pdf
- 商用车驻车空调系统性能分与实验研究1.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功