Getting Started with MAVlink and arduino- Please help

Hi,

I am wondering if anyone on this website has any sort of guide or tips for controlling an APM flight controller with an arduino. I have been trying for several months now to even get the motors on my quadcopter to arm but to no avail. The most I have achieved is to send and receive heartbeat messages. No other command has given any sign of working.

I have seen numerous forum posts here and elsewhere from people attempting to perform the same task. All of them were abandoned inconclusively.

Plase, if anyone knows how to arm an APM-controlled quadcopter with an arduino, your help would be greatly appreciated.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • you may want to check out this blog: https://discuss.ardupilot.org/t/mavlink-and-arduino-step-by-step/25...

    MAVLink and Arduino: step by step
    Thanks for replying! Both preferably, so I can compare the outcome individually and chose the better result.
  • Didn't have to change anything in mission planner. Our setup was just the arduino interfacing with the apm telemetry with no other controller or laptop or anything hooked up to the apm

  • Can I ask what you change/edit on mission planner to receive information from the arduino?

    At the moment I use the serial monitor on the arduino IDE but it just spits out interpretable info which is unhelpful

  • Hi Jamie,

    Here is the code we used to get the heartbeat to work: https://drive.google.com/file/d/1JjzExItl538qj4u8Ah8P_9j5dTMD4Gzt/v...

    I'm assuming it's the latest version of Arduino. We've been using an arduino mega that we just bought.

    Jamie Tank said:

    Hi Logan,

    Unfortunately i wont be able to help as im struggling with the same with but with a pixhawk. 

    Would it possible for you to send me your code that you used for the interfacing the apm to the arduino? Also are you using the newest version of arduino or an older one. As i constantly get fastserial.h errors when i try to compile my code.

    thanks

    heartbeat_test.zip
  • Hi Logan,

    Unfortunately i wont be able to help as im struggling with the same with but with a pixhawk. 

    Would it possible for you to send me your code that you used for the interfacing the apm to the arduino? Also are you using the newest version of arduino or an older one. As i constantly get fastserial.h errors when i try to compile my code.

    thanks

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @_JonMyer: 🚨Attention DeepRacer's including #UndergroundDeepRacer🚨 Check our our LIVE stream that including @IAM_dbro Take a few moments…
yesterday
DIY Drones via Twitter
RT @MarvelmindMaxim: Extreme precision for 60 swarming robots. #marvelmind #autonomousrobotics #robotics #swarmrobotics #rtls #ips #indoor…
Monday
DIY Drones via Twitter
RT @MarvelmindMaxim: Precise (±2cm) tracking for racing boats and autonomous boats. Works outdoor and indoor. #autonomous #AutonomousVehic…
Monday
DIY Drones via Twitter
RT @MarvelmindMaxim: Helping PixHawk folks to fly autonomous quadcopters using PX4 and ArduPilot. https://marvelmind.com/drones/ Equally suitab…
Monday
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars @donkey_car virtual AI car race is starting in 15 minutes! Watch it live on Twitch https://www.twitch.tv/mossmann3333 htt…
Saturday
DIY Robocars via Twitter
RT @chr1sa: Don't miss our monthly @DIYRobocars @donkey_car virtual AI car race tomorrow at 10:00am PT live on Twitch. Head-to-head racing…
Jul 31
DIY Robocars via Twitter
RT @sparkfun: Our completed tutorial on building an @NVIDIA Jetson Nano-powered @Sphero RVR gets your bot up and running via teleoperation…
Jul 30
DIY Robocars via Twitter
RT @SmallpixelCar: Freeway test https://t.co/4V5tV9lhIP
Jul 29
DIY Robocars via Twitter
Very small autonomous cars racing, thanks to an overhead camera: https://control.ee.ethz.ch/research/team-projects/autonomous-rc-car-racing.html
Jul 29
DIY Robocars via Twitter
Jul 29
DIY Robocars via Twitter
Jul 29
DIY Robocars via Twitter
RT @chr1sa: Don't miss our virtual AI car race this Saturday! Real developers + virtual cars =🏎️🏎️🏎️ Head-to-head battles with thrills, sp…
Jul 28
DIY Robocars via Twitter
Jul 27
DIY Robocars via Twitter
RT @usashirou1: Jetson nano by Isaac Kaya #jetson https://t.co/Mu1N0CyQkN
Jul 23
DIY Robocars via Twitter
RT @GPUsolution: JetRacer mady by Iflytek company #JetsonNANO #Nvidia https://t.co/MimTymIwge
Jul 23
DIY Robocars via Twitter
RT @openmvcam: I love this: Mega or Mini? Image Classification on the 1MB OpenMV Cam H7 by Ish Ot Jr. in OpenMV, Edge Impulse, Internet of…
Jul 23
More…