Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-PWM的输出 | α-LIB #86

Open
luyang14 opened this issue Mar 18, 2022 · 0 comments
Open

ESP32-PWM的输出 | α-LIB #86

luyang14 opened this issue Mar 18, 2022 · 0 comments

Comments

@luyang14
Copy link
Owner

http://iotts.com.cn/blog/2022/03/07/ESP32-PWM%E7%9A%84%E8%BE%93%E5%87%BA/

虽然之前在STM32的博文里面的其中一篇讲PWM的博文已经讲过了,但在这里再讲一遍,我们手里的舵机模块基本都是靠时基脉冲中的占空比调节来控制的,那再具体再说的通俗一点呢?就是比如我的时基为20ms , 要求舵机转到0度的所要求的的占空比为0.5ms,那么我们就需要以20ms为一个周期,每个周期内的高电平时间为0.5ms(这就是占空比),然后其余时间为低电平即可,而具体到我手上的这个360度舵机呢,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant