Full Guide How to make ESP32 Quadcopter | Code and Schematic

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024
  • Github:
    github.com/pra...
    In my repository in GitHub, you will find code and schematic for the flight controller. There is also a bill of materials list to refer.
    For indoor flight keep p gain of pitch and roll to be 0.6
    And for outdoor flight keep p gain of pitch and roll to be 0.75
    This is done considering the wind rush in outdoor conditions
    Patreon
    patreon.com/Pr...

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

  • @manishkumartiruwar
    @manishkumartiruwar 9 месяцев назад +6

    i am also a fan of joop brokking. that guy is so humble . appreciate your work . pratik keep up the good work.

    • @pratikphadte
      @pratikphadte  9 месяцев назад +3

      Yes he’s the goat! Thank you!

  • @Lander1202
    @Lander1202 9 месяцев назад +3

    one of the most stable flight 🎉🎉🎉

  • @SKHROSX
    @SKHROSX 2 месяца назад +2

    OSM brother,
    really loved your piloting confidence and risking those PC.
    even though i am seeing this video, i was afraid 😁😁.
    liked your confidence even more when you takeoff again 7:30 .
    Nice Work

  • @manishkumartiruwar
    @manishkumartiruwar 9 месяцев назад +3

    try some padding for the setup (mpu6050 ) , it will help with the pid control.

    • @pratikphadte
      @pratikphadte  9 месяцев назад +1

      Yes I’ll try the padding and see the results, thanks for sharing.

  • @GDub1958
    @GDub1958 3 месяца назад

    I still need to go back and watch again your PID tutorial.
    Does this system achieve anywhere close to flying a typical DJI?

    • @pratikphadte
      @pratikphadte  2 месяца назад

      Hello sir, no this quad doesn’t have a dji level flight but it’s good enough for a student to learn about flight mechanics and diy drones. Also this quad doesn’t have an altitude hold function.

  • @g.a5024
    @g.a5024 Месяц назад +1

    and can u make a tutorial of how you made the drone ? thank you

    • @pratikphadte
      @pratikphadte  22 дня назад

      This is more or less the same video😅, you can refer this video and connect some dots from other videos in RUclips. Thank you.

  • @andreykorolev136
    @andreykorolev136 9 месяцев назад +2

    Respect!

  • @techknowledge9424
    @techknowledge9424 5 месяцев назад +1

    Sir could you upload a video of how you are making connection of soldier pcb briefly.

    • @pratikphadte
      @pratikphadte  5 месяцев назад

      Hello, It’s a simple process, you have to just follow the schematic and place components and then solder, it’s best if you try the circuit on a breadboard and then imagine how
      It would look on a prototype board and then begin with soldering.

  • @TusharJ-mr8js
    @TusharJ-mr8js 5 месяцев назад +1

    Hi Pratik, I have an ESP32 drone similar to yours, but I'm having trouble finding the right PID values. Could you tell me how you obtained yours?

    • @pratikphadte
      @pratikphadte  5 месяцев назад +1

      Hello, so I have made a easy pid tuning via WiFi of esp32 I have mentioned here in my video
      ruclips.net/video/kl3Dlm11AEQ/видео.htmlsi=LJ2dC_bNEsE7YxGx
      Also if u have the same setup u can try the roll and pitch values as below
      P-0.7
      I=0
      D= 0.0085

  • @TMADZ0712
    @TMADZ0712 Месяц назад +1

    hi im trying to build quadcopter with esp32 but with coreless motor do i need to change anything to the code because im using mosfet as motor driver

    • @pratikphadte
      @pratikphadte  Месяц назад +1

      That’s terrific, You need to change the motor write protocol, maybe use analog write instead of servo write.

  • @g.a5024
    @g.a5024 Месяц назад +1

    can u provide us with list of components ? thanks in advance

    • @pratikphadte
      @pratikphadte  22 дня назад

      It’s there in my GitHub. I’m and excel file.

  • @TrungHaiPham-p5g
    @TrungHaiPham-p5g 2 месяца назад +1

    Hello Pratik Phadte, I'm Hai from Vietnam. I watched your tutorial video on making an ESP quadcopter and I really admire you. Currently, my team and I are developing a similar device but we are facing some issues with testing the PID. Could we ask you some questions to help us solve our problems? May I connect with you on some social networks like Facebook or Instagram? Thank you very much.

    • @pratikphadte
      @pratikphadte  2 месяца назад

      Hello Trung, thank you for your kind words. I am amazed to see that you all are working on it! And good luck to you!. I would suggest you to watch my videos and the resources in my videos carefully to solve your problems. I am available on Patreon, if you would like to get personal guidance, I am doing it only for my paid members on Patreon, due to lack of time I am unable to help everyone, please take this is a good way, thank you! And I again appreciate your comment and your words!

  • @umriino3200
    @umriino3200 8 месяцев назад +2

    Hello ive just build drone like yours but mine keep tilting forward ive change the pid setting many times but still the same..

    • @pratikphadte
      @pratikphadte  8 месяцев назад +2

      Hello, that’s good to hear that you have built it!!.
      I have some questions about it , can u check these initially?
      1. Are all the ESC calibrated to start at the same time?
      2.Are all the motors are of the same kv rating?
      3. Did you keep the quadcopter on spirit level surface till the calibration is done?
      4. Did you check the IMU values on the serial monitor?

  • @InfernoisLive-i7
    @InfernoisLive-i7 7 месяцев назад +2

    My baud rate issu is solverd but,The drone keep tilting forward the values of mpu6050 on the serial monitor 1.50 and 1.80 is it necessary for a stable flight to have both the pitch and roll values to be 0 initially please help!!

    • @pratikphadte
      @pratikphadte  7 месяцев назад

      Yes, so initially we keep the quad on a leveled surface for 10 seconds to get the gyro calibration, once that is done you are set to fly the quad, its mentioned in video, did you try the same?
      To be sure, try printing the values of the gyros after calibration step.

    • @InfernoisLive-i7
      @InfernoisLive-i7 7 месяцев назад

      @@pratikphadte yes I tried, I'd did the same as shown in your tutorial bt still the drone is tilting
      One more thing I noticed that the motor 1 is fast when the throttle stick is slightly mover sometimes its just regulate its speed without any stick movement and sometimes its just stay steady bt when the throttle is increasing the result is same the drone just lift from the front side the ese are also calibrated.🥲

    • @pratikphadte
      @pratikphadte  7 месяцев назад

      @@InfernoisLive-i7 I think you should print the gyro rates after calibration and observe if they are zero

    • @InfernoisLive-i7
      @InfernoisLive-i7 7 месяцев назад

      @@pratikphadte ohh yes it was not zero after calibrated I just adjest it does it need to be exact zero??

    • @pratikphadte
      @pratikphadte  7 месяцев назад

      @@InfernoisLive-i7 after calibration it should
      Be zero. Keep the quad stable for like 20 seconds and then see the rates

  • @binisol7353
    @binisol7353 9 месяцев назад +2

    Awesome!

  • @royzafrir9861
    @royzafrir9861 7 месяцев назад

    Hi Pratik, We are doing a project at school of a drone based on ESP32 (flight controller) and we take inspiration from your amazing project. We use a MC6RE receiver and a MICROZONE MC6C remote. Is it still possible to work with your flight controller code? Does it work with these components? (*The rest of the components are the same as yours).

    • @pratikphadte
      @pratikphadte  7 месяцев назад

      If your receiver has pwm protocol, it can work fine. Good luck 🤞 do send me videos of your project, would like to see.

  • @binisol7353
    @binisol7353 9 месяцев назад +1

    Did you make any special configuration or setup on the FS-i6X ?

    • @pratikphadte
      @pratikphadte  9 месяцев назад

      I set it to pwm mode, and the configured the switch A with channel no4 in the Arduino code

  • @rezwanurrahman4370
    @rezwanurrahman4370 8 месяцев назад +1

    No Gyro sensor or Gyro module like MPU 6050 needed ??? can you make a video where you explain the code ??

    • @pratikphadte
      @pratikphadte  8 месяцев назад

      MPU is there, it’s below the esp32, I will make the code explanation video if there is huge demand for for it 😅, other wise it’s all commented code jn the git, you can refer and understand. Any questions you can ask me.

    • @rezwanurrahman4370
      @rezwanurrahman4370 8 месяцев назад +1

      @@pratikphadte Vai, I suggest you make the explanation video, there is a very few video out there who explains code. Your work will serve the community.
      People will love it I guaranteed.

    • @pratikphadte
      @pratikphadte  8 месяцев назад

      @@rezwanurrahman4370 yeah I know it will be helpful but if you see there are great explanation videos already, search joopbrokking and carbon Aeronautics on RUclips, they have done an amazing job.
      If I were to do the same thing again, it might be repetitive 😅 but no harm done, you can still go through the code and let me know if you have any questions.

  • @krishnaraval7343
    @krishnaraval7343 6 месяцев назад

    Hey pratik .. as you are using esp- 32 (240Mhz - Clock Speed)are you see any difference in the stability compair to Arduino and STM boards during the flight ?

    • @pratikphadte
      @pratikphadte  6 месяцев назад

      I had compared with joop brookings Arduino and stm32 F1 flight controller, turns out esp32 is better than Arduino Fc and somewhat similar to stm32f1 chip, joops code is very efficient and well written it might be more stable than esp32 code, also I am using 80Mhz clock speed only. 240Mhz option is not available on the ide. I think it’s available for higher versions of esp32.

  • @sandeepgogu4742
    @sandeepgogu4742 2 месяца назад +1

    Bro how much does it cost to make one..?

    • @pratikphadte
      @pratikphadte  2 месяца назад

      The flight controller itself should cost you around 800 rupees or less

  • @shredharpadiyachi5221
    @shredharpadiyachi5221 3 месяца назад

    Hello , i have made a drone as you showed but i am facing a problem that it is tilting also i checked the gyro rate values they are at zero i have waited for 10 , 20 sec for gyro calibration but the result was same what are the other thing i should check to see where is the problem??

    • @pratikphadte
      @pratikphadte  3 месяца назад

      Hello Shredhar, this must be the issue with MPU6050 calibration, the thing is you have to calibrate both the gyroscope and the accelerometer. just try to print accelerometer values and then remove the offset in each axis. Then print the values from gyro and just recheck if its fine. Lastly I would suggest to check the output of the transmitter, if its correct i.e range is from 1000 to 2000 and the middle value for roll pitch yaw is 1500

  • @yacinemahboub
    @yacinemahboub 4 месяца назад

    did you use "quaternions" for getting the position of the drone? then you control it back right?
    please answer me and thanks 🙏

    • @yacinemahboub
      @yacinemahboub 4 месяца назад

      i mean did you apply quaternion-based model? 🙏

    • @pratikphadte
      @pratikphadte  4 месяца назад

      Hey, sorry for the late response, was a lil busy. No I didn’t use such method, the drone is moving solely form the inputs from the transmitter, the roll and pitch commands are converted to degrees per second and then converted to angle via a kalman filter and this angle is mapped to the motor inputs

  • @sharifsk0722
    @sharifsk0722 Месяц назад +1

    Please make it from scratch in one video please 🙏🙏🙏🙏

    • @pratikphadte
      @pratikphadte  Месяц назад +1

      I am trying to, I have recently moved to a different country for studies, I’m getting quite busy so, but I’ll make soon!❤️

  • @samarthgarts1778
    @samarthgarts1778 8 месяцев назад +2

    Can I use fs ct6b transmitter.

    • @pratikphadte
      @pratikphadte  8 месяцев назад

      Yes you can , just make sure the transmitter is configured carefully.

    • @samarthgarts1778
      @samarthgarts1778 8 месяцев назад

      @@pratikphadte like what configuration

    • @pratikphadte
      @pratikphadte  8 месяцев назад +1

      @@samarthgarts1778 for the throttle channel make sure when you lower the stick, the pulses are 1000us and for roll pitch and yaw they are 1500us at idle position

  • @sharifsk0722
    @sharifsk0722 Месяц назад

    Is it possible to build a small drone in budget?

    • @pratikphadte
      @pratikphadte  Месяц назад

      Yes it is, just need to worry about weight and think of a mechanism to run motors with mosfet

  • @iLoveFPVdrones
    @iLoveFPVdrones 5 месяцев назад

    Hi, I'm using a f3 racing flight controller and the same esc as you, the drone just rocks back and forth.I tried pid tuning ,but didn't work.

    • @pratikphadte
      @pratikphadte  5 месяцев назад

      I responded on one of your comment which had the same question.

  • @sumitshinde7695
    @sumitshinde7695 2 месяца назад

    bro can you tell me the name of the controller and are there any alternative?

  • @деревнягадюкино-ю6е
    @деревнягадюкино-ю6е 7 месяцев назад

    what does Channel 6 and 5 control?? I have read the code, it is very interesting in my opinion

    • @pratikphadte
      @pratikphadte  7 месяцев назад

      I have mapped channel 5(switch A of transmitter) to the WiFi pid tuning code, channel 6 is idle. Thanks!

    • @деревнягадюкино-ю6е
      @деревнягадюкино-ю6е 7 месяцев назад

      @@pratikphadte I found an error in the code and the gyroscope worked, I'm studying esp32cam and I plan to attach it as a pwm drone control thanks for the work, I'll unsubscribe as soon as I fly

  • @ais_robotic
    @ais_robotic 8 месяцев назад

    any little pid problem it can damage your monitor screen! test it on safe place!

    • @pratikphadte
      @pratikphadte  8 месяцев назад

      Yeah I’m aware, most of the tuning I had done outside for the fine tuning I was practising indoors

  • @不知所错
    @不知所错 7 месяцев назад +1

    Could you please send a link or picture of the esc?

    • @pratikphadte
      @pratikphadte  7 месяцев назад

      robu.in/product/30a-bldc-esc-electronic-speed-controller/?gad_source=1&gbraid=0AAAAADvLFWdG4CSHI8xG6l8FjebVNsyRO&gclid=Cj0KCQiAz8GuBhCxARIsAOpzk8w6S_ndXDitLwaaBj7nbNEa6vnFOpDjhuY11oA0RuAjEn8OGXyKDi4aArgbEALw_wcB
      It’s simonk 30a ESC

    • @不知所错
      @不知所错 7 месяцев назад

      @@pratikphadte Hi, I'm going to use betaflight and SP F3 flight controller, may I know the protocol of the esc? Is it pwm , One shot, or D-shot.

    • @pratikphadte
      @pratikphadte  7 месяцев назад

      @@不知所错 i tried with INAV, there is one "standard" option for ESC, is it available on betaflight as well?

    • @不知所错
      @不知所错 7 месяцев назад

      @@pratikphadte How did you calibrate the esc? I calibrated them once for a fixed wing, now they won't work on drone. (They are NOT simonk, just some cheap off-brand.)

    • @不知所错
      @不知所错 7 месяцев назад

      @@pratikphadte betaflight has 'pwm' 'd-shot' 'multishot' 'one shot' etc.

  • @nightshowdown4178
    @nightshowdown4178 8 месяцев назад +1

    Hello prateek i made the joop brooking arduino uno and joop brokiing and failed on both and as an idiotic foolish kid i just keep on investing money and as and just distroyed most of my parts but still didnt got any success code is so hard to understand so i would request you to try making a code because no one in india did this and it would be unique and liked also can u help me that how could i fly my stm32 drone since when i tested it it went up too fast and felt very badly on ground insatntly

    • @pratikphadte
      @pratikphadte  8 месяцев назад

      Hello, don’t think of it as foolish, as you are trying to do something cool, it’s a very nice quality, and coming to the investment, don’t regret it as it will help you learn lot of stuff
      Yes so I have done the code part for esp32 I referred the code from CarbonAeronautics and incorporated it on esp32, and then I had to struggle a lot with pid tuning and then it became stable, I guess pid tuning might be the issue for you, you can try my code if you wish, i am open here for any help😄

    • @nightshowdown4178
      @nightshowdown4178 8 месяцев назад +1

      @@pratikphadte okay then can u tell me whether or not esp8266 would be okay since I bought 2 of them a really long time ago and made a mini drone from it now I don't know how to use it

    • @nightshowdown4178
      @nightshowdown4178 8 месяцев назад

      @@pratikphadte also I said foolish because I buyed low cost things made budget of 13 thousand and still I have low cost things and my budget reached 25thouand
      By the way thanx for the reply🙂

    • @pratikphadte
      @pratikphadte  8 месяцев назад

      @@nightshowdown4178 Dw as you learnt new stuff ;)

    • @pratikphadte
      @pratikphadte  8 месяцев назад

      @@nightshowdown4178 should be okay, try this code and you might have to change a few functions and libraries here and there.

  • @physicswallah_Shiksha
    @physicswallah_Shiksha Месяц назад

    list of component is not clear

    • @pratikphadte
      @pratikphadte  Месяц назад

      It’s there in an excel file, you can find it there clearly with price

  • @sharifsk0722
    @sharifsk0722 Месяц назад

    Totol cost please

    • @pratikphadte
      @pratikphadte  Месяц назад

      Approx 11k bro with flysky fsi6 transmitter receiver