Trouble with my quadcopter

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
artas
Posts: 5
Joined: Mon Nov 07, 2016 8:39 am

Trouble with my quadcopter

Post by artas »

Hello,
i recently started to build my first own quadcopter, but sadly nothing seems to work. I'm trying to use an Arduino together with my smartphone as a remote controller. When I power up my drone almost nothing happens.Even if I connect my drone with usb to the pc and start the MultiWii Gui nothing happens.
Because I couldn't manage to change the baudrate of my bluetooth transmitter I even tried to change it in the arduino sketch to 9600. But this didn't help me neither.

The parts I'm using:
Arduino UNO Rev. 3
ESC: DYS SN20A Mini 20A SimonK
http://www.banggood.com/DYS-SN20A-Mini- ... ds=myorder
Motors: Racerstar Racing Edition 2205 BR2205 2300KV
http://www.banggood.com/4X-Racerstar-22 ... ds=myorder
10DOF: GY-87 10DOF MPU6050 HMC5883L BMP180
http://www.banggood.com/GY-87-10DOF-MPU ... ds=myorder
Transmitter: HC-05 Wireless Bluetooth Serial Transceive
http://www.banggood.com/HC-05-Wireless- ... ds=myorder

I connected everything like this:
ESC's
ESC 1 to Arduino Pin 3
ESC 2 to Arduino Pin 9
ESC 3 to Arduino Pin 10
ESC 4 to Arduino Pin 11

GY-87
VCC to 5V
GND to GND
SDA to Arduino Pin A4
SCL to Arduino Pin A5
INT to Arduino Pin 2

HC-05
VCC to 3.3V
GND to GND
TX to Arduino Pin 5
RX to Arduino Pin 6

I changed everything in the sketch according to the Multiwii Wiki.
My changes

Code: Select all

#define QUADX

Code: Select all

#define MINTHROTTLE 1064 // special ESC (simonk)

Code: Select all

#define INTERNAL_I2C_PULLUPS

Code: Select all

#define MPU6050       //combo + ACC

Code: Select all

#define HMC5883

Do I have to make some more changes to the sketch?

I would be unbelievable happy If someone could help me with my build.
Best regards
Artas

gregd72002
Posts: 103
Joined: Fri Dec 12, 2014 5:16 pm

Re: Trouble with my quadcopter

Post by gregd72002 »

Correct me if I am wrong, but for the GUI to work I would think you need MSP enabled in MW

artas
Posts: 5
Joined: Mon Nov 07, 2016 8:39 am

Re: Trouble with my quadcopter

Post by artas »

Sorry for the dumb question, but how exactly do I enable MSP?

User avatar
Leo
Posts: 372
Joined: Wed Sep 17, 2014 7:01 am
Location: Germany
Contact:

Re: Trouble with my quadcopter

Post by Leo »

In "config.h" look for this and activate it:

//Enables the MSP_WP command set , which is used by WinGUI for displaying an setting up navigation
#define USE_MSP_WP

artas
Posts: 5
Joined: Mon Nov 07, 2016 8:39 am

Re: Trouble with my quadcopter

Post by artas »

Thanks for the answer. Now I can see a straight line in the Multiwii Gui. But I still can't get my drone to to anything. I'm thinking about buying a remote controller and to remove my bluetooth connection.
EDIT: I found one mistake with my build. I accidentally switched the signal and ground wires with my ESC's.
EDIT 2: After working around with my GY-87, I got the gui to show my all the graphs. Now I only have to get my copter flying.
EDIT 3: While trying to fly my drone with the "MultiWii remote" app, I can see the values in the GUI on the pc. The ESC's are beeping too. Now the only problem is that the motors aren't rotating. But for today I think I did enough,

artas
Posts: 5
Joined: Mon Nov 07, 2016 8:39 am

Re: Trouble with my quadcopter

Post by artas »

My next problem seems to be that I am not able to change the throttle speed. Im trying to control my drone like this: http://ez-gui.com/manual/controlling-a- ... he-ez-gui/
While playing around with the joystick, I can see the values in the GUI, on the pc change. Only "throttle" isn't doing anything. I did calibrate the acc and magnet. I also have armed my quadcopter via joystick and aux switch. No difference.

Code: Select all

  /****************************    Motor minthrottle    *******************************/
    /* Set the minimum throttle command sent to the ESC (Electronic Speed Controller)
       This is the minimum value that allow motors to run at a idle speed  */
    //#define MINTHROTTLE 1300 // for Turnigy Plush ESCs 10A
    //#define MINTHROTTLE 1120 // for Super Simple ESCs 10A
   // #define MINTHROTTLE 1064 // special ESC (simonk)
    //#define MINTHROTTLE 1050 // for brushed ESCs like ladybird
    #define MINTHROTTLE 1000 // (*) (**)

  /****************************    Motor maxthrottle    *******************************/
    /* this is the maximum value for the ESCs at full power, this value can be increased up to 2000 */
    #define MAXTHROTTLE 2000

  /****************************    Mincommand          *******************************/
    /* this is the value for the ESCs when they are not armed
       in some cases, this value must be lowered down to 900 for some specific ESCs, otherwise they failed to initiate */
    #define MINCOMMAND  950

artas
Posts: 5
Joined: Mon Nov 07, 2016 8:39 am

Re: Trouble with my quadcopter

Post by artas »

I managed to get "throttle" working. But I still can't arm my quad. Not even via aux switch.
EDIT: Arming is now possible. I was a little bit stupid.

Post Reply