interface motor pwm - already supported and provided example?

DL88AI88
Posts: 29
Joined: Mon Aug 29, 2016 8:26 am

interface motor pwm - already supported and provided example?

Postby DL88AI88 » Sun Mar 19, 2017 3:02 pm

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

DL88AI88
Posts: 29
Joined: Mon Aug 29, 2016 8:26 am

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

Postby DL88AI88 » Wed Mar 22, 2017 10:43 pm

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
Last edited by DL88AI88 on Sun Mar 26, 2017 8:15 pm, edited 3 times in total.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

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

Postby kolban » Thu Mar 23, 2017 4:23 am

Is this video on ESP32 PWM of use to you?

https://www.youtube.com/watch?v=rarE-WI_Y0A
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

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

Postby WiFive » Thu Mar 23, 2017 4:40 am

There are no drivers/docs for epwm/mpwm yet :( but you can try ledc like nkolban shows

DL88AI88
Posts: 29
Joined: Mon Aug 29, 2016 8:26 am

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

Postby DL88AI88 » Fri Mar 31, 2017 1:56 pm

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

Who is online

Users browsing this forum: No registered users and 154 guests