Page 1 of 1

interface motor pwm - already supported and provided example?

Posted: Sun Mar 19, 2017 3:02 pm
by DL88AI88
Hi there,

i wonder whether the interface motor PWM which is mentioned in esp_wroom32_datasheet v1.4 on page 9 is already supported. If so, is there any example of using the api and the provided timers?

Thanks for your answers in advance.

Best regards

DL88AI88

Re: interface motor pwm - already supported and provided example?

Posted: Wed Mar 22, 2017 10:43 pm
by DL88AI88
Hi there,

is there any example or api description of (datasheet v1.5 page 10)

PWM0_OUT0~2 (shouldn't it be PWM0_OUT_IN0~2 ?)
PWM1_OUT_IN0~2
PWM0_FLT_IN0~2
PWM1_FLT_IN0~2
PWM0_CAP_IN0~2
PWM1_CAP_IN0~2
PWM0_SYNC_IN0~2
PWM1_SYNC_IN0~2

It is only said that AnyGPIOs *
Three channels of 16-bit timers generate PWM waveforms;
each has a pair of output signals.
Three fault detection signals.
Three event capture signals.
Three sync signals.

But how do they work together?

best regards

DL88AI888

Re: interface motor pwm - already supported and provided example?

Posted: Thu Mar 23, 2017 4:23 am
by kolban
Is this video on ESP32 PWM of use to you?

https://www.youtube.com/watch?v=rarE-WI_Y0A

Re: interface motor pwm - already supported and provided example?

Posted: Thu Mar 23, 2017 4:40 am
by WiFive
There are no drivers/docs for epwm/mpwm yet :( but you can try ledc like nkolban shows

Re: interface motor pwm - already supported and provided example?

Posted: Fri Mar 31, 2017 1:56 pm
by DL88AI88
Hi there,

thanks for the hints.
Actually, I saw Neil's video about ledc pwm which is quite informative (as well as Neil's book is).
I read through the esp8266 reference manual as well for a motor pwm library.
Is there a special reason why this interface is not provided yet?
For me and many other potential customers motor pwm would be a great step forward for the esp32 of being a fully functional embedded device.
Maybe I can place some wishes for the library here :oops: :
one should define settings like
pwmmotor_frequency_khz (kiloHertz)
pwmmotor_frequency_hz (Hertz)
pwmmotor_period_s (seconds)
pwmmotor_period_ms (milliseconds)
pwmmotor_period_us (microseconds)
pwmmotor_pulsewidth_s (seconds)
pwmmotor_pulsewidth_ms (milliseconds)
pwmmotor_pulsewidth_us (microseconds)

This would be nice.

Any chance that we see an interface soon?

Best regards

DL88AI88