3D Robotics

Getting ready for ArduPilot 2.0

ArduPilot 2.0 uses the same hardware as ArduPilot 1.0 but new software to do both the navigation and stabilization functions itself, with no need for a FMA Co-Pilot (although we still use the FMA XY sensor). Here's how to directly connect the FMA sensor to ArduPilot. [Note if you're buying the FMA XY sensor by itself, you'll need to order a cable, too. Also, note that the sensors come from FMA with a thin film (usually red) over the thermopile lenses. You have to remove the film before using them.] Cut one of the cables that comes with the FMA sensor in half and pull the four wires apart for about two inches. Strip their ends by about a quarter of an inch. Slip on heat shrink tubing. If you have some red tubing, put it on the second wire in from the side of the cable with the red strip, to mark the positive power cable (yes, that's confusing. V+ isn't the wire with the red strip--it's the wire next to it!). Now solder each pair of wires to a two-pin male machine pin header, and shrink the tubing around them. (See photo above). Now, solder on one two-hole female machine pin header to the ArduPilot board in the VCC and GND holes, and another one in holes Analog 0 and 1, as shown in the diagram below. You can see the FMA sensor pin-out details here. Finally, solder a regular two-pin header on the ArduPilot's D6 and D7 holes. This is to place a jumper on when you're doing IR calibration the first time on the ground.

Note that in this version of ArduPilot, we do altitude control with the elevator, not the throttle, so plug in your servos as shown in the diagram below:

You can test your sensor by downloading and running this simple test program. Just load it on ArduPilot (make sure the board is powered and the GPS is not connected). With the FTDI cable connected, click on the serial monitor icon in Arduino and make sure the speed is set for 9600. The program will prompt you to tilt the sensor in certain directions and then strike any key and hit return when you're ready to take the X and Y sensor readings. Remember that sensor readings inside and near heat sources (like your hand) are nothing like the real thing outside. But it's still a good way to confirm that your sensor is working right. Note that when you mount the sensor on your aircraft, the wire should be coming out towards the tail, as shown in the picture of an EasyStar configuration below (you don't need to put it on a pod like that--any position that has a relatively unubstructed view of all four sides is fine). The "P"s on the sensor should be facing forwards and towards the rear, with the one next to the FMA logo in front.

E-mail me when people leave their comments –

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

Join diydrones

Comments

  • Moderator
    Check out this section.
  • Chris you are great, when i can buy ArduPilot 2.0, i am beginner in RC hobby, Please also advice what parts i need for QuadCopter,

    Thanks
  • 3D Robotics
    Thanks, Jeremy. The Z sensor still comes with a cable, but I've updated the post to tell people to get a cable if they're buying the XY by itself.
  • Yes, just received one with no cable at all, appears they sell it separately now.
  • 3D Robotics
    Jeremy, they used to come with a cable. Have you ordered one recently that didn't? I'll correct the post if so..
  • Just wanted to add that the FMA XY sensor does not actually come with a cable, you have to order it separately. Could cause some confusion in the instructions.
  • I am confused by the basic instructions using male pins for the eight pin string above the gps connector, but in the 2.0 instructions it says to solder in female in the GND & VCC points. I guess it hardly matters as long as they mate, but initially it set me thinking the 2.0 instructions were totally exclusive of the earlier version. I'll get there...

    Ken
  • 3D Robotics
    Ken, those are just the instructions for modifying the board for the 2.0 software. The basic instructions for setting up the board are here, which is right on the ArduPilot home page. Please start there.
  • Looks like I need the CTRL and IN 1 & 2 also,,,,duh. And FTDI connnection.

    Ken
  • In the soldering instructions above, I don't see anything mentioned about connections for the FTDI cable. Should I solder pins somewhere for it as well. Any other pins need to be soldered other than those noted on the board illustration above?

    thanks,
    Ken
This reply was deleted.