DIY Arduino Quadcopter – Open Source Arduino Controlled Quadcopter

In this post we’ll see how this guy has managed to build an Arduino controlled Quadcopter that successfully flied.

This Quadcopter is built around the DJI 450 Quadcopter frame and controlled using Arduino Nano and MPU-6050 Gyroscope Accelerometer unit.

Software is tailored upon the MultiWii Flight Controller code.

Schematics:

Arduino Nano

MPU-6050 Accelerometer Gyroscope Unit

Code:

https://www.hackster.io/robocircuits/arduino-quadcopter-e618c6#code

Testing:

You might have seen a lot of flight controllers, but did you think of making one of your own? if yes, you are one like me when I think of making a flight controllers,

how a quadcopter actually fly :

when I figured out quadcopter actually moves according to the speed of its four motors, for instance; if one have to take off all motors must be speed up with the same rate to provide a thrust, which will lift the quadcopter high, if one have to drive the quadcopter to the left side, the right motors must be speed up and the left motors must with speed it down; so that the actual drag the quadcopter to the left in the same with the right direction now how can we roll the quadcopter? any ideas? ok, let me tell you, if you ever seen a quadcopter, then you might had figured out two motors of the quadcopter are rotating clockwise while the other two rotates anti-clockwise, this is called conservation of angular momentum.

actually this is done to stop the quadcopter rolling now using this phenomena, we can roll our quad if we increase the speed of clockwise rotating motors then our quadcopter will automatically rotate anti-clockwise and vice versa; so I think you understand about it now.

we have to study about leveling of a quadcopter in air how aquatic opal knows that it is leveled or it is staying at the same place or it is hovering over the right angle so this is the first requirement of the quadcopter, so right controller

Arduino controlled Quadcopter:

I have to use something which will tell the quadcopter about its angle as compared to the ground or zero level, now the quadcopter must also have the input pins which read the output of receiver and also it need to give output to the four motors, so these were some basic requirements of a flight controller.

I searched on the web for the same and have found a software called multi beam which provide open source code and schematics in software for making arduino based quadcopter, so I decided to firstly test their code and software as a building block for our own made Arduino flight controller,

let’s firstly try multi V and then try to design a different cord for our quadcopter and figured out what are the mistakes in that code and how can we cured their schematics according to which four es C’s were connected with PWM pins D 3 D 9 d 10 and D level with input pins d4 d5 d6 d7 and b8 from the receiver along with it,

they used MP u 6050 gyro plus accelerometer module for balancing, and attached that with the pin umber a4 and a5 which are SDA and SC l respectively I designed a similar board using Fritzing software and get my Gerber files ready then I went to GLC PCB comm to order my board because they provide the best and cheapest board in the market,

I click instant code uploaded my Gerber files and selected by quantity and other related features,

I provided my address chose my sip shipping method as DHL and pay them using PayPal get relief from custom duty charges and have a couple of days then you can choose the order in ordinary mail also it will take about 15 to 10 days but I chose DHL as I am in a hurry for that arrived to me,

let’s complete the frame and equip the models, I bought a DJI 450 frame and 430 ampere ,

then I took one of them peeled off its heat sink tube from its connector, then untold heard it then I added some solder to the soldering pads of the frame and soldered the red wire of ESC to the positive and the black one to the negative,

then I did same with all the four-year C’s, after that I took a piece of silicon coated wire Ø´nd attach the battery socket on it , then a dash doll wire on the frame,

I took the four arms of the frame place then upside down and place the board on them and screwed them on place with the given screws, I also use a separate piece of soft plastic form to reduce the vibrations that comes from motors, it plays the upper side of board and screwed them on place,

also I used the form between them – then I took for 1,400 kilo watt motors, I unpicked them place them on the frame and and secured them with the crews and did the same with the whole four motors,

then I secured the EEOC’s with zip ties on the lower side of frame tighten them and cut the rest and did the same with all four motors, I took out the signal wire from the opening provided on the frame so the basic frame part is done for now, I soldered the header pins with a small magic trick , now I am a great magician then I attach the EEOC’s and the receiver on it, if you want to see the full schematics and code the link to the cord, download your code and open it in the Arduino IDE go to the config dot edge,

now go to the config dot edge and do as follow:

  • find the section 1 and you uncomment the quad X
  • then find the combined ímu boards and uncomment the gy 5 2 1 gy 5 to 1 is the code for the MPU 6050 module,
  • if you find any other module uncomment that,
  • then search for buzzer pin and uncomment that b8 buzzer,
  • then search it for buzzer and uncomment the top three sections ,
  • and then upload the program,

the coding is done now,

go to multi V config folder and run the multi V program then check and select the port and click start,

check all the controls from the transmitter whether they are going to right direction when changing their position then click on calibrate guy row,

then click calibrate accelerometer and then click on stop now,

just do like this and your quadcopter will be armed now increase the throttle now increase the throttle a slight the motor will start moving and ow our quad is ready to fly slight many times,

will have minor changes and finally got the best configuration,

now it fly like a charm so this way the so this was the Arduino controlled Quadcopter.

Conclusion:

You can build your own Quadcopter flight controller using ready made open source code from open controllers such as this one MultiWii and using easy embedded systems platform like Arduino.

You can then make use of the ease of code and the less expensive components.

And this is sure an educational experience that makes you aware of all Quadcopter principals.

Source:

https://www.hackster.io/robocircuits/arduino-quadcopter-e618c6

More projects

Leave a Comment

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

Scroll to Top