Ardupilot Mega Twinstar Build

lWWdMlx9KIj7fN2_Gqejrg0_gWEHFOpLhy4yxG9_MOttJUXHX0Me2PYP3oWcEdt4s8EANL92_6FdmC05YbpAlfQFttmtJA9Q2dhz7xgXnQIBX1zk0w

Here’s a build log for my Ardupilot Mega Twinstar II. Hopefully the included photos will be useful to anyone trying to decide which airframe to buy and wants to get an idea of the space in this model.

Overall, I am very happy with the Twinstar, my build didn’t require many modifications to the standard kit and the instructions in the box are pretty good. I’ve upgraded it to a brushless setup with a 3 cell lipo for power as it is cheap and sooo much better. I’ve included a full parts list at the bottom.

The great thing about the twinstar is it comes with an APM sized hole on the CG! (which by the way is a good thing for the IMU).
NB35nvGVn8U09h4IowSC7rQVYhHch8pgF3G3ht_ZAsufLnSrOMcJM06lKwyCyXycuKaTzB6DLhJRRWyNICEWjm9swNzAcTuC6ybo7JRuKklR9cJcBQ

Okay, so a little bit of shaving is required on the left hand fuselage half. And as I later discovered, its best if you put a straight pin header on the airspeed sensor connector, not the right angled one shown here. Otherwise you can’t pull it out between the wing bolts so easily.

h72OhZOFlY70MQjy2qvN2WnKkQlLzbtYoQUN9n_aToDESIb72euLrEY6hPDj1ET-R0fhMWyxXN0P7-cRJ_0LZJlN2pHfKzduxefR6Lj3d2S3o4T-Vg

This next picture shows my chosen component layout in the fuselage. I’ve gone for servos in the standard location for simplicity. The receiver I am going to put in the rear as the servo connectors on the APM must point backwards, and I have a switching mode power regulator just below the rear wing bolt.

__MTTy9M_7p8paJgrQQPJGMzwFs7hCtT12QpLWmBQ_4kh-LHkmdIyiIRuN5p8hYwq_dvkqSN7Nzc0VPEHqvgxkd19bpj1s9uJW6V7yVOF4xnicT2uA

If I want to change the receiver in the future, I’ll have to cut it out, but I imagine I can patch it up again no problem. If I need to rebind the receiver that’s also covered, as I put a y-lead on the battery connector, one end going out the side of the fuselage, the other end to the voltage regulator.

I cut out a hole for the servo wires from the receiver and then hot glued them in place with the APM in the fuselage, being careful not to get any glue on the APM itself. This means that the APM can be simply pushed into the servo connectors and all 8 inputs are wired up in one go. I made my servo wires to fit, and in retrospect, I would have bought some 8 long female headers instead of servo connectors for the APM end. I also cut a slot out for the USB connector.

6o6pZiLJAjd1N05O8bbw1_u7PSQPtXtTbe78HSsUoSjRZ2QE400uiDN2GSTdvSOEW4qgcBn5yVdz9tvCCBF19m8tdCTUGTx_SnIkoz7F_T-2jENg6Q

On the other fuselage half, a hole for the output servos must be cut. Here the rudder servo wire can be seen passing by. The wire is embedded in the foam, so as not to interfere with the underside of the board, and then appears through the newly cut gap. When installing the APM, that wire is going to get pushed back into the compartment behind.

d0SJzbWCa5HMqvE-xtRXR4TJSy4pJeJvoX2xK4m54dRWAyoQOEFMRrKdn_1hcss5mMdMNQdrKaM894YI_XZHALDoHCHo7NuHUwg1SsZtaCJQg-p7ww

The pitot tubes go in the nose, so the airspeed indicator should probably go somewhere near by. Here’s my choice. I have put velcro hook and loop tape on the sensor so if it needs re-plumbing when I end up bending those tubes, its easier to remove and put back. For the connector, I used a 90 degree header, but soldered it at an angle, so that the output is pretty much in line with the fus.

qS3zb2yySjYcpcoT86oJ8nJ_Fm_25aF-XXdCaCCiL6pNEoCxfeaGoSKmWvSwJVtWfddyKF0rUMxLWQMcw5vOjus5LDY-kd8qaSnLxtxMwzw2DNNieg

I then cut a v shaped channel in the fuselage half for the tubes, tacked them in place with CA, and then offered the other fuselage half up, squeezed them slightly, leaving an imprint of the pitot tube location. Then I cut a corresponding v.

mP7y3e3yEwuGLRzfjOeX3HtF5gDQ3o_Ij5924s_sdADJJl-4Ib7bv3a43h_76OJnLczr6obhmEIiFIf6rPOFO1guhEKV8JnopIDkCG0BcSSZfOrmmQ

With everything in place the halves are now joined. A piece of card can be glued down below where the APM will sit, to stop it making contact with the Elapor foam.


Here is a picture showing the string that I’ve attached to the board to help pull it out of the hot glued servo connectors. As it is a snug fit after all :) When it is in place, take a look at the two cutouts on the fuselage in-sides where the tailplane snakes are installed. These provide excellent ‘rails’ for sliding back a piece of card to above the APM, providing protection from the wires coming from the wing.

1coLLHvJFjyb__z_PR2-ysiU3rMYRLhgbTw9ARXrfpIW3UBvA5LVQTLdR8Cstwc8qqj6P8zxpCCyJ3RTFXmHQeVDURfS95BhUzGn9DvZhroV6LWxaQ

The GPS unit goes nicely in the canopy, which essentially provides it with a massive amount of protective foam. I didn’t feel the need to have it protruding out the top either, I’m sure the foam will not interfere with the signal. Oh, and it’s best to remove the 4 pin header (only required for FTDI connection if yours wasn’t pre-programmed) or you’ll end up spiking a wire or battery!

SL3bwM3QWKINrPxQzvQmiojUtSE1xIGyaEP9aq5iBGjMFrEmmMC6clxQ2Gd1bcCpDTMXtG6Dm7qMB6Cw-YM4a-5-ly7RpRpvJ5IB86seAPire6wPRQ

The motor supplied is about the same diameter as my selected brushless motor, only longer and 20g heavier. So the mount requires shortening. Being an outrunner, the outside of the brushless motor rotates, and so clearance between it and the flanges on the mount is more critical- so these will require filing down a little bit too.

xwAV0D6N1PSWt9vfaiAlG6L4Ai3hjzVLYcIB9S21F8PzpKzP4FSeJgFlEG4Anuj-cHkIfShYM_8JRUXiUjXo5YEmsNQdQJHauz3efZ_L-IrzxTdBVw

I’ve installed the motor mounts facing the opposite way to the way shown in the manual such that the load from the motor isn’t pulling on those four feeble looking self tappers that hold on the mounting plate.

I wanted the ESC to be in the airflow to give it a good amount of cooling, but didn’t want it to ruin the aerodynamics of the wing. So I opted to cut into the motor nacelle slightly and CA the ESC in place such that the smooth side is flush with the surface of the wing. The only real protrusion into the airflow is the capacitor.

1I0yPH_02b2SVhqV5obnvN7UnMFoRuiXEk7sK0T1_z9TReCWVZqW2Gm9AshAJOXAUx5YxjqlXWVKhStvT0SdW5brmaI12Funx_-EvXSkp0lT7eDD1Q

The wires (all of which I had to extend) can then be run into the foam as per the manual, before gluing on the spar cover. As there are quite a few wires running down here, I tacked them in place with some CA to help alignment and minimise trimming of the cover.

uLpV3cKi_qJg2RQV-0WaJyhsMZS5Zyhd-plwIoNsd9po5g3cEkmqxJ-6bi2nzjUdJWcDVGzGcarIlQqTA7Q4X9UbP0YzZjjbzvzV00DjR0Xx_EIQ_Q

I also broke the connection on the middle red wire coming from the ESC to disable the included BEC. This means that I don’t have to use the less efficient linear BEC and as an added bonus, can power on without the wings attached if testing.

I used a smaller servo than the recommended, but with enough glue I believe it won’t move around within that over-sized cut out. Also, the decals can be used later to smooth the wing where there is now a big gap.

LQzfUiswvT4tbVgzvzcKYfrhF8suN4Kg12xvxZzYwjBRMNa4O2R7VwMmxlgbzh63IAUQqxMK8OpeX0xx7rqasw7bRi1BoSden5ZTtvMkwVRwLjBl4Q

Finally a power wire needs to be made with 3.5mm gold plugs for the battery end, positive male, negative female. The other end is connected in parallel to two (female) deans connectors for the ESCs as well as a single JST (male) connector for the radio power supply (the switching mode voltage regulator or “UBEC”). The lipo is held in place with velcro, for which I bought the branded stuff, the kit supplied didn’t appear to be all that strong. I originally went for counter rotating props in this, but my APC props were so out of balance that I had to put some cheapo GWS ones on until my blade balancer arrives.

I took a lot of pictures during the build, so more are available upon request. Here’s the part list, which after postage, without the transmitter and receiver comes to around £500 (in the UK). Also the take off weight is 1.3 kg

PartModelQuantity
APM1
Oilpan1
AirframeMultiplex Twinstar II1
Motors1300kv 28mm by 30mm 50gr outrunner2
ESC30A unbranded2
UBEC3A Switching mode unbranded1
ServosEmax ES08D 8gr digital servos4
Lipo3000mAh 3 cell Loong Max Tipple1
Propellers9x62
Servo wire6 metres is plenty!1
Servo connectors10 pack male1
Power connectors2x Dean pairs, 3.5mm gold, JST male1
GPS receiveruBlox1
GPS adaptordiydrones adaptor1
GPS cable30cm is more than long enough1
Pitot tubesBought spares!2
Airspeed sensorMPXV7002DP1
XplaneVersion 91
Transmitter + ReceiverSpektrum DX7 + AR7000 - this may change when I add telemetry1

I have successfully flown this a handful of times now. It flies superbly- very stable with plenty of climb out performance. I haven't worked out the flight time yet as I've been tinkering a lot, but I reckon it could comfortably cruise for 15-20 minutes.

The stock settings for the APM work very well indeed. As do the default FBW-B speeds- the minimum of 6m/s looks very slow and I was worried about it stalling at first, but it had no problem in keeping its height and attitude rock solid :)
E-mail me when people leave their comments –

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

Join diydrones

Comments

  • Nope, just one output. Exactly the same as if you were flying off of just the receiver, use a Y lead to the ESCs

  • How do you connect the 2 motors? Are they separate outputs on the APM?

    Thanks!
  • Hi Colin,
    It was really good to see ur build in action :)
  • Admin
    @Colin,

    Congratulations on a successful maiden flight. I have yet to fly my Twinstar IIs with the either the Ardupilot or the APM. I am presently flying with the FMA Copilot II and it works very well. I plan to fly with one of my APMs in the near future. You successful maiden with the APM has given me much encouragement to move ahead with the APM/IMU Mega installation.

    Regards,
    TCIII
  • Thanks Thomas, you raise a very good point about the potential for static charge damage. I have put cardboard down underneath the APM, such that it doesn’t come into contact with the Elapor. I shall update the post with some pictures when I get a chance.

    I have now maidened it! I am very impressed :D Both the model and the APM performed wonderfully.

    The twinstar is an absolute gem. It was very stable in the air, but with good control authority; it had plenty of climb out performance with the brushless motors and a good flight time on the 3000mAh lipos.

    I didn’t have chance to fiddle with the PID gains, as I was mostly testing the model and getting used to the behaviour of the APM than performing any formal analysis. The stock settings did work very well though.

    Stabilisation mode was able to return the model to level very quickly and cleanly from high angles of attack – like 50 degrees pitch with some roll. I also tested fly by wire A mode, which worked well at cruise speed. At low speeds, such as gliding in, things did sometimes seem a bit unresponsive.

    The last flight ended well, with the model landing hands off after I lined it up in FBW-A mode :-)
  • Admin
    Anyone working with Elapor type foam should keep in mind that it can generate quite a static charge on cold, dry days so be sure to protect your APM/IMU Mega by not having it come in direct contact with the foam surfaces.

    Just a thought.

    Regards,
    TCIII
  • Admin
    @Colin,

    I cut away the Elapor foam at the rudder/elevator servo mounts and installed EPP blocks to mount the servos on. Now removal or replacement of the servos is as simple as unscrewing the servo hold down screws and removing the servo from the fuse.

    You might want to rethink the size of the servos moving the ailerons. I used HS-81s and felt that anything smaller might wind up stripping the gears eventually.

    Regards,
    TCIII
  • Moderator
    Well its a great aircraft, I love mine! Look forward to seeing it fly.
  • Thanks for the comments :) The description of the pitot tubes is on the APM manual at

    http://code.google.com/p/ardupilot-mega/wiki/Airspeed

    Which should answer your questions. I'm happy with my placement, they should get some clean flow, I just have to be careful not to land too "hard".

    I was very close to mounting my servos in the tail Gary. I especially liked how Magnus mounted his. Also, you get a much tighter linkage if they're in the tail. In the end I decided to just install them as per the instructions as it didn't require buying any more equipment and I wanted to get on with it. I may relocate them if I ever need to make more room up front for new equipment.
  • Moderator
    Move those servos to the tail, much easier.
This reply was deleted.