Тёмный

Arduino drone - Part1 Flight Controller 

Electronoobs
Подписаться 577 тыс.
Просмотров 340 тыс.
50% 1

Full Arduino based drone. The tutorial is divided in a few parts. In this video I build the flight controller using the Arduino NANO and the MPU6050 gyro//accelerometer. To program the flight controller I've used the multiwii platform. Wait for the next parts, the radio receiver/transmitter and the final drone build.
Help my projects on Patreon : / electronoobs
my Q&A page: electronoobs.com/eng_preguntas...
PRINTERS
-------------------------------------
Ender 3(167€): www.gearbest.com/3d-printers-...
SparkMaker SLA: www.gearbest.com/3d-printers-...
Crealitu CR10: www.gearbest.com/3d-printers-...
Coupon code: "11CR10EU" or "11CR10US"
ANET E10 (219$): www.gearbest.com/3d-printers-...
Coupon code: "Anete10us"
TEVO Tarantula (175$): www.gearbest.com/3d-printers-...
Coupon code: "Tarantulaus"
Creality CR10 MINI: www.gearbest.com/3d-printers-...
COUPON: CR10MINI
Anet A8: www.gearbest.com/3d-printers-...
Coupon code: "A8KIDA"
-----------------LINKS-------------------
Flight controller webpage: www.electronoobs.com/eng_robot...
Transmitter/receiver webpage: www.electronoobs.com/eng_robot...
Drone build webpage: www.electronoobs.com/eng_robot...
Full tutorial webpage: www.electronoobs.com/eng_robot...
Multiwii downlaod: www.electronoobs.com/eng_robot...
Full part list: www.electronoobs.com/eng_robot...
PID tutorial: www.electronoobs.com/eng_robot...
---------------MATERIAL---------------
Arduino NANO: www.ebay.com/itm/Nano-V3-0-Min...
MPU6050: www.ebay.com/itm/MPU-6050-6DOF...
Drilled PCB: www.ebay.com/itm/15Pcs-Baklite...
Male pins: www.ebay.com/itm/5-PCS-40-Pin-...
12A ESC: www.ebay.com/itm/1-x-Emax-12A-...
---------------SCHEMATICS-----------
Flight controller schematic: www.electronoobs.com/eng_robot...
--------------------CODE------------------
MPU6050 test: www.electronoobs.com/eng_robot...
Multiwii downlaod: www.electronoobs.com/eng_robot...
Like share and subscribe to motivate me. Thank you

Наука

Опубликовано:

 

18 апр 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 365   
@andrewkasza7282
@andrewkasza7282 7 лет назад
I had tried to build a Arduino controlled quad a couple years ago, and I just got a 3d printer and I found your videos on this build. This will help allot in finally finishing this project. Thanks.
@hichamaklil6898
@hichamaklil6898 7 лет назад
great tutorial , thank you, I have a problem with two motors (front-R and rear-L),and their speed decreases automatically, although they are at maximum speed.
@Boris_Chang
@Boris_Chang 3 года назад
I was really curious to see the code to test the sensors and control the motors. Sort of a bit like the code to keep a humanoid robot balanced and walking in any direction I suppose. That’s some pretty advanced stuff though.
@eric-janvandenbogaard9415
@eric-janvandenbogaard9415 7 лет назад
Nice ! a very detailed project ! with easy to get parts and all Arduino based, Great !
@chandrurn
@chandrurn 6 лет назад
What an effort, amazing, you must be crazy mad over electronics, The amount of time and energy you have dedicated for electronics is immense , keep it up :)
@ELECTRONOOBS
@ELECTRONOOBS 6 лет назад
Thank you very much!
@asdiamamence572
@asdiamamence572 4 года назад
This is exactly what I'm looking for... Thank you so much
@palashtiwari1880
@palashtiwari1880 6 лет назад
Thanx for this video...i would like to know about the coding used in the Arduino.....how it works and more.....i have a question...i have seen other videos....in those videos they have used a barometer also and said programming a barometer is a difficult task ...what do u want to say about it..?
@66fpv67
@66fpv67 4 года назад
Awesome man. Thank you for these tutorials. Im building this drone with my kids, with home made radio control as your previous videos. Unfortunately, my ecs don’t seem to work with ppm signal. They spin fast from throttle 0. I calibrated my radio control and work fine. Trying to find MultiWii setup directions for pwm singnal and cant find anything. Kids want to present this project to school.. Can you help me on this please?
@xxxd6068
@xxxd6068 5 лет назад
Hi, The motor says 'biggest thrust (g/s) - 1265/4' does that mean if I use 4 motor the total thrust generated will be 1.2kg or the one motor will generate that much thrust
@lthomas532
@lthomas532 5 лет назад
Hey, great video. I wonder if you have a wiring diagram for a hexacopter? I would like my drone to have 6 motors. Thanks :)
@shutdahellup69420
@shutdahellup69420 6 лет назад
can i use these values with a 350 size drone with 1400kv motors?
@KhiemNguyen-oo9yp
@KhiemNguyen-oo9yp 2 года назад
thanks bro i work desprately to find this pid and now i find you i will smash the like button for you great jobs
@GaiusGarage
@GaiusGarage 3 года назад
did you get data and clock backwards on the MPU6050? you have SDA labeled "clock", SCL labeled "data" - but seems like DA would stand for "DAta" and CL stand for "CLock"
@offensivebias3965
@offensivebias3965 3 года назад
Best video tutorial ever !
@rodrigo_dm
@rodrigo_dm 7 лет назад
holy cow this was exactly what i was looking for. thank you. cant wait till next videos. Im also building a fixed wing drone, and i dont know how to send data to the arduino. any tips?
@ELECTRONOOBS
@ELECTRONOOBS 7 лет назад
Rodrigo D Madruga I'm using the NRF24 radio module and ppm output for the receiver. you will see in my next videos
@stingerbold9327
@stingerbold9327 6 лет назад
Awesome project. Can i use atmega8a 8kb flash memory microcontroller in this project
@dantecaballero4939
@dantecaballero4939 5 лет назад
Hola! Estoy en proceso de armar un tricoptero, usando multiwii 2.3. No encuentro la sección del código en el cual indique en qué pin de Arduino conectar el servo para la cola. Tendrás alguna idea de dónde debería ver? Gracias!
@nerdgrenade4365
@nerdgrenade4365 4 года назад
Hi their I was making the flight controller I soldered everything and connected to multi Wii I have a i2c error that increase in both postive and negative numbers pls help
@imanamal5522
@imanamal5522 6 лет назад
In the material list you use 12A esc right? is it can used 30A esc? thanks
@abdelhakimamer6989
@abdelhakimamer6989 5 лет назад
How does the flight controller work for any quadcopter design?
@rajatchandra7985
@rajatchandra7985 6 лет назад
Hey Electro i made the same connections u briefed about, the multiwii simulater is showing everything fine the gyro-accelerometer all the throttle yaw pitch etc but the output is not adequate i.e the pins to be given to ESCs, its showing values 8000(not 1000-2000)
@ELECTRONOOBS
@ELECTRONOOBS 6 лет назад
That's strange. Go to config.h, type cntrl+F in order to open the find tab adn search for MAXTHROTTLE variable and make sure it is 2000. And MINTHROTTLE is 1000. Keep up!
@dipanjanmaity6614
@dipanjanmaity6614 7 лет назад
hi electronoobs,can i use a gps module with this via I2C bus communication and a fpv camera for make it hitech drone
@especialistqap
@especialistqap 4 года назад
el control en arduino trabaja igual que un transmiter y receiver regular ?
@jakefreise7601
@jakefreise7601 6 лет назад
At 1:38 when you are listing the purpose of each connection you have SCL as data and SDA as clock, this is backwards AFAIK. The SDA pin is serially polled at the rate of SCL Other than that great video!
@shutdahellup69420
@shutdahellup69420 6 лет назад
Jake freise can these values be used for a 350 size drone with 1400kv motors?
@jamesnunieza4790
@jamesnunieza4790 6 лет назад
How about if I only use 2 motors? How would the configuration look like?
@bktechnologies88
@bktechnologies88 Год назад
This is so good I built mine and I want add a barometric sensor please how do I do it do I need to code 🙏🙏
@Raavanan_Veeran
@Raavanan_Veeran 6 лет назад
It is possible to fly a drone without the speed controller. (ie) from the receiver to the electronic speed controller. please answer my question.
@dabeasthalofan6276
@dabeasthalofan6276 2 года назад
So are the 5 volts for the flight controller supplied from the lipo battery or the esc’s?
@francoisguyot789
@francoisguyot789 5 лет назад
Is it possible to plug sensors to Arduino and read the values on the OSD ?
@bhudevsamanta6456
@bhudevsamanta6456 6 лет назад
Hii can I directly connect the ESC with brushless motor with receiver to test my brushless motor
@thefuturerocketboyisro
@thefuturerocketboyisro 2 года назад
THANK YOU SO MUCH BRO , T WILL BE USEFUL FOR MY DRONE PROJECT
@palashtiwari1880
@palashtiwari1880 6 лет назад
I would like to understand the procedure to make the radio transmitter and receiver..
@hardikminocha3149
@hardikminocha3149 5 лет назад
I have an ADXL345 Accelerometer (w/o Gyro). Can I use the same code as yours to calibrate and run that?
@elementalwattson
@elementalwattson 4 года назад
So you have two arduino nano for the receiver or what? I don't understand that part very well.
@espieyu2337
@espieyu2337 2 года назад
im using a win10 x64 it seems the multiwii 2.3 or 2.4 gui is not responding any ideas? i am using an arduino uno + MPU6050
@nabinbhagawati7069
@nabinbhagawati7069 5 лет назад
I want to use coreless brushed DC motors. Can I use this flight controller
@maxbarge766
@maxbarge766 7 лет назад
Hay i like your quadcopter project . It will be awesome and helpful if u add barometer and magnetometer for altitude holding and navigation . OR u can use sonar sensor for altitude holding and also obstacle avoidance . I hope to see this arduino based project to be more advanced . Thank you.
@kashishkitawatgo
@kashishkitawatgo 7 лет назад
can we use 20A esc's ?? and 1000kv brushless motor?
@manishrao8326
@manishrao8326 5 лет назад
We are making Hex copter then what will changes in program please tell ??
@muhammedsajilrahman1286
@muhammedsajilrahman1286 4 года назад
Excellent video thanks
@solanki-mayur7625
@solanki-mayur7625 4 года назад
Hey, my gyroscope is MU 2020, does it have to be programmed for Drone? It can be used by direct connection with Arduino!
@newssmartkids8862
@newssmartkids8862 7 лет назад
hello - any idea why the MPU6050 orientation on multiwii is continuously changing randomly. On clicking start on multiwii, the quadcopter image on the screen rotates in all direction uncontrollably. is something wrong? how do i correct it?
@deeseal9269
@deeseal9269 6 лет назад
Electronoobs.sir..i add barometer(bmp180 baro)..i2c pin...but not pogram it..1st.. open your brushed drone multiwii file...2nd.. open config.h and..do same..3rd.. open def.h...but i dont undersatand..how to pogram this baro..help me sir..
@dipakpatil3529
@dipakpatil3529 4 года назад
Why are you didn't connect BEC output from ESC to Vin pin of arduino nano?you connected BEC output from the ESC to 5v of nano .pleas reply
@MrCtronic
@MrCtronic 5 лет назад
God bless people like you that share their knowledge to the mortals around the world ! :D
@ltecsoluciones1026
@ltecsoluciones1026 6 лет назад
hola , gracias tenias toda la razón, utilice el enlace que me dejaste para configurar las esc y ya no pitan , no me encendían los motores por que quizás el radio control tiene otra configuración y me toco invertir el pin d3 con el d6 y ya encienden lo único que me falta es que al dejarlo sin acelerar los motores siguen funcionando que podría ser? gracias
@ELECTRONOOBS
@ELECTRONOOBS 6 лет назад
Eso es normal. Puedes quitar esa opción pero es mejor así. Piensa, si aceleras desde cero tendrás mucho mas turbulencias hasta que todos los motores tengan la misma velocidad y en ese instante el dron podría perder el control. Para eso cuando lo enciendes es mejor dejarlo a bajas rotaciones. Saludos!
@Yathracharitham
@Yathracharitham 6 лет назад
Can u make a arduino uno flight controller without accelerometer and gyro
@pranavasthanaDelhi
@pranavasthanaDelhi 4 года назад
Excellent video! I hope you are doing great. I had two question though. I plan to build a nano drone using coreless motor and i already have a flysky ct6b rx tx set. 1. Will the Multiwii code support flysky ct6b as it does not have a ppm output? 2. For coreless motors, what kind of motor driver/esc will be good or if its possible to make one? Thanks! Pranav
@lukejoel6070
@lukejoel6070 4 месяца назад
Same here bro I bought 720 coreless motor and a 350 lipo battery after that I found that motor has low thrust to lift so I'm clueless. I have bought them. Is there any way to fly with these components
@pranavasthanaDelhi
@pranavasthanaDelhi 4 месяца назад
Hi !@@lukejoel6070 , My conclusion is that for DIY drones its hard to keep them light enough for coreless motors to work. Better to go with brushless motors. If you want to use coreless motors then you will have to buy a flight control board which has inbuilt drivers for these motors(those are also cheap), you can then flash and configure betaflight. You may either buy the frame or 3d print.
@mathieurehala
@mathieurehala 7 лет назад
nice video ! i hope the next part will be soon uploaded ^^ comtinue like this ! :)
@ELECTRONOOBS
@ELECTRONOOBS 7 лет назад
Thank you very much!
@baasilbiniyamin5360
@baasilbiniyamin5360 6 лет назад
I am just making a 450 class drone and I want the flight controller to be Arduino but I have flysky transmitter, is there any ideas to link up and controller. Please help me I am new to drones
@MindBit3
@MindBit3 4 года назад
Is all of this applicable to fixed wings drones?
@hongingthorng5198
@hongingthorng5198 7 лет назад
I wondered can you possibly connected the 5V pin from the Arduino to Vcc pin from mpu6050 and then supply power from your computer to the boards? I thought you might risk burning the Arduino through connecting the board to your computer when you connected the 5V pin to other components.
@ELECTRONOOBS
@ELECTRONOOBS 7 лет назад
I'm not aware of that. I use arduino for more than 4 years and I never heard that. The USB 5V could suppl,y up to 1A of current. If you dont connect too much modules that could draw more than that, everything should be ok.
@alessandroaversa6378
@alessandroaversa6378 4 года назад
Hey man , nice video tutorial ! Can i ask you to update when you can the link of the material ?
@dipakpatil3529
@dipakpatil3529 4 года назад
Why are you didn't connect bec output pin to Vin pin of nano?
@adwxith_
@adwxith_ 6 лет назад
Hi brother. One more doubt. If I am not using BEC then I have to connect the signal only .is ground needed bcz I powered my arduino with 8 v regulator ...I am only powering reciver with bec
@kaitokid3529
@kaitokid3529 4 года назад
Can you help me pls, how can I make this into a Bluetooth control drone, what is the codes for that to happen?
@gamerguypvppvp7347
@gamerguypvppvp7347 6 лет назад
How can I set the channels via code, as i would like to read the values from serial from an wifi chip.
@shermzle
@shermzle 3 года назад
Is there possibly a way I could download the multiwii on mac? I downloaded it but it wont let me open it.
@sjchowdhury2287
@sjchowdhury2287 6 лет назад
thank you sooooooooooo much. now i know how to make a drone
@michaelrich7407
@michaelrich7407 3 года назад
Great explains! Thanks. Like!
@9100nash
@9100nash 6 лет назад
hey friend that mpu6050 is slowly drift on z axis.
@fahimhossain5778
@fahimhossain5778 6 лет назад
I have solder the board properly but in the java program its not simulating my gyro movement.what can be the problem?
@matteodietz9759
@matteodietz9759 3 года назад
how many esc‘s / servos can i control with an arduino uno/nano
@telemaxitv9065
@telemaxitv9065 4 года назад
nice job
@smitdmello8323
@smitdmello8323 9 месяцев назад
Can u make a radio transmitter and reciver with brushed or brushless esc without using arduino and with high amper rating (all homemade) i want to make a drone myself without buying readymate circuts
@dipanjanmaity6614
@dipanjanmaity6614 6 лет назад
Hi How can u determine the esc pin of the flight controller
@kerricbennett5350
@kerricbennett5350 7 лет назад
Sir...I still have not solved the error. Do you know what it means?
@leenadongre7104
@leenadongre7104 4 года назад
Can we use market flight controller in place of arduino flight controller
@mayankgangwani6293
@mayankgangwani6293 2 года назад
can i include nrf module in the flight controller pcb itself? please help
@vinnyzato
@vinnyzato 5 лет назад
hi i cant get the multiwii software to work on mac its wont open to the screen please help thanks
@vishnuramachandran4801
@vishnuramachandran4801 5 лет назад
How to calibrate same this same board using mission planner software
@hariombharti8846
@hariombharti8846 5 лет назад
may i use camera in it and connect to wifi.
@sukhee5
@sukhee5 7 лет назад
great video. Can you create the video drone(quadcopter) DYI, GPS using arduino step by step all connection and configuring and how to connecting each other all of things. And you created this controller and connecting that controller to drone.
@ELECTRONOOBS
@ELECTRONOOBS 7 лет назад
Ch Sukhee i will first build this easy drone. later i will start adding stuff like GPS, barometer and so on...
@sukhee5
@sukhee5 7 лет назад
thank you.
@yuzdrone5464
@yuzdrone5464 7 лет назад
++ and Opencv bro :D
@eric-janvandenbogaard9415
@eric-janvandenbogaard9415 7 лет назад
Nice ! yes, at this level it's also easy to enter for everyone, additions... well the sky is the limit i guess :)
@naseefalipv8104
@naseefalipv8104 6 лет назад
in my pc working only multiwii 64 the code will work on it?
@nerviantone
@nerviantone 2 года назад
Hi can you make a heavy lift drone with more than 6 bldc motor and build it's flight controller .?
@zaidhussain5206
@zaidhussain5206 5 лет назад
Can you fix the link for MPU6050 test , the current link is not working
@killsme6957
@killsme6957 Год назад
Hi Sir, Can I use this flight controller directly to my FS ppm controller?
@prithvik7512
@prithvik7512 6 лет назад
If I want to attach camere in it then how can I do that..???
@anshi2427
@anshi2427 7 лет назад
can you make welding inverter?
@cankantarc6507
@cankantarc6507 4 года назад
Can I turn it to a bluetooth controlled one?
@thanhphongphan
@thanhphongphan 7 лет назад
Nice video, it would be even more amazing if you chose the first way (code the FC yourself xD) Anw, have you experience noises when using MPU6050? I've heard somebody say that it's very noisy compare to other sensors such as L3G4200D. Thank you!
@ELECTRONOOBS
@ELECTRONOOBS 7 лет назад
Phong Phan Thanh well it's not the best IMU but works quite good.
@sumansrivastava1488
@sumansrivastava1488 3 года назад
Can i use this flight controller for brushed motor
@youtuberjinesh.27
@youtuberjinesh.27 6 лет назад
Awesome video but 1 help from where can I get your code
@Niechofingerstyle
@Niechofingerstyle 2 года назад
Pak ,saya mau bertanya saya menggunakan arduino uno r3 dan sensor mpu5060 apa yg harus di ubah dalam program multiwi,? Mohon bimbingannya trimah kasih
@kerricbennett5350
@kerricbennett5350 7 лет назад
Does anybody know why Multiwii would not detect board movement?
@sergiolopezmoriano3486
@sergiolopezmoriano3486 7 лет назад
Hola , es necesario el arduino en el mando? no vale uno tipico de radio control? Buen tutorial , enhorabuena.
@ELECTRONOOBS
@ELECTRONOOBS 7 лет назад
No es necesario, pero este tutorial es para un dron 100% con Arduino. Un transmisor/receptor normal con PWM o PPM también sirve.
@corneal35
@corneal35 5 лет назад
Tried the exact same code and 2.3 multiwii but all im getting is errors and crashes
@casandrachavez9298
@casandrachavez9298 5 лет назад
what if the current rating of ESC is 30A ?
@Sebastian-ng9oy
@Sebastian-ng9oy 3 года назад
Hey guys im running into a problem with multiwii. It sees the com port i used for the arduino nano but when i select it and click start the multiwii gui shutsdown. Has anyone else encountered this??
@rendimuhamadyusup4219
@rendimuhamadyusup4219 Год назад
Can i use brushed motor for this arduino flight controller?
@hawarimustapa8907
@hawarimustapa8907 2 года назад
May i know the flowchart of the coding for the flight controller
@watawonderfulworld
@watawonderfulworld 6 лет назад
+Electronoobs forgive my ignorance, but please tell me if ESC is required for all the drones? what about power distributor?
@fethimadafak3156
@fethimadafak3156 6 лет назад
watawonderfulworld yes every drone needs ESC. 1 ESC for every motor. Take ESC with 30A its safe
@imemyself2820
@imemyself2820 6 лет назад
Hello @Electronoobs, how is the Arduino an advantage over normal flight controllers? I read people saying it is slow and have huge latency working as a FC for RC models but maybe you could connect Arduino to a conventional F4/F7 flight controller and have both? Can an Arduino run new software like Mission Planner, CleanFlight or ArduCopter? Is the Arduino compatible with conventional RC Tx and Rx systems? Would adding all the sensors mean you can program everything in a running loop i.e. something like "IF (sensor detects something 30cm away) THEN (correct_the_opposite_way)" or how does it work ? Sorry for asking so much, lol
@ELECTRONOOBS
@ELECTRONOOBS 6 лет назад
iMeMySelf you heard right. Arduino is slower and has no advantage. The only advantage is that you could learn how to.make your own flight controllers how to program it, what components do you need etc. This video is for learning reasons. Arduino is quite good but almost any other especially designed flight controller board is better. Keep up!
@Cdswjp
@Cdswjp Год назад
should the male pins be 5.08mm?
@karthikj7628
@karthikj7628 4 года назад
Can you help me. When I try to move the MPU6050, it is not detecting on multiwii and when I try to upload the code, it is showing a lot of errors. Please answer ASAP
@VJTechnicals
@VJTechnicals 7 лет назад
Sir I want a code for brushed motors (brush less motor)I want to make it as cheap as possible
@-cncheechoo9062
@-cncheechoo9062 5 лет назад
it's great video. who in the world give a thumbs down?
@madatomyt3306
@madatomyt3306 6 лет назад
Bro can we use fly sky transmitter
@mahabubrahman4826
@mahabubrahman4826 5 лет назад
How to connect this with a commercial receiver and transmitter
@gauravchugh9919
@gauravchugh9919 7 лет назад
first of all thank you...this is what i am looking for...you earned a new subscriber. i want little modification...why you made receiver separately? i want to use digital pins of flight controller arduino to connect nrf24l01 module and control esc of motors ...all with only one arduino. but i don't know what and where i have to change multiwii code to work like this. can you share some knowledge on this?
@ELECTRONOOBS
@ELECTRONOOBS 7 лет назад
Using multiwii is easier to just use another Arduino as the receiver of the signal as any other RC controller has and leave the flight controller micro work with the PID control. I don't have a video for changingh the multiwii code. Take a look at this one: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-bxlJckevIEk.html
Далее
Arduino drone - Part2 Transmitter & Receiver
11:16
Просмотров 189 тыс.
What's the difference? Arduino vs Raspberry Pi
6:21
Просмотров 1,8 млн
Drones | How do they work?
10:13
Просмотров 2,3 млн
Build an Automated Hydroponic System
15:21
Просмотров 1,4 млн
You can learn Arduino in 15 minutes.
16:34
Просмотров 9 млн
Arduino drone - Part3 Drone built
8:46
Просмотров 129 тыс.
I turned my $20 Hairdryer into a JET ENGINE
13:37
Просмотров 666 тыс.
Building a rocket bird (ornithopter)
20:40
Просмотров 2,2 млн
Building a DIY REAPER Drone... Ended Badly
9:19
Просмотров 2,1 млн
Choose a phone for your mom
0:20
Просмотров 7 млн
Собираем комп за 500 000 рублей!
6:44:35