Page 1 of 1

ESL 32 S3 Motor control pins

Posted: Sun Nov 20, 2022 5:29 pm
by PA3040
Hi expert

I have worked with PWM base motor control program using ATMEGA 328P Timer 0 and Timer 2 with inverted PWM output. each timer has two i/o pins to control motors

My question is

I have decided to transfer from ATMEGA 238 to ESP32 S3 with more capabilities. Sine I am new to ESP family
Please advice what are the best timers and I/O pins that I can use to control motors using inverted PWM base timers

Thanks in advanced
PA3040

Re: ESL 32 S3 Motor control pins

Posted: Mon Nov 21, 2022 1:37 am
by ESP_Sprite
I'd suggest you look at the MCPWM peripheral, as that is intended to drive motors. For IO, you can use any IO pin that is not otherwise occupied (but be mindful of any strapping pins).

Re: ESL 32 S3 Motor control pins

Posted: Mon Nov 21, 2022 4:13 am
by PA3040
Hi thanks for the reply
Dear what do you mean "For IO, you can use any IO pin "
That mean The ESP doesn't have dedicated pins for timer output right ?
Please advice

Re: ESL 32 S3 Motor control pins

Posted: Mon Nov 21, 2022 8:57 am
by ESP_Sprite
The ESP chips have a GPIO matrix, which can route most peripheral signals (amongst others the MCPWM ones) to any GPIO. So no dedicated pins as such indeed, instead you can effectively set any pin to a 'dedicated' pin in software.