I am using dc motor(pin out 3 or int pin1), MPU6050(int pin0), two servos(pin in 9,10), one receiver(pin in 5,6,11), GY-63…
everything works fine ( reading sensor data, channels value, controlling servos) when the program starts, however, whenever I push the throttle to move the motor, the program is halt and cannot read further values and control servos.
I am a newbie in using arduino. I hope someone can point out where did I go wrong.
here’s the code:
Flapping_Wing_Complete.ino (10.6 KB)