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
ESL 32 S3 Motor control pins
-
- Posts: 9739
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESL 32 S3 Motor control pins
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
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
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
-
- Posts: 9739
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESL 32 S3 Motor control pins
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 66 guests