A robot project shouldn’t have the headline ‘help me with my quadcopter’. Move it to the forum please and start a robot project after you have internalized the basics.
The PWN just changes the The PWN just changes the number of pulses per unit of time (OddBot has a great tutorial on this). At 0, then there would be no pulses sent to the motor, and at 255, the motor is on for the full time.
So the PWN effectively changes the voltage from zero to the maximum.
You should only get the maximum current when the motor is stalled.
I am worried, however that you motor driver may be not good enough. I’ve never tried a quad coppor, just rolling robots, so I may be wrong here. For a rolling robot you need a motor driver that can handle stall current for a long time period. The peak current is usually for just a very short time period.
I would think that for your motors you would need a 2A continuous current per channel.
Changing in PWM frequencies on Arduino controllers
//---------------------------------------------- Set PWM frequency for D5 & D6 -------------------------------
//TCCR0B = TCCR0B & B11111000 | B00000001; // set timer 0 divisor to 1 for PWM frequency of 62500.00 Hz //TCCR0B = TCCR0B & B11111000 | B00000010; // set timer 0 divisor to 8 for PWM frequency of 7812.50 Hz
TCCR0B = TCCR0B & B11111000 | B00000011; // set timer 0 divisor to 64 for PWM frequency of 976.56 Hz //TCCR0B = TCCR0B & B11111000 | B00000100; // set timer 0 divisor to 256 for PWM frequency of 244.14 Hz //TCCR0B = TCCR0B & B11111000 | B00000101; // set timer 0 divisor to 1024 for PWM frequency of 61.04 Hz
Changing in PWM frequencies on Arduino controllers
//---------------------------------------------- Set PWM frequency for D5 & D6 -------------------------------
//TCCR0B = TCCR0B & B11111000 | B00000001; // set timer 0 divisor to 1 for PWM frequency of 62500.00 Hz //TCCR0B = TCCR0B & B11111000 | B00000010; // set timer 0 divisor to 8 for PWM frequency of 7812.50 Hz
TCCR0B = TCCR0B & B11111000 | B00000011; // set timer 0 divisor to 64 for PWM frequency of 976.56 Hz //TCCR0B = TCCR0B & B11111000 | B00000100; // set timer 0 divisor to 256 for PWM frequency of 244.14 Hz //TCCR0B = TCCR0B & B11111000 | B00000101; // set timer 0 divisor to 1024 for PWM frequency of 61.04 Hz