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... Наука
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.
Best wishes for you and your work.
Many thanks!
You're doing a great job. Best wishes from Bangladesh 🎉
Thank you mursalen
My friend, this is very good content. We are waiting for the continuation.
Thank you Mesutcan brother !! Yes sure 👍
Thank You for sharing!
👍👍
congratulations man! you are very good! thanks for share.....
Thank you Fabiano!
This is all great, Keep it Up dude. Im Waiting for the Transmitter Setup if theres any other than the default config!
Thanks!, It’s the same transmitter setup, pwm protocol
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
@@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?
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!
Nice work!
Thank you!
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.
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.
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!!!!!!
Use the trim button to increase the Stability as per your Requirement.. !
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.
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
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.
will love to see full fc explanation.
I will do it once there is a good demand for it 😄👍
@@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.
@@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.
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?
I responded on one of your comment which had the same question.
hello sir what are the PID values you have given to flight controller
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
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??
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.
Sir pls provide thd code explaination video along with PID control
Yes I will upload soon
Hey nice work so can I also add css to it just for aesthetic if yes then please mention
Yes most definitely, you need to make changes in the Html code in the .ino file.
Thanks I have a small request can you make an esp8266 version please for the pid flight controller,if possible that is
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
your frame is awesome.....!
where did u get it ?
pls share the site name
It’s f450 frame, easily available on Amazon
Bro, please make a full making and setup video for esp32 flight controller
Please
Okay bro I’ll make one, meanwhile you can refer to my GitHub
Running tes outdor please
You can find in earlier videos of mine
Are you used F 450 dji frame ? And then this machine include auto leveling?
eps32에서 mavsdk만들어 주세요
I don’t think ESP32 can run ardupilot but I’m not quite sure, I will explore that tho
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!!!!!!
I responded on one of your comment which had the same question.