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

Поділитися
Вставка
  • Опубліковано 25 чер 2021
  • 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!
    multirotorresearch.com/
    Full Code: github.com/sieuwe1/Autonomous...
    Bas: / bas-beckers-00a308163
    Niek: / niek-van-dam-514711131
    WHAT DO YOU WANT ME TO MAKE NEXT? LET ME KNOW IN THE COMMENTS!
  • Наука та технологія

КОМЕНТАРІ • 149

  • @zwang8569
    @zwang8569 2 роки тому +48

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

    • @sieuweelferink6852
      @sieuweelferink6852  9 місяців тому +20

      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 9 місяців тому

      ​@@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 11 днів тому

      @@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 11 місяців тому +50

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

    • @jordan3636
      @jordan3636 13 днів тому

      suprisingly, robots hunting people down scares most people

  • @herrjonatan5436
    @herrjonatan5436 Місяць тому +1

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

  • @TrailWolf83
    @TrailWolf83 11 місяців тому +3

    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!

  • @soultracer
    @soultracer Рік тому +2

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

  • @cnaccio
    @cnaccio Рік тому +1

    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!

  • @GlenPerryZ
    @GlenPerryZ 2 місяці тому

    This is brilliant work !! Well done!

  • @faraazk.8015
    @faraazk.8015 10 місяців тому

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

  • @mzf11125
    @mzf11125 9 місяців тому

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

  • @ahatami7051
    @ahatami7051 Рік тому

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

  • @abhiritdas7762
    @abhiritdas7762 4 місяці тому

    Really good work man!

  • @longlong1981
    @longlong1981 9 місяців тому

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

  • @PlanB-3751
    @PlanB-3751 8 днів тому

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

  • @MultiAllelujah
    @MultiAllelujah Рік тому

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

  • @keshav2136
    @keshav2136 Рік тому

    Great project! Thanks for sharing with us

  • @Augmented_AI
    @Augmented_AI 3 роки тому

    Looking forward to this!!

  • @suheladesilva2933
    @suheladesilva2933 4 місяці тому

    Brilliant video, inspirational!

  • @kundanyadav5573
    @kundanyadav5573 2 роки тому +1

    YOU ARE OVERPOWERED!!!

  • @samdownload8192
    @samdownload8192 10 місяців тому

    Keep it up bro, well done.

  • @agushary9405
    @agushary9405 2 місяці тому

    thanks for sharing, this is so wonderful

  • @oraqol
    @oraqol 2 роки тому

    Awesome project!

  • @stonynotdusty
    @stonynotdusty Рік тому

    Amazing work

  • @elizabethb5615
    @elizabethb5615 Рік тому +4

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

  • @ibrahimkhadraoui7736
    @ibrahimkhadraoui7736 10 місяців тому

    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

  • @raffaelemagni3078
    @raffaelemagni3078 8 місяців тому

    wow you re crazy, keep going!!!!

  • @marcindyba4774
    @marcindyba4774 Рік тому

    Really nice . Thank you.

  • @logcom482
    @logcom482 2 роки тому

    Sieuwe you are great person ❤✌👋

  • @Rezaemad-wn2by
    @Rezaemad-wn2by 3 роки тому +1

    That was fantastic man . Please upload more❤️

    • @sieuweelferink6852
      @sieuweelferink6852  3 роки тому +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 3 роки тому

      @@sieuweelferink6852 great man. good luck.

    • @Film-maker
      @Film-maker 3 місяці тому

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

  • @FeradZyulkyarov
    @FeradZyulkyarov 6 місяців тому

    Amazing. You are genius.

  • @ddevzshash2754
    @ddevzshash2754 2 роки тому

    Amazing 👏👏👏

  • @user-mj2iq7mm3r
    @user-mj2iq7mm3r 6 місяців тому

    Thanks for sharing

  • @balelab4211
    @balelab4211 2 роки тому

    Thank you very much for your efforts.

  • @qjdianenfjaiwk
    @qjdianenfjaiwk Місяць тому

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

  • @MrfB-br6yh
    @MrfB-br6yh 3 місяці тому

    Just amazing

  • @lukas_wDE
    @lukas_wDE Рік тому

    Oh yes, that what i need😍

  • @drewskiakg2719
    @drewskiakg2719 Рік тому

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

    • @pedropalacios1
      @pedropalacios1 Рік тому

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

  • @woodoo4art
    @woodoo4art 2 роки тому +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)?

  • @bentsprockettech
    @bentsprockettech Рік тому

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

  • @artigeniusStore
    @artigeniusStore Рік тому

    so cool. thanks

  • @alirezaghaderi
    @alirezaghaderi 10 місяців тому

    nice job man...

  • @atmanisalim9277
    @atmanisalim9277 3 роки тому

    Good Job Sieuwe

  • @ferco0
    @ferco0 Рік тому

    Thank you!

  • @techmontc8360
    @techmontc8360 Рік тому +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

  • @kevinkarabokgano6257
    @kevinkarabokgano6257 Рік тому

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

  • @TheValueMentor
    @TheValueMentor 2 місяці тому

    please keep uploading

  • @sibujacob977
    @sibujacob977 Рік тому

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

  • @george-a.m.75
    @george-a.m.75 9 місяців тому

    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  9 місяців тому +1

      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.

  • @johnmelbolaybolay6269
    @johnmelbolaybolay6269 Рік тому

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

  • @birendrakumar-gl5gq
    @birendrakumar-gl5gq 4 місяці тому

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

  • @DuongSHARE
    @DuongSHARE 9 місяців тому

    love it

  • @PyMike
    @PyMike 3 місяці тому

    Uber Cool.

  • @johnmelbolaybolay6269
    @johnmelbolaybolay6269 Рік тому

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

  • @mohandevaki4670
    @mohandevaki4670 2 роки тому +2

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

  • @TechMechanism
    @TechMechanism Рік тому

    amazing

  • @ewout4890
    @ewout4890 3 роки тому +1

    Engels zeer on point😂

  • @vittal255
    @vittal255 2 роки тому +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  2 роки тому

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

    • @nothink0945
      @nothink0945 Рік тому +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?

  • @user-nw9we5yg9s
    @user-nw9we5yg9s 6 місяців тому

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

  • @MehdiNY
    @MehdiNY 4 місяці тому

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

  • @Ronobuildstech
    @Ronobuildstech 3 роки тому

    this is cool...:)

  • @anishpatil3902
    @anishpatil3902 Рік тому

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

  • @odetteanoh1831
    @odetteanoh1831 8 місяців тому

    I like great🎉🎉

  • @omkarpingale1572
    @omkarpingale1572 9 місяців тому

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

  • @odetteanoh1831
    @odetteanoh1831 8 місяців тому

    You are clever🎉🎉🎉🎉

  • @julianwilliams99
    @julianwilliams99 4 місяці тому

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

  • @dsyeta174omkshirsgar2
    @dsyeta174omkshirsgar2 5 місяців тому

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

  • @sidheshmarne4122
    @sidheshmarne4122 Рік тому

    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??

  • @antonyshani9705
    @antonyshani9705 2 місяці тому

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

  • @prosperilunga9417
    @prosperilunga9417 Рік тому

    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

  • @manishgowda8641
    @manishgowda8641 Місяць тому

    Are there any cheaper alternative for jetson nano board

  • @NortheastNomad
    @NortheastNomad Рік тому

    You should post a full tutorial

  • @matanbitton3438
    @matanbitton3438 6 місяців тому

    WOW HAMZING!!!

  • @dawatamang3667
    @dawatamang3667 9 місяців тому +1

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

    • @dsyeta174omkshirsgar2
      @dsyeta174omkshirsgar2 5 місяців тому

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

  • @sibujacob977
    @sibujacob977 Рік тому

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

  • @DeepFrydTurd
    @DeepFrydTurd 3 місяці тому

    hes got the jetson nano

  • @bihansuraweera
    @bihansuraweera 3 роки тому

    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  3 роки тому +1

      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 3 роки тому

      @@sieuweelferink6852 thank you so much you are very helpful

  • @ImpulsiveMigea
    @ImpulsiveMigea 11 місяців тому

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

  • @artigeniusStore
    @artigeniusStore 2 місяці тому

    genius

  • @armenkalaidjian4494
    @armenkalaidjian4494 Рік тому

    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 4 місяці тому

      Did he connect the lidar to Jetson?

  • @alanrichard8297
    @alanrichard8297 Рік тому

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

  • @misterchief7361
    @misterchief7361 2 місяці тому

    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 8 днів тому

      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

  • @chelseastevenson6459
    @chelseastevenson6459 2 роки тому

    are you still using the PS4 Stereo camera?

  • @svpetarSR
    @svpetarSR 7 місяців тому

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

  • @SushilKumar-ph9lt
    @SushilKumar-ph9lt 2 місяці тому

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

  • @boonchaan
    @boonchaan 11 місяців тому

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

  • @user-hb3ox7qi7v
    @user-hb3ox7qi7v 8 місяців тому +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

  • @hinduhindusthani66
    @hinduhindusthani66 9 місяців тому

    sir which country u from,very good

  • @f1j1poii86
    @f1j1poii86 Рік тому

    How long did it take u to master python?

  • @user-cz8pg1xf2y
    @user-cz8pg1xf2y Рік тому

    Where to get the same drone?

  • @freezinfire
    @freezinfire 9 місяців тому

    Noice

  • @mohammadabdurrehmancheema2476
    @mohammadabdurrehmancheema2476 3 роки тому

    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  3 роки тому +2

      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!

  • @user-vy1vw2fy3m
    @user-vy1vw2fy3m Рік тому

    Great job! Will it work on raspberry pi 4?

    • @armenkalaidjian4494
      @armenkalaidjian4494 7 місяців тому

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

  • @nisithfonseka3674
    @nisithfonseka3674 Рік тому

    Can this code run on a raspberry pi?

  • @Kishi1969
    @Kishi1969 3 роки тому

    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  3 роки тому +1

      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 3 роки тому

      @@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 UA-cam do you have any plat form again?
      Really amazing job sir you have done..

    • @sieuweelferink6852
      @sieuweelferink6852  2 роки тому

      Hi I only upload on UA-cam and sometimes explain my projects on instructables .

    • @Kishi1969
      @Kishi1969 2 роки тому

      @@sieuweelferink6852 Thanks

    • @Kishi1969
      @Kishi1969 2 роки тому

      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🙏

  • @rasheedstotomas4481
    @rasheedstotomas4481 2 роки тому +1

    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  2 роки тому

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

  • @pierrekotze9811
    @pierrekotze9811 2 роки тому

    Please upload a Drone update 🙏

  • @HabibUrRahman-mu8zf
    @HabibUrRahman-mu8zf 2 роки тому

    can you explain the code?

  • @lindawilson1646
    @lindawilson1646 2 роки тому

    why did you decide to use Jetson Nano instead of raspberry pi?

    • @sieuweelferink6852
      @sieuweelferink6852  9 місяців тому

      A rpi can not run a CNN like mobilenet in real time. Rpi can do something like 1 to 5 fps. A jetson nano can doe 30+ fps. More fps enables smoother control of the drone.

  • @Kishi1969
    @Kishi1969 2 роки тому

    How can the drone collect data, i mean pictures of people and store it in PC?

    • @sieuweelferink6852
      @sieuweelferink6852  2 роки тому +1

      You can just use the code already there. Jetson nano has a sd card slot where you can store picture on. Just change the code after the human filtering part

    • @Kishi1969
      @Kishi1969 2 роки тому +1

      @@sieuweelferink6852 Thanks, i will try and after i will get in touch with you

  • @Kishi1969
    @Kishi1969 2 роки тому

    Can i chat with you one on one sir?

  • @maycolmezaa.7578
    @maycolmezaa.7578 3 роки тому

    Hi friend, I think is a interesting idea for drone. I going to publish in my fanpage @dr8nex and promote your video.