Arduino DRONE II Part 1 receiver PWM read

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Hi guys. This is a second project of the Arduino based drone. In the past video series we've used the MultiWii platform for the flight controller. Now I want to make my own code for the flight controller.
    This video series will be divided in a few parts. This is the first one where we read the input signal from a commercial radio receiver. Next we read the IMU data and create the PID algorithm for 2 axis. Finnaly we create the interrupt that will write the PWM signal to 4 ESCs for the motors.
    Help my projects on Patreon : / electronoobs
    my Q&A page: electronoobs.co...
    Canal en Español: / electronoobs en español
    Thanks to Joop Brokking: • YMFC-3D part 6 - Build...
    -----------------COUPONS-------------------
    Radiolink AT10II: goo.gl/B5bvto
    Crealitu CR10: www.gearbest.c...
    Coupon code: "11CR10EU"
    Creality CR10 MINI: www.gearbest.c...
    COUPON: CR10MINI
    Anet E10: www.gearbest.c...
    Coupon code: "ANET10"
    4k XIAOMI drone: www.gearbest.c...
    ________________________________________________________________
    -----------------LINKS-------------------
    Webpage tutorial: www.electronoob...
    PID video: • PID brushless motor co...
    PID webpage: www.electronoob...
    Previous series: • Arduino drone - Part1 ...
    Drone build webpage: www.electronoob...
    STL files: www.electronoob...
    ---------------MATERIAL---------------
    Full part list: www.electronoob...
    Arduino NANO: www.gearbest.c...
    MPU6050: www.gearbest.c...
    LIPO battery: www.ebay.com/it...
    ESC 12A: www.ebay.com/it...
    1804 brushless motor: www.ebay.com/it...
    5030 propellers: www.ebay.com/it...
    LIPO connectors: www.ebay.com/it...
    Slide switch: www.ebay.com/it...
    Drone body: DIY : www.electronoob...
    Or : www.ebay.com/it...
    ---------------SCHEMATICS-----------
    Full schematic: www.electronoob...
    ESC calibrate: www.electronoob...
    Lipo connection: www.electronoob...
    Propeller spin direction: www.electronoob...
    1 ch schematic: www.electronoob...
    4 ch schematic: www.electronoob...
    --Connect the receiver as shown in the schematic above and upload this example:
    --------------------CODE------------------
    One channel example: www.electronoob...
    Four channels example: www.electronoob...
    ESC calibrate: www.electronoob...
    Like share and subscribe to motivate me. Thank you

Комментарии • 63

  • @ELECTRONOOBS
    @ELECTRONOOBS  7 лет назад

    Stay tuned for the next part. Check the description for all the codes. Also the ESC calibrate code. All the schematics, ect...
    if you consider helping my project, use the links above to buy the parts or check my Patreon page: www.patreon.com/ELECTRONOOBS

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 лет назад

      I use design spark and easyEDA for my schematics. But I design the schematics for the videos in Photoshop so anyone could understand..

    • @AshishEmbedd
      @AshishEmbedd 6 лет назад

      your Magnetometer X axis is not in same direction as your MPU6050 did that work correctly , i have no experience with magnetometer so please explain me if it works.

  • @IndraLumantow
    @IndraLumantow 7 лет назад +2

    Nice broo.. i will wait for part 2..

  • @yvesarbour1946
    @yvesarbour1946 7 лет назад +1

    Great bjob... looking forward to other parts

  • @anweshpatel3098
    @anweshpatel3098 7 лет назад +1

    awesome video ! I was making a same drone but was not getting this part to work properly, thanks for the help!

  • @MCsCreations
    @MCsCreations 7 лет назад +1

    Bro, I hate the idea of using Arduino in a quadcopter/drone. But love your opening with the AC/DC music, so here I am. LOL

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 лет назад +1

      Thank you. The idea of my videos is not to build professional projects but to learn how they work... Arduino for drones is not the best but the idea is to learn how to read data, write data, create PID, etc...
      Thank you and keep up!

    • @MCsCreations
      @MCsCreations 7 лет назад

      Electronoobs Oh, THAT idea I like! Now I got it! :D

  • @ricardoalcantara5846
    @ricardoalcantara5846 7 лет назад +1

    You are really good at this!!!

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 лет назад

      Ricardo Alcantara thank you! Gracias

  • @chisingchou
    @chisingchou 6 лет назад

    thank you so much for explaining every steps in details!

  • @harshdokania6616
    @harshdokania6616 4 года назад

    Your explanation was really great and helpful. Thanks a lot :)

  • @garethronaldo8692
    @garethronaldo8692 7 лет назад +1

    Good job dude 👍

  • @vishal01mehra
    @vishal01mehra 7 лет назад +2

    loved it

  • @limitlesslife9409
    @limitlesslife9409 4 года назад

    Love your videos 🖤

  • @sumit_kashyap..
    @sumit_kashyap.. 7 лет назад +1

    Man another great video.. :)

  • @2299alexander
    @2299alexander 6 лет назад

    Hola , estoy a la espera de estos tutoriales en su canal electronoobs España , gracias y excelente trabajo !!

  • @ingalexandergarciaperez4518
    @ingalexandergarciaperez4518 7 лет назад +1

    Sos un crack

  • @BLAZMOD
    @BLAZMOD 7 лет назад +2

    Tanks 💕

  • @neail5466
    @neail5466 7 лет назад +1

    I was expecting this..but why pwm...ppms are hasle Free , in terms of wireing at least, if you are going get involved in such plz mention...and really great effort you are putting in.

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 лет назад +2

      In the past series I've already used PPM. A lot of you wanted PWM as well. Keep up!

  • @diyeverything6591
    @diyeverything6591 7 лет назад +2

    Thank you

  • @guywatcho1641
    @guywatcho1641 7 лет назад

    Hi thanks for your Video. I have also built my own quadcopter with own Code. Please which software did you use to build your full schematic? I found it nice...

  • @ryanruthrhona
    @ryanruthrhona 7 лет назад

    hi, great video!! When will part 2 be out?

  • @vipulchari3578
    @vipulchari3578 6 лет назад

    Plz can u make one with Bluetooth module and controlled it over phone , for lack of Singhal coverage we can use 5.8ghz antenna to increase the range of bluethooth module and use it with phone ,this will remove the trouble of making reciver ,this drone is awesome I would love to see the 2bd part of ur brushed drone

  • @edwinonoja4169
    @edwinonoja4169 2 года назад

    You video is awesome
    I'm working on a drone but am stock can I use brushed motors instead of brushless

  • @ssenate66
    @ssenate66 4 года назад

    HELP: I know this is a couple years old but how did you wire the power to the ESCs

  • @stephantommy7894
    @stephantommy7894 6 лет назад

    can i power the arduino through a bec from my esc ? i just dont like to use a high voltage for an arduino

  • @jeone5342
    @jeone5342 6 лет назад

    Sir, can I use pinchangeinterrupt library. Does it works good?

  • @buddhikadeshapriya7869
    @buddhikadeshapriya7869 2 года назад

    your explanations very good. can you do a video how to create flight controller with mpu9250 and drone controller coding

  • @vishalshinde1775
    @vishalshinde1775 5 лет назад

    Thank you sir ..

  • @satyajiwindy
    @satyajiwindy 7 лет назад

    very nice..

  • @geniusgen1212
    @geniusgen1212 5 лет назад

    thank you for sharing the code, even though it makes my head dizzy to edit it and now all that's left is making a quadcopter with the PWM receiver,
    Can you help me properly? , 😀

  • @punjabiwithjasman135
    @punjabiwithjasman135 6 лет назад

    What is mutiwii ...plz reply sir..
    Thanks for that awesome tutorial

  • @f9techmind60
    @f9techmind60 5 лет назад

    SIR ...FROM WHERE I CAN GET THIS CODE FOR adruino

  • @andrewshkolik
    @andrewshkolik 6 лет назад

    Only one problem with this solution that Arduino micros() finction has a precice of +-4us (kind of jitter), that allmost 1% of movemet from neutral to max\min. It's too match for me. I started my own project that should extend life of my old transmitter, but even without embedded arduino functions all I got is +-1-1.5us. This is not so bad, but little annoying. For some planes it's ok, but on my WW2 12 scale warbirds it's cause awful unstable flight :(

  • @4funrc11
    @4funrc11 7 лет назад +1

    Radio Shack? Well, unfortunately they are mostly out of business (closed stores, which really sucks!) in the US.

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 лет назад +1

      That's all around the world. Now we have online store

  • @chinmaykulkarni7835
    @chinmaykulkarni7835 4 года назад

    How much PWM input you give to ESC

  • @tristunalekzander5608
    @tristunalekzander5608 5 лет назад

    Does anyone know if going the Arduino way is cheaper than a traditional build?

  • @vovanikotin
    @vovanikotin 7 лет назад +1

    Why dont you create own PCB board? Would be much smaller.

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 лет назад +2

      I will soon!

    • @vovanikotin
      @vovanikotin 7 лет назад +1

      Also, I strongly recommend you to research quaternions. Method for describing rotation using mixed acc and gyro data.
      Using of acc data only not very good and dangerous method for quadcopter.

    • @vovanikotin
      @vovanikotin 7 лет назад

      There are no need special hardware for making PCB, all you need is сlothes iron, laser printer, hydrogen peroxide, salt and lemon acid.
      /watch?v=mv7Y0A9YeUc

    • @vovanikotin
      @vovanikotin 7 лет назад +1

      Yeah, I making right now, not quad but USV (sea drone). Using gps, quaternions, and arduino mega, but wrinting code not in Arduino IDE, but in Atmel Studio at C lang, much more possibilities and less firmware size.

    • @GRBtutorials
      @GRBtutorials 7 лет назад +1

      Also, you can order 10 PCBs of less than 100x100 mm for just $2 (all of them) in JLCPCB/EasyEDA. GreatScott! has some videos on this (ruclips.net/video/Fj0XuYiE7HU/видео.html )

  • @rodrielpinzaespejo260
    @rodrielpinzaespejo260 6 лет назад

    Podrías hacerlo en español?? Gracias!!

  • @hansdegroot652
    @hansdegroot652 2 года назад

    When you exlsin it it all seems so simple and abvious. But i always get stuck some hiw like my mah watt meter is neasuring about5 amp hours leaving my batter when nothing is connected just becayse if noise ir false readings i tried to set minimum thresholds to ignore some readings. But still just readig voltage values which us easy does not worj for me you read pwm by asuming that afeter a rusecyouvshoyld get a,drop next and calculate the time this,way. But i sm sue mutphy will think of s9me thing to mes this uo forcme.

  • @taztazmaniman9438
    @taztazmaniman9438 7 лет назад

    Hey ! Good job. Can't we do same with nrf24l01 ?!

    • @ELECTRONOOBS
      @ELECTRONOOBS  7 лет назад

      Yes you can but with NRF you already receive binary values from 0 to 255 so we don't have to use interruption to read the values for each cahnnel. Thank you!

  • @krushilpatel602
    @krushilpatel602 6 лет назад

    Bro plzz send the link to dwnld arduino programming app in windows 7.plzzz

  • @vivekvishwakarma9774
    @vivekvishwakarma9774 5 лет назад

    Can I control drone through Bluetooth module?

    • @niteshsingh8296
      @niteshsingh8296 5 лет назад

      Yes you can. But the range will be very less.

  • @hilaltube4693
    @hilaltube4693 3 года назад

    i2c error on multiwii gui thanks.

  • @ittachidz5371
    @ittachidz5371 3 года назад

    Please make us a receiver like the one we buy from the market

  • @nitinsurywanshi8367
    @nitinsurywanshi8367 2 года назад

    20 Kim dron med agri clchor

  • @saladino-3974
    @saladino-3974 6 лет назад

    y el codigo, la programacion ?

  • @jekzachem4241
    @jekzachem4241 7 лет назад

    maybe it's time...maybe it's better to try on stm32 and faster insights and more ?!?!?!?!?
    может пришло время...может лучше попробовать на stm32 и быстрее и выводов больше ?!?!?!?!?

  • @aiacademybysid5631
    @aiacademybysid5631 6 лет назад

    U have copied alot of joop brokking