问题描述
我在 STM16 MCU 上使用 MCU8051 IDE;下一段代码根据连接在 P1.0 的 ADC 通道上的电位计电压,通过切换 PSR5041 步进驱动器上的端口 P2.0 来控制步进电机的速度:
import React from 'react'
function Product(props) {
const newArr = props.list.map((product) => {
return {name: product.name,price: product.price,description: product.description}
})
return(
<div>
{newArr.forEach((item) => {
<h1>{item.name}</h1>
})}
</div>
)
}
export default Product
问题是代码只能在很短的时间内控制步进电机速度,包括不规则运动或扭矩松动。 ¿如何改进代码以便更精确地控制电机?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)