How Did I Use Python And Ai To Create A Fully Autonomous Drone? ArduCopter pixhawk and OpenCV.

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • This is how I created a fully autonomous drone capable of advanced autonomous missions using Python, Ai and Computer vision. This drone is capable of following a moving target fully autonomous and will be able to avoid obstacles! And even better I am going to explain to you how it all works and how you can create your own fully autonomous ai powered drone using the free open source Python code in the description below!
    multirotorrese...
    Full Code: github.com/sie...
    Bas: / bas-beckers-00a308163
    Niek: / niek-van-dam-514711131
    WHAT DO YOU WANT ME TO MAKE NEXT? LET ME KNOW IN THE COMMENTS!

Komentáře • 155

  • @zwang8569
    @zwang8569 Před 2 lety +57

    Thanks for sharing. Can you also post the hardwares/materials to build this drone including the sensors and everything? Thanks.

    • @sieuweelferink6852
      @sieuweelferink6852  Před rokem +27

      So basically this is what you need:
      -- A drone. Basically any drone that has a pixhawk or similar flight controller that runs ardupilot wil work. But if you are building from scratch you could build something like this:
      - Get 10 inch drone propellors and motors (t-motor is one of the best brands). A motor between 400 and 1000kv should work fine.
      - 30a Esc’s. Any brand is fine but t-motor or hobby King make good ones.
      - 4s lipo battery. 3s is possible but 4s will increase flight time a lot and also give the drone more power for faster following. Tattu makes good batteries.
      - flight controller that can run ardupilot and is released after the pixhawk. The chineese clones of the pixhawk can be really bad sometimes. A more expensive unit but which I really like a lot is the cube orange. Otherwise a radio link pixhawk is also good. I would recommend buying a flight controller in a kit. This will make sure that you get everything you need like wires, speaker, safety button, telemetry system etc.
      - gps + compass module. Get a radio link module if you are on a budget or a Sirius f9p from dronetek. Don’t buy a cheap unit. Gps and compass is one of the most important sensors for a drone. Getting a cheap one will result in crashes!
      - for the frame a dji f450 or tarot clone of this frame is good. Going with quad motors is the easiest and cheapest.
      -- beside a basic drone we also need some specific parts. These are:
      - jetson nano 4gb module. (Dont buy the 2gb model it is not good)
      - a 1080p csi camera. I like modules with the imx219 sensor a lot. Easiest would be to just buy that one.
      - a step down converter like the LM2596 I used.
      - a tf Luna LiDAR module from benewake.
      - a 3d printer to print some custom brackets located on GitHub.
      - adding a usb wifi module to the jetson will enable remote debugging of the system using ssh. Definitely recommend this.
      That would be it! Good luck trying to make it. Definitely send me a video if you have it flying.

    • @BrunoSantos-uq7hl
      @BrunoSantos-uq7hl Před 11 měsíci

      ​@@sieuweelferink6852Hey, where I live the pixhawk and similallars are out of stock. Do you think I would be able to crete something like that with a beta flight FC? I know they are more focused for racing but I wonder if I could create an autonomos drone like that. It is a FC Omnibus Betaflight F4 PRO V2 Flight Controller STM32 F405

    • @mehulkini9384
      @mehulkini9384 Před 2 měsíci

      @@sieuweelferink6852 Hey buddy Even I am working on the similar project using ML in it. Can you suggest me the best controller in the Pixhawk exactly so that I can get the documentation and really use it. And also I want to add the sensors to it like air pressure sensors etc. Is there a provision to add those sensor and if it is possible then which sensors are available in the market for it. your Guidance will be Valuable

  • @ROYALGAMERJAMES
    @ROYALGAMERJAMES Před rokem +62

    He is a type of guy I am searching my whole life to be friends with.

    • @jordan3636
      @jordan3636 Před 2 měsíci

      suprisingly, robots hunting people down scares most people

  • @herrjonatan5436
    @herrjonatan5436 Před 3 měsíci +4

    This is the kind of youtube channels WE want to be recommended to 🙏.
    I have subscribed

  • @TrailWolf83
    @TrailWolf83 Před rokem +4

    Thank for sharing this and the breaking it all down! I have been wanting to make my own from scratch as well and make it fully autonomous!

  • @cnaccio
    @cnaccio Před rokem +2

    Oh man, this is genus. I watched another video on a similar project using the Jetson and it wasn't even close to as smooth as this solution. Very elegant, and it's python!

  • @soultracer
    @soultracer Před rokem +2

    Nicely done! Don't give up sharing your content. Even if there are similar projects out there.

  • @sibujacob977
    @sibujacob977 Před rokem

    I wish no one will come and buy you out becos we need you in these forums :)) !!

  • @ibrahimkhadraoui7736
    @ibrahimkhadraoui7736 Před rokem

    Very nice E46 man I really like it it's a coupe, I have the sedan (4 doors) 330i, I'm an embedded system engineer I do some PCB design for IoT devices, I'm also a ROS enthusiast actually I was watching some videos on PX4 MavROS and I found your video.
    Keep up the good work bro you are amazing I really people like you

  • @qjdianenfjaiwk
    @qjdianenfjaiwk Před 3 měsíci

    I was literally looking for this exact thing for delivering packages to my friends in my neighborhood

  • @kevinkarabokgano6257
    @kevinkarabokgano6257 Před 2 lety

    i had Deja Vu @6:58😱it felt like i already watched that part of the video🤯

  • @kundanyadav5573
    @kundanyadav5573 Před 2 lety +1

    YOU ARE OVERPOWERED!!!

  • @PlanB-3751
    @PlanB-3751 Před 2 měsíci

    Thank you🙏
    You're really a good kind and helpful young man👍
    Cheers🕊️

  • @frankdearr2772
    @frankdearr2772 Před 4 dny

    Great thanks 👍

  • @GlenPerryZ
    @GlenPerryZ Před 4 měsíci

    This is brilliant work !! Well done!

  • @drewskiakg2719
    @drewskiakg2719 Před rokem

    Now way!
    You should make a home security drone. That would be awesome!
    Thanks for the video 🤙

    • @pedropalacios1
      @pedropalacios1 Před rokem

      That’s a really good idea! He should do that.

  • @mzf11125
    @mzf11125 Před rokem

    This is too cool, thank you for making it open source

  • @faraazk.8015
    @faraazk.8015 Před rokem

    Very cool, this is great stuff man. Keep it up and thanks for sharing.

  • @longlong1981
    @longlong1981 Před 11 měsíci

    great work. thanks for sharing. do upload more of your work. you are such an inspiration for drone developer.

  • @Augmented_AI
    @Augmented_AI Před 3 lety

    Looking forward to this!!

  • @DuoTheDouble
    @DuoTheDouble Před 2 lety

    opened my eyes to a pretty cool hobby my dude thanks :D

  • @Rezaemad-wn2by
    @Rezaemad-wn2by Před 3 lety +1

    That was fantastic man . Please upload more❤️

    • @sieuweelferink6852
      @sieuweelferink6852  Před 3 lety +1

      I will try as much as possible! But my projects are complicated and thus will take time. I will now focus 100% on the autonomous vehicle V2.0. So stay tuned for that!

    • @Rezaemad-wn2by
      @Rezaemad-wn2by Před 3 lety

      @@sieuweelferink6852 great man. good luck.

    • @Film-maker
      @Film-maker Před 6 měsíci

      What happened with this project? Did you stop working on it?@@sieuweelferink6852

  • @agushary9405
    @agushary9405 Před 4 měsíci

    thanks for sharing, this is so wonderful

  • @abhiritdas7762
    @abhiritdas7762 Před 7 měsíci

    Really good work man!

  • @user-nw9we5yg9s
    @user-nw9we5yg9s Před 9 měsíci

    I would like to see two or more drones follow the same target in synch with each other.

  • @ahatami7051
    @ahatami7051 Před rokem

    Great job buddy, learned a lot🙏🏼🙏🏼🙏🏼

  • @bentsprockettech
    @bentsprockettech Před rokem

    Thank you for using 3s. My favorite battery size. :)

  • @suheladesilva2933
    @suheladesilva2933 Před 6 měsíci

    Brilliant video, inspirational!

  • @keshav2136
    @keshav2136 Před rokem

    Great project! Thanks for sharing with us

  • @elizabethb5615
    @elizabethb5615 Před rokem +4

    Great job! Could u please refer to the sensor models? which rgb camera and lidar did u use?

  • @samdownload8192
    @samdownload8192 Před rokem

    Keep it up bro, well done.

  • @george-a.m.75
    @george-a.m.75 Před rokem +1

    Great work and solution! Carry on, and you could have a great future, by doing this as your future job!
    On question, if possible. Do you think it could be possible to integrate a library of objects the drone has to track and follow? For example Cars,, Bikes, People or equal, or is therefore AI needed? I mean something same like the Autel Evo Max is offering?

    • @sieuweelferink6852
      @sieuweelferink6852  Před rokem +2

      Yes definitely. The model I used is trained on the imagenet dataset. So basically the drone could track every object which is in this dataset. I think there are over 50 different objects. I just simply filter for only the object type person. But changing that line to a list will enable what you want.

  • @retikulum
    @retikulum Před dnem

    Nice work. A little over engineered 😅. I had a follow me function in my drone 10 years ago. It wasn't based on AI obviously. My phone, that's always in my pocket, sends its GPS data to the drone as a new destination and tadaa, drone is coming 😂

  • @raffaelemagni3078
    @raffaelemagni3078 Před 10 měsíci

    wow you re crazy, keep going!!!!

  • @vittal255
    @vittal255 Před 3 lety +4

    Great job This is something which is very useful in industries.I have been planning to build like one of these for autonomous tracking.
    Could you please suggest me the PC configuration required to run a yolo model at 30FPS for custom object.
    Thanks in advance

    • @sieuweelferink6852
      @sieuweelferink6852  Před 3 lety

      Jetson nano 4gb is fine for tiny yolo model. Otherwise look at jetson Xavier. Can run at a couple 100 fps!

    • @nothink0945
      @nothink0945 Před 2 lety +1

      @@sieuweelferink6852 how do you make the image run on 25fps i tried everything (im a beginer) and the best i got is i open image and than close it and repeat and its slow,garbage,stuppid,annoying.any sugestions?

  • @birendrakumar-gl5gq
    @birendrakumar-gl5gq Před 7 měsíci

    nice project, when is your part 2 coming, (autonomus obstacle avoidance drone) ?

  • @DeepFrydTurd
    @DeepFrydTurd Před 6 měsíci

    hes got the jetson nano

  • @mohandevaki4670
    @mohandevaki4670 Před 3 lety +2

    Great job but you need more recognition 👏👏👏👏👏

  • @dawatamang3667
    @dawatamang3667 Před 11 měsíci +1

    Thanks for sharing. Could you post a new line follower drone using pixhawk?

    • @dsyeta174omkshirsgar2
      @dsyeta174omkshirsgar2 Před 8 měsíci

      a line on wall with arrow direction to move up down left right n yaw to go behind the wall

  • @logcom482
    @logcom482 Před 2 lety

    Sieuwe you are great person ❤✌👋

  • @omkarpingale1572
    @omkarpingale1572 Před rokem

    Can you please make a project on gps and navigation UGVs for agriculture!🙏

  • @ewout4890
    @ewout4890 Před 3 lety +1

    Engels zeer on point😂

  • @bassboy5653
    @bassboy5653 Před 3 dny +1

    please i want the schematic diagram

  • @user-hb3ox7qi7v
    @user-hb3ox7qi7v Před 10 měsíci +1

    Bro can you make a complete AI powered fpv drone building from scratch it would be alot of helpful for me please bro I want that so badly

  • @marcindyba4774
    @marcindyba4774 Před rokem

    Really nice . Thank you.

  • @FeradZyulkyarov
    @FeradZyulkyarov Před 8 měsíci

    Amazing. You are genius.

  • @TheValueMentor
    @TheValueMentor Před 5 měsíci

    please keep uploading

  • @stonynotdusty
    @stonynotdusty Před rokem

    Amazing work

  • @user-mj2iq7mm3r
    @user-mj2iq7mm3r Před 9 měsíci

    Thanks for sharing

  • @MrfB-br6yh
    @MrfB-br6yh Před 5 měsíci

    Just amazing

  • @woodoo4art
    @woodoo4art Před 2 lety +3

    Hello Sieuwe, it is a great work. I have the M690L hexacopter from Align. It is a bit older one, so i intend to use an additional hardware/software to update the AI possibility of this drone. Is this O.K. that you could check what is possible with genuine flight Controller of this copter?(APS M). Is there a way to contact you (PN)?

  • @MehdiNY
    @MehdiNY Před 6 měsíci

    Hi. Where did you connect the Lidar to? To Jetson? Thanks

  • @oraqol
    @oraqol Před 2 lety

    Awesome project!

  • @balelab4211
    @balelab4211 Před 3 lety

    Thank you very much for your efforts.

  • @techmontc8360
    @techmontc8360 Před rokem +1

    Hi Sir,
    This is very great project!!
    May i know the spec of motor you’re using in this project?. It is very much appreciated

  • @atmanisalim9277
    @atmanisalim9277 Před 3 lety

    Good Job Sieuwe

  • @NortheastNomad
    @NortheastNomad Před rokem

    You should post a full tutorial

  • @bihansuraweera
    @bihansuraweera Před 3 lety

    Nice work man need to try this my self. Can you make tutorial fron no drone to fully automated drone. Building and programming

    • @sieuweelferink6852
      @sieuweelferink6852  Před 3 lety +2

      Hi so it is really easy. First build a drone with a pixhawk flight controller. Just search online on how to do it. Then mount a jetson nano and rgb and tf luna lidar on the drone. Install all software on the jetson nano and run main Python program.

    • @bihansuraweera
      @bihansuraweera Před 3 lety

      @@sieuweelferink6852 thank you so much you are very helpful

  • @artigeniusStore
    @artigeniusStore Před rokem

    so cool. thanks

  • @PyMike
    @PyMike Před 5 měsíci

    Uber Cool.

  • @ferco0
    @ferco0 Před rokem

    Thank you!

  • @alirezaghaderi
    @alirezaghaderi Před rokem

    nice job man...

  • @armenkalaidjian4494
    @armenkalaidjian4494 Před rokem

    Why did you connect lidar to jetson nano but not to PX 4? In this case, it would be possible to connect the Jetson to the Pixhawk via a serial port. And you don't need a USB to Serial converter. Data from the lidar can be obtained using the Mavlink protocol

    • @MehdiNY
      @MehdiNY Před 6 měsíci

      Did he connect the lidar to Jetson?

  • @artigeniusStore
    @artigeniusStore Před 5 měsíci

    genius

  • @lukas_wDE
    @lukas_wDE Před rokem

    Oh yes, that what i need😍

  • @antonyshani9705
    @antonyshani9705 Před 4 měsíci

    Can i do this project without a lidar sensor and by using a raspberrypi5

  • @ddevzshash2754
    @ddevzshash2754 Před 2 lety

    Amazing 👏👏👏

  • @misterchief7361
    @misterchief7361 Před 4 měsíci

    Hi @sieuweelferink6852, I love what you've done here. I'm aiming for a similar project which includes a net launcher for a final year engineering project. I've run into a dead end trying to develop an autonomous drone under a betaflight system. The plan now is to flash ardupilot to my existing SpeedyBee F405 V4 and pretty much run your code. However, I want to offload the processing to a ground station PC and not use a Jetson. Could you provide any tips to make this work seamlessly? The idea is to have identical functionality to your system, but tracking drones not people, and having a pc process the tracking and following code.

    • @infocus2160
      @infocus2160 Před 2 měsíci

      I think you need rtmp to get the video feed from drone and apply the object detection to detect person and then use the tracking code

  • @manishgowda8641
    @manishgowda8641 Před 3 měsíci

    Are there any cheaper alternative for jetson nano board

  • @prosperilunga9417
    @prosperilunga9417 Před rokem

    Thanks for the video. I am really interested and i want your guidance in making a full drone if you don't bringing your help forth, I would I appreciate

  • @srisairamcollections
    @srisairamcollections Před 13 dny +1

    hello bro i need help

  • @johnmelbolaybolay6269

    Is it even possible to simultaneously implement the mav condition yaw (for yaw) and mav frame body ned (for forward)?

  • @julianwilliams99
    @julianwilliams99 Před 7 měsíci

    How hard would it be to switch from tracking mode to a "kill mode"? Where drone will collide with tracked target at full speed.

  • @mohammadabdurrehmancheema2476

    1.What courses, what structures one should use, to make a drone fully autonomous?
    2.How to start this work? How did you started? I am completely a beginer in drone programming, even i have no idea what micro-controller is best to use, and how to control the peripherals attached to the micro-controller, can you suggest any channel, any source or any helping websites, from where you prepared yourself for this outstanding work?
    3.Please let me know where to learn about the drones and AI for drones, Thanks in Advance.

    • @sieuweelferink6852
      @sieuweelferink6852  Před 3 lety +3

      Hi I think most of your questions will be answered in the video! It will be ready saturday. Just as a sneak peak you need a drone with pixhawk flight computer. Also get a embedded ai processor like a jetson nano for the ai stuff. This is how I made my drone in the video!

  • @Kishi1969
    @Kishi1969 Před 3 lety

    I'm a subscriber just today and i will watch your video and share it and i can send you what I'm need, i just bought TELLO DRONE and i will like to program it using free open source opencv.. Like you are doing

    • @sieuweelferink6852
      @sieuweelferink6852  Před 3 lety +2

      Tello drone is a really good choice for simple opencv based projects! You can probably change our code to use with Trello drone and have good results👍 only you will have to change lidar distance to use for example bbox area as distance value

    • @Kishi1969
      @Kishi1969 Před 3 lety

      @@sieuweelferink6852 You are great.. Please I'm at other continent here where things for technology are very scanty but we are managing small resources, here even university have not resources except we check through Internet and i will be glad to be learning seriously from your channel...
      Apart from CZcams do you have any plat form again?
      Really amazing job sir you have done..

    • @sieuweelferink6852
      @sieuweelferink6852  Před 3 lety

      Hi I only upload on CZcams and sometimes explain my projects on instructables .

    • @Kishi1969
      @Kishi1969 Před 3 lety

      @@sieuweelferink6852 Thanks

    • @Kishi1969
      @Kishi1969 Před 3 lety

      Dear sir, i will try to use your code and if there is problem along the way, please i will be glad to get your help sir🙏

  • @johnmelbolaybolay6269

    How were you able to calibrate both rotations and forward movement for the right PID control?

  • @hinduhindusthani66
    @hinduhindusthani66 Před 11 měsíci

    sir which country u from,very good

  • @dsyeta174omkshirsgar2
    @dsyeta174omkshirsgar2 Před 8 měsíci

    which library is used for drone control? it doesnt seem that you have used drone kit

  • @DuongSHARE
    @DuongSHARE Před 11 měsíci

    love it

  • @SushilKumar-ph9lt
    @SushilKumar-ph9lt Před 5 měsíci

    I need your help regarding autonomous flying drone without gps pls help n reply

  • @sidheshmarne4122
    @sidheshmarne4122 Před rokem

    what if instead of jetson nano I transfer this information ground station (laptop) and perform algorithms and command back to my drone. Is it possible??

  • @menachemlevi
    @menachemlevi Před 9 dny

    why you are not working in that field

  • @anishpatil3902
    @anishpatil3902 Před 2 lety

    Can we control pitch yaw and roll without using pid control in program?

  • @sibujacob977
    @sibujacob977 Před rokem

    Can you please confirm that this will work on a PX4 stack as well .

  • @TechMechanism
    @TechMechanism Před rokem

    amazing

  • @matanbitton3438
    @matanbitton3438 Před 9 měsíci

    WOW HAMZING!!!

  • @ImpulsiveMigea
    @ImpulsiveMigea Před rokem

    Is it possible to complete the task with more cheap flight controller?

  • @svpetarSR
    @svpetarSR Před 9 měsíci

    Great man! What about HOME position update in INAV, or any other soft. to actual transmitter position, when transmitter is moving?

  • @odetteanoh1831
    @odetteanoh1831 Před 10 měsíci

    You are clever🎉🎉🎉🎉

  • @alanrichard8297
    @alanrichard8297 Před rokem

    hi my drone need to detect a box and pick it up its similar to ur project can u help me out

  • @rasheedstotomas4481
    @rasheedstotomas4481 Před 3 lety +2

    hI! im interested in using your crowd analytics project as a foundation in a project me and my classmates are currently trying to develop. is there any way i can contact you if we have questions? emails or discord calls?

    • @sieuweelferink6852
      @sieuweelferink6852  Před 3 lety +1

      Hi you can just ask your questions here so everyone can use the information i give you!

  • @odetteanoh1831
    @odetteanoh1831 Před 10 měsíci

    I like great🎉🎉

  • @boonchaan
    @boonchaan Před rokem

    hi! are you still working on this? part 2?

  • @user-vy1vw2fy3m
    @user-vy1vw2fy3m Před rokem

    Great job! Will it work on raspberry pi 4?

    • @armenkalaidjian4494
      @armenkalaidjian4494 Před 10 měsíci

      No. The fps will be too low. Only 4 frames per second is possible. I tried.

  • @Ronobuildstech
    @Ronobuildstech Před 3 lety

    this is cool...:)

  • @pierrekotze9811
    @pierrekotze9811 Před 2 lety

    Please upload a Drone update 🙏

  • @chelseastevenson6459
    @chelseastevenson6459 Před 2 lety

    are you still using the PS4 Stereo camera?

  • @user-cz8pg1xf2y
    @user-cz8pg1xf2y Před rokem

    Where to get the same drone?

  • @f1j1poii86
    @f1j1poii86 Před rokem

    How long did it take u to master python?

  • @user-pk9od8wf9y
    @user-pk9od8wf9y Před 6 měsíci

    Bro are you ok ?

  • @nisithfonseka3674
    @nisithfonseka3674 Před rokem

    Can this code run on a raspberry pi?