I'd like to control 3x L6234 IC's (3x BLDC motors) with the cheapest arduino but I'm a bit confused about the requirements needed for the microcontroller. As I understood each motor needs 3 PWM control signals so I'd need 9 PWM's, but I'd also need 9 timers in the microcontroller right? Or can I use just 3 combined with prescalers?
Regarding the source code for the gimbal motor control (by martinez i guess) this was something i found hard to understand:
//Hardware Abstraction for Motor connectors
//DO NOT CHANGE UNLES YOU KNOW WHAT YOU ARE DOING
#define PWM_A_MOTOR1 OCR2A
#define PWM_B_MOTOR1 OCR1B
#define PWM_C_MOTOR1 OCR1A
#define PWM_A_MOTOR0 OCR0A
#define PWM_B_MOTOR0 OCR0B
#define PWM_C_MOTOR0 OCR2B
source: Google Code Archive - Long-term storage for Google Code Project Hosting.
They use these Output Compare Registers A and B from Timer0, Timer1 and Timer2 for each PWM. I couldn't understand if i can i change this to 3 motors (instead of 2)