Saltar al contenido
de drones tu sitio web

Drone Arduino – Part3 Construido Drone

julio 13, 2019
Drone Arduino - Part3 Construido Drone

En primer lugar lo siento por mi palabra acento "ESC". LOL

Drone completo basado en Arduino. El tutorial se divide en algunas partes. En este video, construyo un drone usando todas las partes de los otros dos videos. Encontrarás todos los códigos, diagramas y ejemplos a continuación. Si desea más, espere los próximos videos donde le mostraré cómo las palabras PID y cómo crear nuestro propio código para el controlador de vuelo.

Ayuda mis proyectos en Patreon: https://www.patreon.com/ELECTRONOOBS
Mi página de preguntas / respuestas: http://electronoobs.com/eng_preguntas.php
Canal en español: https://www.youtube.com/channel/UCL_QvUUeriC6q610RCXDlSQ

Parte 1: https://www.youtube.com/watch?v=S8TSkGQ2EWY&t=2s
Parte 2: https://www.youtube.com/watch?v=t2AHs41a1cU

—————— VÍNCULOS ——————–
Fuente de origen STL: https://www.thingiverse.com/thing:1163884
Página de construcción de drones: http://www.electronoobs.com/eng_robotica_tut5_1.php
Archivos STL: http://www.electronoobs.com/eng_robotica_tut5_1_parts1.php

Página web del controlador de vuelo: http://www.electronoobs.com/eng_robotica_tut5_3.php
Página Web del transmisor / receptor: http://www.electronoobs.com/eng_robotica_tut5_2.php
Página tutorial completa: http://www.electronoobs.com/eng_robotica_tut5.php
Lista de precios de la página web / partes: http://www.electronoobs.com/eng_robotica_tut5_1_2.php

——- Videos anteriores ——-
Biblioteca NRF24: http://www.electronoobs.com/images/Arduino/tut_2/NRF24.zip
Varias descargas: http://www.electronoobs.com/eng_robotica_tut5_3_code1.php
Lista de piezas (fotos): http://www.electronoobs.com/eng_robotica_tut5.php
http://www.electronoobs.com/eng_robotica_tut5.php
Tutorial PID: http://www.electronoobs.com/eng_robotica_tut6.php

—————- MATERIAL —————-

Batería LIPO: http://www.ebay.com/itm/T-Plug-11-1V-1500mAh-25C-3S-VOK-Discharger-Lipo-Battery-For-RC-Helicopter-/192064598545?hash=item2cb7f13211:g:- moAAOSw2xRYZLf9
ESC 12A: http://www.ebay.com/itm/4-x-Emax-12A-Speed-Controller-ESC-with-SimonK-Firmware-For-FPV-QAV250-Quadcopter-/162242575330?hash=item25c6693be2:g:4EwAA1FWL1BIT –
Motor sin escobillas 1804: http://www.ebay.com/itm/4x-Brushless-Motor-1804-KV2400-for-220-240-Blackout-Mini-Quadcopter-2400kv-/131520498802?hash=item1e9f3b8c72:g:blcAAOSw~dbYZYf
5030 hélices: http://www.ebay.com/itm/8-pairs-Gemfan-5030-5-3-3-Blade-Propeller-for-QAV250-QAV210-Quadcopter-green-/121723124570?hash=item1c57437b5a:g:6n4AAwWLVZVwroq
Conectores LIPO: http://www.ebay.com/itm/10-Pairs-20pcs-T-Plug-Connector-Female-Male-Deans-For-RC-Lipo-Battery-Helicopter-/282414841624?hash=item41c13c7f18:g:644AAOSwol5Y3H6I
Interruptor deslizante: http://www.ebay.com/itm/50-Pcs-2-Position-SPDT-1P2T-3-Pin-PCB-Panel-Vertical-Slide-Switch-LW-/171865305033?hash=item2803f86fc9:g:8AAAAOSw4UtWtfs

Controlador de vuelo: bricolaje
Radio receptor / transmisor: bricolaje
Cuerpo del drone: bricolaje: http://www.electronoobs.com/eng_robotica_tut5_1_parts1.php
oro: http://www.ebay.com/itm/250mm-Multicopter-Quadcopter-Racing-Drone-Glassy-Carbon-Frame-Kit-FPV-ED-/132055523479?hash=item1ebf1f6097:g:nQwAAOSw9GhYpUv

—————- SCHEMATIC ————
Calibración ESC: http://www.electronoobs.com/images/Robotica/tut_5/ESC_calibrate.png
Conexión lipo: http://www.electronoobs.com/images/Robotica/tut_5/LIPO_connection.png
Dirección de rotación de la hélice: http://www.electronoobs.com/images/Robotica/tut_5/Propeller_direction.png

——————— CÓDIGO ——————-
Calibración ESC: http://www.electronoobs.com/eng_robotica_tut5_1_code1.php

——- Videos anteriores ——-
Código del emisor: http://www.electronoobs.com/eng_robotica_tut5_2_2.php
Código de destino: http://www.electronoobs.com/eng_robotica_tut5_2_4.php
Receptor de prueba: http://www.electronoobs.com/eng_robotica_tut5_2_3.php
propagación: http://www.electronoobs.com/eng_robotica_tut5_3_code1.php

Te gusta compartir y suscribirte para motivarme. Gracias. (TagsToTranslate) arduino (t) drone (t) multiusuario (t) PID (t) DIY (t) house (t) cheap (t) NRF24 (t) PPM (t) giroscopio (t) controlador de vuelo ( t) transmisor (t) receptor

source

Entradas relacionadas

Los comentarios están cerrados.

Comentarios (42)

But what if the drone and the remote lost communication ?

arduino nano to tha canfigaretion to gps that a multiwii 2.4 !!!!*i question for you ?.

brother can you help me how to use bluetooth module or my own wifi module instead of the other part you attached in the last which is radio reciever something

A very great project… thanks a lot..but i am using a 4 channel.. so i am unable to arm the quadcopter in order to fly it.. i am stuck.please help..

Great Project and Good Going…!!!I am a beginner for DIY drone…Can we use Micro Coreless motors in this project and connect the motors directly to Arduino Flight controller…without using ESC..? Thank You.

where is drone body prrintout link

Hi.. I'm also building the quadcopter using arduino nano but the tx n rx which I'm using is fsia6 and when i configure the multiwii software same as on the video duration of 6:18 apprx and when I'm turning on the tx there is no chnge on the throttle,yaw,pitch n roll.. how i can resolv that.. please help asap

The connection is super delayed

The connection does not work for me, can you help me.

Could you make a video where you fly this drone with your homemade rc controller with the playstation joysticks

awesome i've made it to this point, i can now control motor speed from my remote controller. all that is left is to actually fly my drone somewhere. keep it up! <3

Primero, muchas gracias. En segundo lugar, hay algunas preguntas que me gustaría hacer

IS it possible to use any receiver to connect to my drone instead of using the one created in the video?

trust me, this guy is a legend!!

When I connect the flight controller ,in the java unit it shows com 5 instead of com 3 it doesn't connect with it

Where I connect the buzzer

I have shown all 3 part of this video . I am so much confused about PPM & PWM . I want to understand the code separately Please help me.

is it necessary to calibrate the escs??

channels throttle with a duty cycle from 0 to 100% I use DC motor . How do I fix it? please help me #include <SPI.h>#include <nRF24L01.h>#include <RF24.h>#include <Servo.h>//Define widthsint pwm_width_2 = 0;int pwm_width_3 = 0;int pwm_width_4 = 0;int pwm_width_5 = 0;int pwm_width_6 = 0;int pwm_width_7 = 0;Servo PWM2;Servo PWM3;Servo PWM4;Servo PWM5;Servo PWM6;Servo PWM7; //We could use up to 32 channelsstruct MyData {byte throttle; //We define each byte of data input, in this case just 6 channelsbyte yaw;byte pitch;byte roll;byte AUX1;byte AUX2;};MyData data;const uint64_t pipeIn = 0xE8E8F0F0E1LL; //Remember that this code is the same as in the transmitterRF24 radio(9, 10); void resetData(){//We define the inicial value of each data input//3 potenciometers will be in the middle position so 127 is the middle from 254data.throttle = 0;data.yaw = 127;data.pitch = 127;data.roll = 127;data.AUX1 = 0;data.AUX2 = 0;}/**************************************************/void setup(){ //Set the pins for each PWM signal PWM2.attach(2); PWM3.attach(3); PWM4.attach(4); PWM5.attach(5); PWM6.attach(6); PWM7.attach(7); //Configure the NRF24 module resetData(); radio.begin(); radio.setAutoAck(false); radio.setDataRate(RF24_250KBPS); radio.openReadingPipe(1,pipeIn); //we start the radio comunication radio.startListening();}/**************************************************/unsigned long lastRecvTime = 0;void recvData(){while ( radio.available() ) {radio.read(&data, sizeof(MyData));lastRecvTime = millis(); //here we receive the data}}/**************************************************/void loop(){recvData();unsigned long now = millis();//Here we check if we've lost signal, if we did we reset the values if ( now – lastRecvTime > 1000 ) {// Signal lost?resetData();}pwm_width_2 = map(data.throttle, 0, 255, 1000, 2000); //PWM value on digital pin D2pwm_width_3 = map(data.yaw, 0, 255, 1000, 2000); //PWM value on digital pin D3pwm_width_4 = map(data.pitch, 0, 255, 1000, 2000); //PWM value on digital pin D4pwm_width_5 = map(data.roll, 0, 255, 1000, 2000); //PWM value on digital pin D5pwm_width_6 = map(data.AUX1, 0, 255, 1000, 2000); //PWM value on digital pin D6pwm_width_7 = map(data.AUX2, 0, 255, 1000, 2000); //PWM value on digital pin D7//Now we write the PWM signal using the servo functionPWM2.writeMicroseconds(pwm_width_2);PWM3.writeMicroseconds(pwm_width_3);PWM4.writeMicroseconds(pwm_width_4);PWM5.writeMicroseconds(pwm_width_5);PWM6.writeMicroseconds(pwm_width_6);PWM7.writeMicroseconds(pwm_width_7);}//Loop end

channels throttle with a duty cycle from 0 to 100% I use DC motor . How do I fix it? please help me /* Receiver code for the Arduino Radio control with PWM output * * THIS ONLY WORKS WITH ATMEGA328p registers!!!! * It gives a nice PWM output on pins D2, D3, D4, D5, D6 and D7. Still working on it… * * Install the NRF24 library to your IDE * Import the servo library as well * Upload this code to the Arduino UNO * Connect a NRF24 module to it: Module // Arduino UNO GND -> GND Vcc -> 3.3V CE -> D9 CSN -> D10 CLK -> D13 MOSI -> D11 MISO -> D12This code receive 6 channels and create a PWM output for each one on D2, D3, D4, D5, D6 and D7Please, like share and subscribe : https://www.youtube.com/c/ELECTRONOOBS*/#include <SPI.h>#include <nRF24L01.h>#include <RF24.h>#include <Servo.h>//Xác định chiều rộng xungint pwm_width_2 = 0;int pwm_width_3 = 0;int pwm_width_4 = 0;int pwm_width_5 = 0;int pwm_width_6 = 0;int pwm_width_9 = 0;Servo PWM2;Servo PWM3;Servo PWM4;Servo PWM5;Servo PWM6;Servo PWM9; //Chúng tôi có thể sử dụng tối đa 32 kênhstruct MyData {byte throttle; //Chúng tôi xác định từng byte dữ liệu đầu vào, trong trường hợp này chỉ 6 kênhbyte yaw;byte pitch;byte roll;byte AUX1;byte AUX2;};MyData data;const uint64_t pipeIn = 0xE8E8F0F0E1LL; //Hãy nhớ rằng mã này giống như trong bộ phátRF24 radio(7, 8); void resetData(){//Chúng tôi xác định giá trị ban đầu của mỗi đầu vào dữ liệu//3 chiết áp sẽ ở vị trí giữa nên 127 là trung bình từ 254data.throttle = 0; // kenh gadata.yaw = 127; // muon cho duoi venh len khi mat tin hieu thi chinh len = 0 hoac =255data.pitch = 127; // gia tri nay gia tri ban dau cung nhu gia tri khi mat songdata.roll = 127; // dieu chinh cho no neu bi mat song no se ve gia tri naydata.AUX1 = 0; // kenh nay gan buzi coi de bao dong tim may bay khi no mat song de= 0 hoac =1 tuydata.AUX2 = 0; //kenh nay co the gan den tuy de= 0 hoac =1 tuy}/**************************************************/void setup(){ //Đặt chân cho mỗi tín hiệu PWM PWM2.attach(2); PWM3.attach(3); PWM4.attach(4); PWM5.attach(5); PWM6.attach(6); PWM9.attach(9); //Cấu hình mô-đun NRF24 resetData(); radio.begin(); radio.setAutoAck(false); radio.setDataRate(RF24_250KBPS); radio.openReadingPipe(1,pipeIn); //chúng ta bắt đầu truyền thông vô tuyến radio.startListening();}/**************************************************/unsigned long lastRecvTime = 0;void recvData(){while ( radio.available() ) {radio.read(&data, sizeof(MyData));lastRecvTime = millis(); //ở đây chúng tôi nhận được dữ liệu}}/**************************************************/void loop(){recvData();unsigned long now = millis();//Ở đây chúng tôi kiểm tra xem chúng tôi có bị mất tín hiệu hay không, nếu co chúng tôi đặt lại giá trịif ( now – lastRecvTime > 1000 ) {// neu Mất tín hiệu?resetData(); // thi nhay ve gia tri trong resetdata xem ben tren}pwm_width_2 = map(data.throttle, 0, 255, 1000, 2000); //Giá trị PWM trên pin kỹ thuật số D2pwm_width_3 = map(data.yaw, 0, 255, 1000, 2000); //PWM value on digital pin D3pwm_width_4 = map(data.pitch, 0, 255, 1000, 2000); //PWM value on digital pin D4pwm_width_5 = map(data.roll, 0, 255, 1000, 2000); //PWM value on digital pin D5pwm_width_6 = map(data.AUX1, 0, 255, 1000, 2000); //PWM value on digital pin D6pwm_width_9 = map(data.AUX2, 0, 255, 1000, 2000); //PWM value on digital pin D7/*    * Chúng tôi trừ 1000 và nhân với 2 để nhận tín hiệu PWM    * với chu kỳ nhiệm vụ từ 0 đến 100% con dang thu nghiem*///Bây giờ chúng ta viết tín hiệu PWM bằng chức năng servoPWM2.writeMicroseconds(pwm_width_2); PWM3.writeMicroseconds(pwm_width_3); PWM4.writeMicroseconds(pwm_width_4);PWM5.writeMicroseconds(pwm_width_5);PWM6.writeMicroseconds(pwm_width_6);PWM9.writeMicroseconds(pwm_width_9);}

Can i use the bluetooth module for not using the transmitter and receiver but Now leave the connectivity issues because if it would possible then it will be asset for me and can u suggest me about this soon

can i use l298n module to control the propellers?

can this drone lift an action camera?

Nice work

awesome tutorials…helped me a lot…….thanks..

Can we use dc motor with motor driver instead of brushless motor

how to print drone body on paper?cant find pdf

Thank you brother, how to make low cost mini drone

Is this enough strong to lift an actioncqmera?

Why do u used two nano in the drone .is it possible to mount the imu and nrf module on single nano by decreasing the no.of channels

Wh the code can't work Give me solution

There are very professional and cheap flight controllers with speed controllers and IMUs. Problem is the algorithms eliminating sensor reading errors and proper flight stability. You need quite a calc power and fast mcu to achieve reasonable flight effect. Those algorithms are really sophisticated.

sir,the calibration of my ESC is not functioning in proper waythe speed of the motor automatically decreases when the value goes avobe1500.I'm helpless pls do reply to my problem 's solution soon as i have been stucked in the middle of my project and i have spent much on buying the motors and escs,pls reply to my problem by a solution sir….

Can you please make a video where you explain de code from the flight controller?

Sir i make flyght control..and tx rx…..and all other thing…but not smooth flying..plz sir add more sanso…baro..and other thing…i wait your next arduino base drone vedio..

Plz sri add more sansor….

Could you please explain what aux 1& aux 2 do?

you first said you gonna use dc brush motors ?????

It says could not find java SE run time environment even I already in installed it

How can I install multiwii software in my windows pc

Very nice project 🙂

i didnt have 3d printer. please give me the link of 2d file of frame

A %d blogueros les gusta esto: