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 @chr1sa: At least when we do this with @DIYRobocars it doesn't cost $1 million https://twitter.com/dogryan100/status/1321800383505657856
3 hours ago
DIY Robocars via Twitter
3 hours ago
DIY Robocars via Twitter
Oct 23
DIY Robocars via Twitter
RT @_JonMyer: 🏎 We need your help in naming my #AWS DeepRacer Underground Track 🏎 @davidfsmith's track is going to be referred to as 𝗔𝗪𝗦 𝗗…
Oct 22
DIY Robocars via Twitter
RT @gclue_akira: 仕事もおわったし、電脳化にとらい #マリオカートハック https://t.co/4IU90hCLgm
Oct 22
DIY Robocars via Twitter
This is the hashtag to follow all the people in Japan who are hacking the new Nintendo Mario Kart with the real AR… https://twitter.com/i/web/status/1319281354664677376
Oct 22
DIY Robocars via Twitter
RT @gclue_akira: @chr1sa @diyrobocars jupyter mario https://t.co/P0oHdjlCRq
Oct 22
DIY Robocars via Twitter
RT @_JonMyer: 🚨Our 1st AWS DeepRacer Community Race is Underway on http://twitch.tv/aws 🚨 Join us to find out which member of your commu…
Oct 20
DIY Robocars via Twitter
Oct 19
DIY Robocars via Twitter
RT @BackyardRobotcs: After an admittedly long wait, the new Tinymovr R3.3 motor controller is now available https://tinymovr.com 🥳
Oct 19
DIY Robocars via Twitter
RT @_JonMyer: 🏎 1 hr left before the #AWS #DeepRacer Community 🏎 Top 5 Race tomorrow LIVE on Twitch 1st Place = $50 Amazon GC or AWS Credit…
Oct 19
DIY Robocars via Twitter
Oct 16
DIY Robocars via Twitter
Oct 15
DIY Robocars via Twitter
Oct 14
DIY Robocars via Twitter
RT @davidfsmith: Race virtually with The AWS DeepRacer Community Race and then join us on the track to see how your times compare on the ph…
Oct 14
DIY Robocars via Twitter
Oct 14
More…