Arduino Multiwii Quadcopter Connection Test

Today I loaded up the Arduino Multiwii Quadcopter code on the Arduino Uno, and connected everything including  a Radio controller, the IMU, ESC and motors, it works straight away! It’s so much easier than I thought.

The reason I am using the Arduino as a flight controller was my KK2.0 was totally damaged in the last crash. Luckily everything else apart from the flight controller and frame is fine!

Arduino Multiwii kk2.0

So I decided rather than buying a new flight controller, I might try to dig out a spare Arduino board to make one myself. Since there are already so many open source Arduino projects for quadcopter, it’s not difficult at all to setup one. It’s not a new thing at all, and they are very well documented as well. But since building a quadcopter isn’t a straight-forward task, it does take time and effort to read and learn things.

I basically followed this diagram from the Arduino Multiwii website  to connect everything.

quadcopter multiwii connection diagram

Here is the result.

The motors are controlled correctly, and also response to the IMU as well! I might actually mount the propellers on it and have a test hover flight this week.

For the start, I might just use Multiwii software, later on I might try writing one myself.

22 thoughts on “Arduino Multiwii Quadcopter Connection Test

  1. Visuccio

    viso95 0
    Hi everybody, i’m building a quadcopter with Arduino uno and multiwii.I have a problem: Nothing happends. When i connect the Arduino uno to the computer i can see that it receives the signal from the receiver but the arduino Doesn’t give the signal to the Esc. If i measure the potential of the signal of the Esc with the ground I see it’s always the same even if I move the transmitter. Can anyone help me?

    Reply
  2. Francesco

    Hi, thanks for this good guide!
    I’ve some problems connecting my gy-80 to the arduino 1.
    The I2C error is too high and change from -30000 to 30000…
    Could you send me your code just to try if it work or is a problem of the board?
    Thanks!

    Reply
  3. John

    My ACC’s pitch value never change and mag’s roll value is the same,no matter how i move gy80,i guess it’s a code error,can you send me your multiwii code to my email?Thank you!

    Reply
  4. Eric Carire

    Can it be a problem for you to facilitate me the code for the arduino, is just that I am having some problems with the same and right now I been stuck with it for some time. I will appreciate the help entirely.

    Reply
  5. Fakir Meheryar

    I have an Arduino Duemilanove that has the Multiwii code uploaded to it. I am using a 9DOF Razor Imu from sparkfun. When I wire up everything according to the diagram you have given and on the multiwii site it works fine. The motors arm up, the throttle works the signal changes on the gui for yaw roll pitch and yaw as well. The only issue that arises is that the 3-D diagram in multiwii does not rotate when I move my quadcopter.

    Also I defined the 9DOF razor imu in the config file by uncommenting free imu v03….your help is really needed.

    Reply
      1. Fakir Meheryar

        Yup pressed start nothing happens except the z value of the accelerometer goes goes to 265 and all other lines are at 0. None of the other sensor graph lines move. even when i press calib_acc, the z value of the goes to zero for a brief time and then moves to 265

  6. K

    This post is very important for me. You have said arduino uno has the same pin numbers to be connect. I want to know how we find the correct pin diagram according to the different versions of the multiwii codes. Can you send or upload a complete pin diagram for this project. Also I wanted to know the flying steps and how to work with the interface they have provided.
    Thank You.

    Reply
    1. Oscar

      I have supplied the diagram you need, you just need to follow the pin number in the diagram (the pin numbers are the same for Arduino pro mini, Arduino Nano and Arduino Uno).
      Once you connected everything, change the settings in the config.h file in the sketch, upload it to the Arduino, open up the Multiwii GUI, and connect to the Arduino com port.

      If everything works correctly, you should see the data from the IMU sensors, and a 3D model of your copter, that moves as you move it.

      Reply
  7. Emre

    I will try it ( i tried but will try again) and if i can i will make a video to show the problem. ty so much have a nice day.

    Reply
  8. Emre

    Dude thanks for share i want to do same thing (quad with arduino) but i have a problem i installed the multiwii software on my arduino uno and i connect the rx with uno (just receiver thr roll yaw and pitch pins) before upload the software i just defined quadx ( i dont have imu) and after that start multiwii conf exe selecting com 3 and push the start buttun thats fine its works correctly when i move tx sticks (at the begining values 1500) thr yaw roll and pitch values changing but there is the problem i can not arm whatever i made i didnt succeed it
    While doing this project did you have this problem or can you tell me anything about that to solve this prob ty again

    Reply
      1. Emre

        No for now i dont have quad esc’s motors or imu ( i want to make it). At the begining i want to know my uno works fine as a control card. Dont wanna buy any card because i want to make it that way i want. So install the software (with define imu and w/o define any imu) but i dont have any and so cant arm it.
        And now i think you saying that to do arm motors i need to have imu. if i dont have any imu, define or not it in software didnt change sitiation that i am in
        İs that true? Did i understand clear or not? Ty again

      2. Oscar

        if your uno work with the “blink” example sketch, it will work with Multiwii :-)
        I just tried removing the IMU from my quad, and i can still arm it.
        so, like you have said it yourself, try to uncomment a IMU sensor (e.g. GY80, that’s what i am using), and try upload the sketch again.

  9. salva

    Ni, thats very hice, im 15 years old and i have the arduino uno, i wanna made my own quadcopter, but i dont know how to connect all the components, con u put here a diagrama of the diferents connections? Thanks a lot

    Reply
    1. Oscar

      In this post, i was using the Arduino Uno, the diagram is a Arduino Pro Mini, but it has the same Pin layout as the Arduino Uno, so you just need to follow the pin numbers.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you Robot? *

I only check blog comments once or twice a week, if you want a quick reply you can post your question on this forum IntoFPV.com... You might get a faster response from me there (multirotor related only).