Change PID gains over WiFi | ESP32 DIY quadcopter & Flight controller code in Arduino IDE

Поделиться
HTML-код
  • Опубликовано: 24 дек 2023
  • The code takes in PID gain values from the webserver and uploads them to the ESP32 upon activation of the switch on the transmitter, this can be used for various applications other than a quadcopter.
    github.com/pratikPhadte/ESP32...
    Reference links:
    randomnerdtutorials.com/esp32...
    randomnerdtutorials.com/esp32...
  • НаукаНаука

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

  • @Minbot_Labs
    @Minbot_Labs 7 месяцев назад +1

    00:01 Creating a web server for wireless PID tuning
    01:06 Tuned PID gains for improved quadcopter performance
    02:16 Download and configure the PID tuning file from the provided GitHub link.
    03:29 Translating HTML code into Arduino code and web server data retrieval
    04:29 Setting up Wi-Fi connection and receiving input messages for the quadcopter.
    05:36 Understanding the code for time calculation and loop execution
    06:45 Experimenting with different time intervals for better readings.
    08:02 PID tuning can be used for tuning copters or robotic devices.

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

    Best wishes for you and your work.

  • @mursalen
    @mursalen 7 месяцев назад +2

    You're doing a great job. Best wishes from Bangladesh 🎉

  • @mesutcanozkan8365
    @mesutcanozkan8365 7 месяцев назад +2

    My friend, this is very good content. We are waiting for the continuation.

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

      Thank you Mesutcan brother !! Yes sure 👍

  • @robertparenton7470
    @robertparenton7470 6 месяцев назад +3

    Thank You for sharing!

  • @fabianoandrade7639
    @fabianoandrade7639 7 месяцев назад +2

    congratulations man! you are very good! thanks for share.....

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

    This is all great, Keep it Up dude. Im Waiting for the Transmitter Setup if theres any other than the default config!

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

      Thanks!, It’s the same transmitter setup, pwm protocol

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

      Yeah i get that but i tested everything and the quad works except that the back motors have more power and drags to the front and i cheked the pwm test code which diddnt provide enough info and also the trim so it would be nice if you could make one video about the transmitter/reciever setup and config with the flight controller @pratikphadte

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

      @@binisol7353 did you try printing the values from the receiver to the serial monitor?
      Maybe that will give you insight,
      When throttle is at 0 and when you slightly increase it, do your motors spin at the same time?

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

      Yes the motors spin at the same time i think its my pitch or roll angle cause I'm getting this reading from the measure_angles_from_mpu test code? @@pratikphadte
      Roll Angle=-0.44Roll Pitch=-50.57
      Motors 2 and 3 get more power and tip over the quad in my case!

  • @sandeepkapare
    @sandeepkapare 7 месяцев назад +1

    Nice work!

  • @mursalen
    @mursalen 6 месяцев назад +2

    Thank you very much sir. I tried to make that flight controller according to your schemetics but there was a little mistake in the diagram for the i2c. After struggling a while my quad finally flew. It still needs some PID tuning. Btw esp32 uses GPIO 21 ans 22 for i2c communication but the diagram says GPIO 21 and 23.

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

      Oh that’s really great to hear that you were able to make it And fly it! If possible can you share me the video, just for my reference, you can reach me on LinkedIn.
      Oh yes I have made one mistake there, thank you for sharing, I will rectify the diagram.

  • @mdsbuilds
    @mdsbuilds 3 месяца назад +1

    Hi i made that esp32 flight connections and setup my flysky but only throttle values are showing up also pid values change but it does not balance the drone please help!!!!!!

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

      Use the trim button to increase the Stability as per your Requirement.. !

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

      Helllo, try testing individual components by serial printing the values on the monitor and then start with pid tuning, if your setup is similar to mine then the same pid values should work well.

  • @user-dt6me4bl9i
    @user-dt6me4bl9i 2 месяца назад

    how get the pixhawk gps information and battery status using the esp32 wifi module using the Arudnio IDE application to get the logs on the serial montior

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

      I’m sure it could be done somehow, there is a channel on ardupilot discord which uses esp32 for some sort of WiFi telemetry. I would suggest you to check there.

  • @webutility6558
    @webutility6558 7 месяцев назад +1

    will love to see full fc explanation.

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

      I will do it once there is a good demand for it 😄👍

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

      @@pratikphadte pls do the code explanation. and will it fly if i use esp12f, with brushed motors. ofcource with esc related modifications & will use esp wifi capability for remote.

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

      @@webutility6558 it should fly, if you are making a nano drone then use lightweight mosfets and pcb board. i have made a similar project but i wasnt able to get a flight due to weight issue. i used same code for it. so it should work for you just need to change the reciever code and esc map code.

  • @ruyi-pr9nj
    @ruyi-pr9nj 3 месяца назад

    Hi, I made a drone using the exact same frame, esc and motors, but using a f3 racing flight controller, so I'm wondering what pid values are you using?

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

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

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

    hello sir what are the PID values you have given to flight controller

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

      If you are having trouble you can try these values, they work good in an environment with less wind
      PrateRoll = 0.65
      Irateroll =0
      DrateRoll= 0.0085
      Note that roll and pitch PId values are same
      If your environment is windy try with 7.2 (or 7.5) as PrateRoll

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

    Hi pratik bhiyaa , I'm facing an issue from the serial monitor I can't see the values i think it's about baud rate i tried to set all the possible baud rate bt still not able to see any value any solution??

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

      Hello, check if you are using a data usb cable, some cables that are used for charging have only power wires inside. Also check if the com port is getting detected in device manger.

  • @abhiruprudra1889
    @abhiruprudra1889 6 месяцев назад +1

    Sir pls provide thd code explaination video along with PID control

  • @mdsbuilds
    @mdsbuilds 4 месяца назад +1

    Hey nice work so can I also add css to it just for aesthetic if yes then please mention

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

      Yes most definitely, you need to make changes in the Html code in the .ino file.

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

      Thanks I have a small request can you make an esp8266 version please for the pid flight controller,if possible that is

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

      Yeah that seems like a repeat work for me, but I’m sure you can try it and if any doubt arises let me know

  • @jena2379
    @jena2379 6 месяцев назад +1

    your frame is awesome.....!
    where did u get it ?
    pls share the site name

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

      It’s f450 frame, easily available on Amazon

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

    Bro, please make a full making and setup video for esp32 flight controller
    Please

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

      Okay bro I’ll make one, meanwhile you can refer to my GitHub

  • @April2023-fb6pf
    @April2023-fb6pf 7 месяцев назад

    Running tes outdor please

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

      You can find in earlier videos of mine

    • @April2023-fb6pf
      @April2023-fb6pf 7 месяцев назад

      Are you used F 450 dji frame ? And then this machine include auto leveling?

  • @user-qz2sh4ss8f
    @user-qz2sh4ss8f 7 месяцев назад

    eps32에서 mavsdk만들어 주세요

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

      I don’t think ESP32 can run ardupilot but I’m not quite sure, I will explore that tho

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

    Hi i made that esp32 flight connections and setup my flysky but only throttle values are showing up also pid values change but it does not balance the drone please help!!!!!!

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

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