Problem with servo.h and rcswitch

Hi,

I have a quadcopter that receives commands from RF 433 mhz using rcswitch. I control my motors using ESC with Servo.h library.

For some reason, in random times (about 1 time at every 10 seconds) my motors spin, for less than half a second, in a different speed than they should. Is there any interrupt or timer issue with these 2 libraries that could be fixed to solve this problem?

Perhaps if you posted your code ......

How are the ESC and motor powered ?
Can you please provide a drawing of the whole circuit including the Arduino ?

My arduino is powered using the 5V terminal of one of my ESCs.

What voltage does the ESC BEC provide and how is it being supplied to the Arduino (which pins) ?

I use the 5 V pin in arduino to get it powered from the ESC.

Does this mangled statement mean that you are powering the Arduino from the ESC? Or are you trying to power the ESC from the Arduino? Post a schematic!

Actually Paul, it is not as mangled as it looks. By their nature quadcopters have 4 Electronic Speed Controllers (ESCs). The ESCs are powered by the voltage supplied to them to power the attached motor and each ESC would normally have a Battery Eliminator Circuit (BEC) capable of supplying 5V which would be used to power the radio receiver, flight control board and other peripherals.

So, what the OP is describing, seems to be that the Arduino is powered by one or more of the BECs. What we don't know, because he has not supplied it in any of his threads about problems with the quadcopter, is how things are actually wired.

What we don't know, because he has not supplied it in any of his threads about problems with the quadcopter, is how things are actually wired.

I think that sentence bears repeating, with emphasis.

@gilperon: You've been asked multiple times now to provide a schematic. This is your last chance to do so; not posting a schematic is wasting everyone's time.