Hi,
I am new to ESP32, and trying to learn MCPWM for motor control.
1. Am i correct to say that each MCPWM Unit can control 3 motors and hence 6 as there are 2 units?
2. Does it work such that
MCPWM Unit 0
PWM0A & PWM0B controls 1 motor independently
PWM1A & PWM1B controls 1 motor independently
PWM2A & PWM2B controls 1 motor independently
MCPWM Unit 1
PWM0A & PWM0B controls 1 motor independently
PWM1A & PWM1B controls 1 motor independently
PWM2A & PWM2B controls 1 motor independently
3. Will using MCPWM reduce the ledc channels available?
How many motors can the MCPWM peripheral control?
-
- Posts: 9770
- Joined: Thu Nov 26, 2015 4:08 am
Re: How many motors can the MCPWM peripheral control?
It depends on the type of motor; for instance, if you have a BLDC which needs 3 channels, I'd imagine you can only control 2 motors. If your motors have only one channel (so each motor can only go in one direction; no H-bridge), you can control 6 per MCPWM, I think. The MCPWM and the LEDC are entirely independent; how you use MCPWM does not affect what LEDC channels are available.
Re: How many motors can the MCPWM peripheral control?
I'm using the typical yellow TT motors, which only requires 2 connections so i presume a total of 6 can be controlled in this case?
Who is online
Users browsing this forum: Bing [Bot], jjones7432 and 46 guests