Arduino external mode scope simulink

1 回表示 (過去 30 日間)
Giacomo
Giacomo 2018 年 12 月 18 日
編集済み: Giacomo 2018 年 12 月 18 日
Hi, I have an Arduino Uno and I send a PWM on PIN 10 and I want to measure its Ton time.
The PIN 10 is linked with PIN 5, and it is plotted on simulink scope.
This signal is manipuleted with a Discrete-Time Integrator, so its maximum value of every sawtooth is the desidered value (Ton).
I have the following problems:
-the scope doesn't read well the PWM;
-the Discrete-Time Integrator doesn't send out the correct value.
What are the problems?
P.S. I) My sampling time of simulation is 1e-5.
P.S. II) My solver is ode8
P.S. III) I have measured the PWM on oscilloscope, and It read very well the signal.
Thank You. I attach my scheme and the arduino.
Best Reguards

回答 (2 件)

Giacomo
Giacomo 2018 年 12 月 18 日
Cattura1.JPG

Giacomo
Giacomo 2018 年 12 月 18 日
WhatsApp Image 2018-12-18 at 16.41.23.jpeg

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by