Communicating between Raspberry PI and Flight Controller with MAVLink.

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

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

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

    Would it be possible to send large sets of instructions to one or more drones using radio/MAVLink? Alternatively WIFI but I'm not sure if that's 200m + communication

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

    Good info for those getting started

  • @GodGaming-uq3yo
    @GodGaming-uq3yo Месяц назад

    Can you please upload step by step full tutorial of your drone how to make everything detailed video please ?!

  • @AlexandrB.-ug7wx
    @AlexandrB.-ug7wx 7 месяцев назад

    hi ! i'm actually waiting for the parts to try to do the very same thing you do ))) don't stop !!!

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

    Please always test with props off, so you don't loose your face if something goes wrong.

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

    Hey, I followed same steps as you did but or some reason I got an error "permission denied:'/dev/serial0'". I tried to find solution but no luck

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

      I would try in raspi shell to enable the serial port by 1) sudo raspi-config then 2) select interface, 3) select serial, 4) no to "Would you like a login shell to be accessible over serial?" and yes to "Would you like the serial port hardware to be enabled?". Then reboot your pi. It is explained in more detail here ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html

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

    would't this be simpler just to send PWM to the flight controller inputs?

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

      The way I did it was the recommended way per Ardupilot mavlink communication page. Thanks for the suggestion though.

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

      Nope, the ArduPilot flight controller does a TON of things to manage the flight, reading data from GPS and IMU, filtering it through an Extended Kalman Filter, and using a PID loop to decide what to tell each motor. And of course the flight controller hardware also connects to the ESCs to control the motor speeds.

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

      @@seanowens2 Its not about the flight controller but rather how to communicate with it. Regards,

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

    Hi BigBrain, thanks for the video. Did you tune drone's PIDs and filters? Is it possible to do using Ardupilot?

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

      Thanks for the comment. I believe that it is possible to to tune your drone PIDs and filters with ardupilot however, I didn't change any of those settings.

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

    Is your flight controller speedybee f405 v3?

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

      It's the v4 but the process is essentially the same.

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

    Good video 👍
    Keep it up

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

    hey! does this work for iNav?

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

      I tried for a very long time but I couldn't get a guided flight mode or something similar to autonomous flight. It might be possible but I couldn't find a way.

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

      I'm pretty sure iNav only supports oneway mavlink, i.e. sending telemetry to the ground, and does not support commanding the drone from the ground.

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

    That is something I was thinking about as well. Let me know if you will create a github depository.

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

      Sure. I'll let you know if I create one in another video. Thanks for the comment.

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

    awesome)

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

    Hi! You can help me? I want connect analog camera to raspberry pi. Can you think how it's create? Pls don't ignore me. You is my last shans.

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

      For simplicity, I recommend a raspberry pi with dedicated camera ports. Like raspberry pi 4.

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

      Please give more details like which raspberry are you using or which camera in order to know if there is a solution

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

      @@robsoft_gt i use paspberry pi zero 2 w and camera Caddx Ratel 2 V2 analog this camera is for fpv drone

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

    It's a really good idea to know how to fly a drone on a gyro only, with your own muscle memory. Sensors fail, radio links drop, power spikes can crash or reset a SBC. Try to have as many fallback positions to fail as safely as you can. Take the props off if you're running bench tests, or put it in a net cage suspended with elastic cord if you're testing flight dynamics. Easy to build; get some shock cord, wood or pvc and zip ties. Don't forget that crashes with lithium batteries can immediately result in a white-hot waterproof fire, and if you get a flyaway it can go many miles away and start a huge brush fire or worse. Think ahead and don't cut corners. Also, you need a magnetometer, otherwise Ardupilot has no heading information for autopilot modes, and can lead to toiletbowling and fly-aways. You also can't program moves relative to the aircraft's position, you'll only be able to issue raw stick commands via code, which is extremely dangerous and unpredictable. Don't be afraid to test code on a boat or rover first; way less risky. Be safe bro, and don't ever forget that you're liable for all damages / injuries.

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

      Do you know of any good instructions on how to make that cage?😅

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

      Thank you for the insight. I appreciate it.

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

      Did I miss something? "You also can't program moves relative to the aircraft's position, you'll only be able to issue raw stick commands via code, which is extremely dangerous and unpredictable" - why do you think this is true? As far as I know it's completely not true.