3D Robotics

ArduPilot (Legacy) main page

 

3689315381?profile=original

 

[This original ArduPilot board, now called the "Legacy ArduPilot" is no longer produced or officially supported by the DIY Drones dev team, and this page is maintained just for historic reasons. However, there are still many users of it out there and it still works fine. The user group for Legacy ArduPilot users, for both thermopile and IMU use, is here.]

 

ArduPilot is a full-featured autopilot based on the Arduino open-source hardware platform. It uses infrared (thermopile) sensors or an IMU for stabilization and GPS for navigation. It is the autopilot used to win the 2009 Sparkfun Autonomous Vehicle Competition.

The hardware is available from Sparkfun for $24.95. An expansion board ("Shield") kits that includes an airspeed sensor, a 3.3v power regulator for 3.3v GPS modules and other sensors and cables and connectors for easy attachment of the XY and Z sensors, is available from our own store for $57.20.

 

User f

ArduPilot features include:

  • Can be used for an autonomous aircraft, car or boat.
  • Built-in hardware failsafe that uses a separate circuit (multiplexer chip and ATTiny processor) to transfer control from the RC system to the autopilot and back again. Includes ability to reboot the main processor in mid-flight.
  • Multiple 3D waypoints (limited only by memory)
  • Altitude controlled with the elevator and throttle
  • Comes with a 6-pin GPS connector for the 4Hz uBlox5 or 1hz EM406 GPS modules.
  • Has six spare analog inputs (with ADC on each) and six spare digital input/outputs to add additional sensors
  • Supports addition of wireless modules for real-time telemetry
  • Based on a 16MhZ Atmega328 processor. Total onboard processing power aprox 24 MIPS.
  • Very small: 30mm x 47mm
  • Can be powered by either the RC receiver or a separate battery
  • Four RC-in channels (plus the autopilot on/off channel) can be processed by the autopilot. Autopilot can also control four channels out.
  • LEDs for power, failsafe (on/off), status and GPS (satellite lock).


Resources:

ArduPilot requires the free Arduino IDE to edit and upload the code to the ArduPilot board.



The code is currently optimized for the Mutiplex EasyStar three-channel powered glider and FMA sensors, but can be modified for other aircraft and sensors. It uses the rudder/ailerons and elevator to maintain level flight and navigate to GPS waypoints. It supports a desktop setup utility and ground station software. It also includes a "fly-by-wire" mode that simply stabilizes RC flight. The main code is ArduPilot2.x.zip in the download section of our Google Code repository, where x is the latest version.

What you need to make a fully-functional autopilot:


Open source extras:

  • If you want to build your own board from scratch, the necessary files and component lists are here.
  • [Note: you shouldn't need this, since this code is loaded on the ArduPilot board at the factory] Latest multiplexer code (for the board's second processor, an Attiny, which runs the failsafe system) is here.
    Instructions for loading this code are here.



Recommended UAV setup:

3689303688?profile=original


Airframe option one: Hobbico SuperStar (49" wingspan, $95, shown above). This is an inexpensive, good flying high-wing trainer with ailerons. It can be hand launched in a park or take off from a runway, and replacement parts are readily available in case of a crash. If you want much better performance with this aircraft, you can upgrade it to a brushless motor, speed controller and a LiPo battery. [If you don't already have one, you'll also need a balancing charger and power supply.] Note: any stable aircraft with both ailerons (for stabilization) and rudder (for navigation) can work, so feel free to experiment with what you've got.

3689313666?profile=original


Airframe option two (recommended for ArduPilot 2.x): EasyStar (shown above). Performance can be improved with the modifications described in this post.

You'll also need:

  • A six or seven channel RC transmitter and receiver, with at least one toggle switch (ideally three-position but two-position will work, too, although you will have to mix channels to have access to both autopilot modes in the air), such as the Futaba 7C.
  • Some servos (at least three for ArduPilot 1.0; at least two for ArduPilot 2.x) and at least three female-to-female servo cables to connect the RC receiver to ArduPilot.


Cool optional extras for your UAV:

E-mail me when people leave their comments –

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

Join diydrones

Comments

  • @Brian
    As already said in a previous post I have the same issue. The plane enter in WP mode and at a certain point it dive. It happens that the model exit itself from the dive. I noticed that at this point the WP sequence is resetted. The ardustation shows WP0. I guess this means it will try to reach home to begin the sequence. When at WP2 or 3 this happens again.
  • @Bryan
    strange, in the first test video it worked , in the second one, no way , she would dive all the time , even with altitude set to 1000mtrs

    same set up same waypoint only calibration was done (bind plug)
    i did it a few time to be sure that worked and read the ardupilot with config tool to control alt ref etc...
    all ok.

    don't know what it is but it is strange + the bearing stabilisation is working great ;when i put the pitch directly on the receiver to get manual control the plane is going were it should very accuretly even when i leave the sticks centered (pitch included)

    my plane is on is recovery way, should fly again within two days (wasn't sure about it thaught it was the end of it)

    @Jordi
    do you have an idea on what i should try/setup to make it works?

    thank you guys for your support
  • >Fefenin,
    I had the same issues with my plane diving. One day, she would fly level when I switched to WP or RTL, the next day she would dive. She would dive and I'd return to manual, then I would switch back and she would dive again but not as much and eventually she would stabilize in pitch. Very strange behaviour and I never figured out what the cause was.
    One thing I noticed is when I increased the pitch proportional gain, the diving was worse. I'm not sure but I think this indicated a problem in the navigation code and not the IR sensors(stabilization).
  • @Gus5610

    thank you for those infos ,
    i'll be glad to meet you in Taipei for a fly!
    i'm not sure i'll take everything on my backpack... but i'll try to put what is usefull in!

    i'll be more than pleased to fly there ...

    i can't read chinese so i'll wait until i'm there to ask somebody


    @Peter,
    IR sensors are leveled at 0 deg like the horizontal stab,
    i tried different altitude settings, as 1000meters!! it still diving very hard!!

    i can still move the IR sensor a bit but...
    i'm a bit lost on this...

    trying to rebuild the wing quickly to test something else but i don't quite see what's going on!
  • @Fefenin,

    I made no changes to pitch values at all, only roll,heading and integrator.

    Its weird that it is diving with a flat bottom wing and dihedral. only thing I can think of is the IR sensors are not level as I stated in prior posts.Or your altitude settings are causing the ardupilot to pitch down to correct for too high scenario - just a though, have you tried setting a higher altitude and see if she climbs ?
  • Fefenin: I might help you. When u are in Taiwan. U can buy Easy Star from Taiwan eBay @NTD1500 and u can choose to pay money to the delivery staff when u receive it wz about NTD150-200 extra see the link
    http://tw.page.bid.yahoo.com/tw/auction/1198566579
    There is a good flying field in Taipei, which the GPS location in 25.018982, 121.441541, called 西盛機場. behind it, there is a model shop called 翔翼模型 just 200M behind the field. I think ur Taiwan friends will be glad to help u out. It should be worth to carry ur FPV gears to Taiwan as well.

    I am currently in Australia and already successfully fly easy* equipped with RangeVideo OSD gen 1 and easy * with Ardupilot but have not tried easy* wz RVOSD & Ardupilot together yet.I am also moving back to Taiwan, Taipei on Oct so if u hv no mates to fly wz, may be u can fly wz me.
  • hi Peter and Bryan,

    they're is diedral on the wing ,(quite a lot in fact a bout 5deg for each side \__/ )
    the airfoil is the Clark Y 15.75 Flat bottom


    the CG was good at first but i did make it a lot tail heavy after that (near 1/2 of tha leding edge)
    it is very stable at any CG between the leding edge and the middle of the wing in fact in fact.

    with this type of wing i can't fly inverted at all!!!

    i think it i need to tweak it by soft not hardware... (plane is flying great between 35km/h and 70km/h)

    Bryan , i agree with you , in the first video it is not maintening altitude in turns but if you watch the second video , you'll see how it is diving quicly when i swith autopilot on.

    in this video autopilot is on when OSD is on (AP On is writen on top of the screen)

    did you guys changed the pitch values in the .h ??

    hope i can fly this plane again before i leave my country...

    regards
    fefenin
  • >Fefenin,
    I just watched your first video and it looked to me like the plane was not maintaining altitude in the turns. You may want to try raising the following value and see if it helps.
    //3-23
    #define PITCH_COMP .30 //<------Very important, Pitch compensation vs. Roll bank angle.
  • Fefenin,

    Any Dihedral in the wing ? Its hard to tell from the photos. I.E. Angle. Is it a symetrical airfoil ?

    If the incidence change didn't help, what about CG. Is it nose heavy now ? If so, move the CG slightly back. When you flip her over inverted, does she dive down towards the ground ? If so then she is really nose heavy. Adjust - re-fly the plane and flip inverted if she continues to dive down, then keep moving the CG back until when you flip inverted she almost holds level flight. This might help your diving issue as well, since Im not sure the incidence change did ....

    -Peter
  • ok, tried:

    put a lot up up elevator trim and restart ardupilot
    put 3 deg more incidence on the wing (with the horizontal stab at 0)
    put ALTITUDE_ERROR_PITCH_MAX to 14 (default 0)

    after that, i crashed landing the plane....

    it was very windy and the front wind stopped so i stalled and crashed

    here is a video of this fly

    is it possible that i should adjust the PI gain of the pitch??
    what can that change:
    ALTITUDE_ERROR_PITCH_PROPORTIONAL ?

    does the manual tuning methode shows here works ??

    it is so sad cause i wanted to finish this project before the 15th of september, i'll be traveling for 6 month (well maybe less) in taiwan

    i guess i'll have to put the little ardupilot in my pocket and buy an easystar out there to continue learning...
This reply was deleted.