Pro Mini atmega328 number of timers

Hello everyone,

I'm trying to make my own quadrotor using Arduino Pro Mini as the "brain" of it. I have had no problems till the moment I have to control the ESC's. I need to generate a 50Hz PWM signal, so I thought about using "software" interrupts using timers in order to let the loop function calculate all other variables without having to generate that signal.

However, I can't find how many timers has this arduino. Are they the same as the atmega328, 3?

Thanks in advance :)

Same chip, same # of timers.
50 Hz is also slow, can make your own 50Hz using blink without delay style code without using interrupts at all.

Isn't a servo signal 50Hz PWM? Servo library?

Yep, servo library did the job.

With that library can I control 4 brushless motors for my quadrotor? I'm using an arduino pro mini

Brushless motor is not a servo tho. WIth a servo, you are only sending a control signal. With a motor, you are controlling the voltage/current being applied.

Servo signal to Electronic Speed Control. ESC controls motor.

CrossRoads: Brushless motor is not a servo tho. WIth a servo, you are only sending a control signal. With a motor, you are controlling the voltage/current being applied.

Well, I know that.

I was just omiting the ESC. The correct question is: "How many ESC can I control with Arduino pro mini?"

Thanks!

url]http://www.arduino.cc/en/Main/ArduinoBoardProMini[/url]

Says that of 14 digital pins 6 can be use as PWM pins The Servo lib supports 12 servos.

So I can control 6 ESC?

Must the pins that the library uses be PWM pins? In some sites I read yes but in other places I read no, so I’m not sure now…

As far as I know, on the 328, pins 3, 5, 6, 9, 10 and 11 support hardware PWM. I have heard of using software PWM on other pins but have never done so myself. I don't know if the Servo lib supports software PWM. 6 servos (ESC's) shouldn't be a problem. I have used 3 before so I know that works.