【发布时间】:2020-07-19 11:58:52
【问题描述】:
我们有一个 MG996R 型伺服电机。 Coral 的 PWM 输出只有 2.5V 峰值,而且不是很强。为此,我们使用 HC4049 模型缓冲区。但这不起作用。我们无法运行我们的伺服电机。之前我们有 Raspberry PI 3 Model B,它运行顺利。
我们正在关注两个库。
首先,Adafruit_CircuitPython_Motor
他们在这篇文章中解释了这种情况。 https://learn.adafruit.com/circuitpython-on-google-coral-linux-blinka/pwm-outputs-servos
我们尝试了“伺服控制”部分中的代码
第二,python-periphery
from periphery import PWM
pwm = PWM(2, 0)
pwm.duty_cycle = 0
pwm.frequency = 5000
pwm.duty_cycle = 0.98
pwm.frequency = 5500
我们没有在两个库中遇到错误,但什么也没发生。
有些人有这个问题,但没有解决办法。
Google EdgeTPU can't get PWM to work with Python
参考文献。
Linux arid-goose 4.9.51-imx #1 SMP PREEMPT Thu Jan 31 01:58:26 UTC 2019 aarch64 GNU/Linux
mendel@jumbo-zebra:~$ cat /etc/os-release
PRETTY_NAME="Mendel GNU/Linux 4 (Day)"
NAME="Mendel GNU/Linux"
ID=mendel
ID_LIKE=debian
HOME_URL="https://coral.withgoogle.com/"
SUPPORT_URL="https://coral.withgoogle.com/"
BUG_REPORT_URL="https://coral.withgoogle.com/"
VERSION_CODENAME="day"
您有增加 PWM 输出功率的想法吗?
谢谢。
【问题讨论】:
标签: python-3.x pwm servo google-coral adafruit-circuitpython