Multiwii Loaded Arduino Nano Quadcopter Take Off Testing

by Oscar

After the arduino connection testing, all the parts seem working fine (IMU, arduino, receiver, ESC and motor). So the next step is to try to do a take off test. I need to build a flight controller adapter to sit all the electronics on it (IMU, Arduino etc), which can also cut down the number of cables I need to connect the ESCs and receiver. But I wanted to make sure the system works (can take off) before I spent time doing it, so I keep everything on a breadboard to carry out the test.

Some of the links on this page are affiliate links. I receive a commission (at no extra cost to you) if you make a purchase after clicking on one of these affiliate links. This helps support the free content for the community on this website. Please read our Affiliate Link Policy for more information.

Issue – Quadcopter flips on take off

But it didn’t work! It just keeps flipping on take off. There were a few things I know which might cause this:

  • Sensor (Gyro + Acc) not calibrated correctly – need to place on a plat and level surface and calibrate first.
  • Sensor Orientation might be wrong? e.g. upside down or wrong way round, you can check this in the GUI.
  • Calibrate ESCs
  • Propellers are not the right size. Generally the manufacturer should recommend the appropriate prop for the motors. You need larger props with fewer cell battery.
  • Make sure the motors are connected in the right order, and props are rotating in the right direction.

To Calibrate ESCs:

its in config.h here is the procedure and please please please pay attention to the first detail 1.REMOVE YOUR PROPS FIRST 2. open the sketch in arduino IDE, uncomment //#define ESC_CALIB_CANNOT_FLY  3. upload the sketch to your flight controller. 4. remove the usb/ftdi cable and all power from your flight controller, then attach your battery 5. listen for the beeps stating that calibration is being performed (my beeps several times, plays a chime song, then gets quiet) 6. remove power, then reconnect your ftdi/usb cable 7. open the sketch in arduino, re add the // to #define ESC_CALIB_CANNOT_FLY  8 reload the sketch as it was prior to the calibration. you are now complete.  what did this do? (for anyone reading this who hasn't dealt with ESC's and multiwii long) this is the best way to make sure that the upper and lower limits of your speed controllers are exactly the same on every motor on your copter. if they are not, the software will have difficulty maintaining stable flight, even when hovering.

Solution!

I couldn’t find the cause of this problem, so I build the adapter anyway, it might be the sensor is not fixed in position and shakes when motors are rotating. I describe how it’s built here.

Later on I found that when I turn on throttle (only a little so it stays on the ground), the sound from the motors on one side is getting louder even though I am not increasing throttle, and eventually it gets to a point where it flips.

I realized it’s the motors are the wrong way around! so I swapped the diagonal motors around, and everything works as expected.

Some questions during research

Should I connect all BEC Vcc and Gnd together in parallel? 

NO! http://www.rcgroups.com/forums/showthread.php?t=1126572&page=7

How to connect ESC and motor (when all the cables have the same color?

It dosent matter what order. If the motor spins the wrong way after your done just swap any two wires and the motor will spin in the other direction.

what the maximum number of channels supported by Multiwii?

Four base channels (throttle, yaw, roll, pitch) and 2 aux (mode and something else).

Two: AUX 1 on “MODE” and AUX 2 on “D8” or “D12”. You have possibility to use PIN8 or PIN12 as the AUX2 RC input. It deactivates in this case the POWER PIN (pin 12) or the BUZZER PIN (pin 8)
For AUX 2 uncomment into config.h one of the two lines:// #define RCAUXPIN8 or //#define RCAUXPIN12

Conclusion

There are still works to do with the PID value tuning.

Here is a video.

Leave a Comment

By using this form, you agree with the storage and handling of your data by this website. Note that all comments are held for moderation before appearing.

6 comments

ihsan 1st December 2014 - 10:36 pm

Congratz..! Oscar,

can you mail me the arduino codes of Gy-80

Reply
Nader 13th May 2015 - 5:42 pm

could you please share the PID settings on your copter?

Reply
MRH 16th September 2014 - 1:42 pm

Hi Oscar
You said about power pin and buzzer.How can i see my battery voltage on The GUI?Do I need special module or sensor for that?How I connect battery to my FC board?
Thanks

Reply
Oscar 17th September 2014 - 11:59 am

Hi, sorry no, the buzzer I intended to use is not for voltage alarm. you will need to google how to do this.

Reply
Salman Farsi 27th March 2014 - 2:42 am

Can you please post or email me the circuit diagram, so I can join all the components in proper way?

Thanks

Reply
umeshdass 1st March 2014 - 1:15 pm

I love this project eprished to studient

Reply