ESL 32 S3 Motor control pins

PA3040
Posts: 7
Joined: Sun Nov 20, 2022 5:17 pm

ESL 32 S3 Motor control pins

Postby PA3040 » Sun Nov 20, 2022 5:29 pm

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

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: ESL 32 S3 Motor control pins

Postby ESP_Sprite » Mon Nov 21, 2022 1:37 am

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).

PA3040
Posts: 7
Joined: Sun Nov 20, 2022 5:17 pm

Re: ESL 32 S3 Motor control pins

Postby PA3040 » Mon Nov 21, 2022 4:13 am

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

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: ESL 32 S3 Motor control pins

Postby ESP_Sprite » Mon Nov 21, 2022 8:57 am

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.

Who is online

Users browsing this forum: No registered users and 82 guests