我用Arduino输出一个模拟电压,但是Arduino是通过PWM波来产生模拟电压的,我通过IO口把这个模拟电压读进电脑,有什么办法把它复原回去吗?就是把读到的PWM波转成电压。

 Réponse acceptée

hohek
hohek le 26 Nov 2022

0 votes

1、计算脉宽后还原,这需要比pwm周期更高的采样
2、滤波。用低通滤波或平均值滤波

Plus de réponses (0)

Catégories

En savoir plus sur Arduino Hardware dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!