What should be the sample time of the input pin to read the PWM signals?
I used a Arduino Mega to generate PWM pulses with varying duty cycles and frequency 100Hz.
This is the following output on a external logic analyzer connected to the 3, 5 pins. It shows a duty cycle of 20%
I configured an ESP32 WROOM(30 pin) to read the same PWM input using the digital pins with sample time = 0.005. I’m not getting the same input as expected.
Also the PWM inputs appear discontinuous in the simulink logic analyzer
What frequency should I configure such that I get the same input PWM as in the external logic analyzer?I used a Arduino Mega to generate PWM pulses with varying duty cycles and frequency 100Hz.
This is the following output on a external logic analyzer connected to the 3, 5 pins. It shows a duty cycle of 20%
I configured an ESP32 WROOM(30 pin) to read the same PWM input using the digital pins with sample time = 0.005. I’m not getting the same input as expected.
Also the PWM inputs appear discontinuous in the simulink logic analyzer
What frequency should I configure such that I get the same input PWM as in the external logic analyzer? I used a Arduino Mega to generate PWM pulses with varying duty cycles and frequency 100Hz.
This is the following output on a external logic analyzer connected to the 3, 5 pins. It shows a duty cycle of 20%
I configured an ESP32 WROOM(30 pin) to read the same PWM input using the digital pins with sample time = 0.005. I’m not getting the same input as expected.
Also the PWM inputs appear discontinuous in the simulink logic analyzer
What frequency should I configure such that I get the same input PWM as in the external logic analyzer? arduino, pwm, simulink, electric_motor_control, input, esp32, output MATLAB Answers — New Questions