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

Liam left a comment on Agricultural UAVs
"Hi
I'm Liam from T-MOTOR. I would like to reach out to see if there is any possibility for us to work together.
We are a propulsion system manufacturer who offers motors, propellers and ESCs for all kinds of drone applications which vary from secur…"
Wednesday
DIY Robocars via Twitter
RT @SmallpixelCar: Smart move. The car used the shadow to guide it through the bridge. This was never in the training samples. But it learn…
Wednesday
DIY Robocars via Twitter
RT @SmallpixelCar: Getting closer to the target. Single camera. Untrained road. https://t.co/Wsr7RwDamj
Tuesday
Richard Cox left a comment on Australia
"Anyone in the DIYDRONES Australian subgroup based in Alice Springs, NT?
I am experimenting with Ardupilot (standard Arduplane), Pixhawk 4 FC in a 4-ch
RC "AXN Floater Jet" foamy plane..."
Tuesday
Omar Sykes left a comment on Australia
"Hi everyone, I am looking for someone who is good at drone building, repair and software in Adelaide. Please give me a call on 0477 319 219."
Tuesday
DIY Robocars via Twitter
RT @RoboticMasters: #donkeycar https://t.co/czuLoVRcA4
Monday
DIY Robocars via Twitter
https://t.co/DKQbNTbz0g
Monday
DIY Robocars via Twitter
RT @RoboticMasters: Donkey car, car car car car car car; Donkey car, car car car car car car; Donkey Car. Anyone like our tiny tiny donkey…
Monday
DIY Robocars via Twitter
RT @SmallpixelCar: After improving DBSCAN speed, I can get 11 frame per second on @NVIDIAEmbedded Jerson Xavier MAXN mode and the autonomou…
Jun 26
DIY Robocars via Twitter
RT @Heavy02011: Join us at next Virtual Race League: ⁦@diyrobocars⁩ Race #4 - Parking Lot Nerds, August 1st https://t.co/5KUpu7VGaH
Jun 25
DIY Robocars via Twitter
RT @SmallpixelCar: #CUDA implementation should be easy, because most of the time is on distance calculations berween two points and if the…
Jun 25
DIY Robocars via Twitter
RT @SmallpixelCar: This is the view from the car. Even my lanenet inference is fast on @NVIDIAEmbedded Jerson Xavier, DBSCAN clustering tak…
Jun 25
DIY Robocars via Twitter
RT @SmallpixelCar: Ran my car in the park, with single camera and @sparkfun IMU. #TensorRT on @NVIDIAEmbedded Jetson Xavier. Lanenet one fr…
Jun 24
DIY Robocars via Twitter
RT @SmallpixelCar: Making progress on drive the car autonomously in my neighborhood. This run used single camera only. No other sensors. ht…
Jun 24
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars/@donkey_car AI racers are getting *fast* in the simulator, in part because it's so well optimized for reinforc…
Jun 21
DIY Robocars via Twitter
RT @DAVGtech: Yesterday we had a ten year old in Canada racing a sixteen year old in France. This is a truly unique community and opportuni…
Jun 21
More…