<<

Airborne Projects specializes in building drone solutions with emphasis on telemetry AIRBORNE PROJECTS gathering and integration with avionics and automatic flight systems.

DROTAG - Alpha Series Image Tagging

Quick Start Guide

DroTag is a small board that simply sits between your Sony Alpha Series and your Pixhawk, allowing you to plan the camera trigger events and have the pictures taken automati- cally geo-tagged on the fly.

Upon landing you only need to take out the card from your camera and the images are immediately available and ready to be visualized/used by your mapping software. Contents

1 Context 1

2 Assumptions 1

3 Package Contents 1

4 Hardware installation 1

4.1 Sony Alpha Specifics ...... 2

4.1.1 Tethering setting ...... 2

4.1.2 Focus Mode setting (Recommended) ...... 2

4.2 Setup your TELEM Port Parameters ...... 3

4.3 Setup Arming mode (Arduplane specific) ...... 3

4.4 configuration - Optional ...... 3

4.4.1 Ardupilot Parameters ...... 3

4.4.2 Camera connection ...... 4

5 Preflight Mission Planning 4

5.1 Time Between Pictures or "Photo every (est)" ...... 5

6 Pre-Flight Checklist 5

6.1 Pre-Flight checklist - Detailed Explanation ...... 6

7 In Flight Capabilities 6

7.1 Manual triggering from RC (ArduCopter only) ...... 6

7.2 Flight Behaviour ...... 7

7.2.1 Special Note: Do not take pictures while in RTL or LAND mission or mode . . . . .7

8 After Flight Capabilities 8

8.1 DROTAG microSD card care ...... 8

9 Troubleshooting 8

9.1 Reflashing the DROTAGx firmware ...... 8

9.1.1 Write the image through Windows ...... 8

9.1.2 Write the image through Linux ...... 9

9.2 After flight the camera still has a lens retracted ...... 9

9.3 Significant delay in pictures ...... 9

9.4 Display is stuck "Camera USB Connecting" ...... 9 9.5 How to verify the systems on the ground ...... 10

9.6 There are photos missing? Why? ...... 10

9.7 Display is stuck on "Check Connect Device" ...... 11

10 Further Information 11

Appendix A Reasons for lack of APM 2.x support 11

Appendix B Considerations on appropriate camera SD Cards. 11 1 Context

This User Guide’s goal is to get DROTAG working with your tethering camera and your Ardupilot based Flight Controller module.

DROTAG is a small board that simply sits between your camera and your Flight Controller (like Pixhawk), allowing you to remote trigger the camera (manual or automatically) and have the taken pictures auto- matically geo-tagged. The pictures are tagged in the camera itself.

Currently the main Sony tested are (A5000, A5100, QX1, A6000, A6300, RX100 M2), but others may be added in the future.

2 Assumptions

1. The DROTAG module is connected to one of the available telemetry output found on your flight controller (Pixhawk/NAVIO/etc); 2. The power to the DROTAG is supplied by the autopilot’s telemetry port; 3. To get the pictures geo-tagged you need a GPS fix on your Autopilot. Without it, DROTAG will not trigger the camera

3 Package Contents

1. DROTAG board; 2. New: External Hotshoe PCB; 3. DROTAG Quick Start Guide; 4. An Operation Checklist;

4 Hardware installation

Below you can find a picture illustrating the installation. We point out that good practices are advised re- garding fixation of the board. Boards and Cables should be stowed clear of propellers in a vibration resistant manner.

1 4.1 Sony Alpha Specifics

There are 2 camera settings DROTAG can’t change automatically, which are important for aerial photog- raphy. The tethering setting and the focus mode. In the following instructions you will learn how to make these one-time configurations to your Sony camera. The procedure for each specific Sony camera can be slightly different steps than the exemplified below.

4.1.1 Tethering setting

• Turn On the camera;

• Press the Menu button;

• Navigate to the Setup tile;

• Navigate-right, to page 2;

• On the USB Connection select USB Storage;

4.1.2 Focus Mode setting (Recommended)

• Turn On the camera;

• Press the Menu button;

• Select Camera Settings;

• Go to Page 3 by navigating-right;

• Navigate and select Focus Mode;

• Navigate the options available until you find and select one saying MF;

• Rotate the lens ring until your camera says it is on ∞.

2 4.2 Setup your TELEM Port Parameters

This step is required to configure the TELEMETRY Port that you are willing to use your DROTAG board. It only needs to be done once or any time you reset/refactor your parameters.

In the following instructions SERIAL1 prefix corresponds to TELEM1. If you would like to use TELEM2 the applicable parameters are prefixed by SERIAL2. Accordingly, prefix SERIAL4 corresponds to physical port TELEM4/5.

1. Connect your Flight Controller to Mission Planner (or equivalent);

2. Select the Config/Tuning tab;

3. Select Full Parameter Tree;

4. Find the command node SERIAL1 and set:

(a) SERIAL1_BAUD 57 - For sales or firmware before 2018/04/10. (b) SERIAL1_BAUD 115 - For sale of firmware after 2018/04/10. (c) SERIAL1_PROTOCOL 1

5. Click Write Params

6. Power Cycle your Flight Controller board in order to the changes take effect.

4.3 Setup Arming mode (Arduplane specific)

The DROTAG needs to know when the Ardupilot is armed so that it starts a new flight session. With Arduplane, it is frequent that operators do not have any arming modes enabled.

These instructions will help you enable the Rudder/Yaw arming settings. The procedure is similar to the TELEM Port Parameters but this time you need to set the Parameters ARMING_RUDDER to 1 and ARMING_REQUIRED to 1 or 2. We highly advise you to read carefully what these parameters do as they may affect your flight operation.

4.4 Hot shoe configuration - Optional

4.4.1 Ardupilot Parameters

If your camera has an external flash socket you can use the hotshoe board included with the DROTAG. In Mission Planner, go to the CONFIG/TUNNING tab and select Full Parameter Tree. Now search for the CAM_FEEDBACK_PIN parameter.

To select which Pixhawk AUX pin the Hotshoe board is connected, choose a number between 50 and 55 where 50 corresponds to to AUX pin 0 and 55 corresponds to AUX pin 5. See the image 4.4.1 to better understand. Do not forget to press Write Params otherwise the parameters are not saved.

By default the DROTAGx sets the correct CAM_FEEDBACK_POL parameter and correctly sets the value of CAM_FEEDBACK_POL if the hotshoe functionality is enabled. This way you do not need to set any value on this parameter manually. If you do, the DROTAGx will overwrite it to 0.

IMPORTANT: If you enable the hotshoe functionality in the autopilot but do not have the actual hotshoe board installed in the camera the tagging will always fail. This is not a malfunction. When you do not want to use the hotshoe set the CAM_FEEDBACK_PIN to 0 before using DROTAG.

3 4.4.2 Camera connection

To physically connect the hotshoe board to the camera you need to have it installed as in the picture. It is very important that the center spring contact is facing the camera otherwise the signal does not reach the autopilot and tagging will fail. See example image 4.4.2 to be sure what face needs to be visible when you install the hotshoe on the camera.

Another important aspect is that the camera’s flash doesn’t need to be enabled and it should be set be always off.

5 Preflight Mission Planning

DROTAG relies on Ardupilot messages to trigger the camera and add tags to it, so it is worth taking the time to learn how to efficient mission planning. At Airborne Projects we do the planning of the mission and waypoint upload through Mission Planner.

Although planning a mission in Mission Planner or others is outside the scope of this manual there are some details that need to be taken into account. Specifically the "Photo every (est)".

Other parameters and tutorials on Mission Planner can be found on this link. We seriously advise our customers to get comfortable with tutorials as this part of the flight is the only one which is not automated.

4 5.1 Time Between Pictures or "Photo every (est)"

The "Photo every (est)" parameter should not be less than 1.6 seconds unless you have the com- patible hotshoe installed and configured. There is no limitation with the hotshoe configured and installed in your camera. If the time between triggers in your mission plan is less than 1.6 second the trigger order will be not be issued by DROTAG. It is important to note that this time limit can be broken by flight conditions, like wind. In this case it may happen that the number of pictures predicted does not match the actual taken. This limitation would happen in any case due to the camera’s write speed.

There are many ways around the "Photo every (est)" parameter, each with their own drawbacks. Below, you can find the available approaches in order of best to worse:

1. Slightly Slower Flight - Your mission will take longer to fly but all your pictures will be with the desired Ground Resolution (/cm) which is the normal requirement parameter when doing aerial .

2. Higher Altitude - When flying higher you can sacrifice Ground Resolution to obtain pictures with bigger area covered. With bigger area covered in each picture, the more time you have to take next one. You may hit a hard limit on both the altitude as well as on the Ground Resolution requirements.

3. Overlap or Sidelap reduction - It may be possible, due to end use of the collected pictures to reduce the sidelap or overlap of the pictures so that they are less frequent. This increases the time between pictures.

4. 2 passes - You can program the mission to perform the same flight path twice with a slight offset to get the same overlap at the cost of extended mission time. This option is not available automatically by Mission Planner and needs manually creating the mission waypoints.

6 Pre-Flight Checklist

Included in the DROTAG package is a checklist to perform before the flight. This checklist is not manda- tory but is a good practice to guarantee that your field work will be flawlessly done.

5 1. Verify camera and cables are secure and away from the propeller’s path.

2. Verify if the hotshoe parameters, including mission, are correct for the setup.

3. Power On the camera and check battery.

4. (Optional) Make sure that the camera settings are correct.

5. Power On the UAV general power.

6. Wait for GPS Lock.

7. The DROTAG system is ready-to-go! Have a nice flight!

6.1 Pre-Flight checklist - Detailed Explanation

1. Verify camera and cables are secure - This item is responsible for no damage or loss of equip- ment. Not getting pictures is bad, destroying your hardware is worse.

2. Power on the camera and check battery - The camera should be powered before the DROTAG board because the software running will not see any camera available. If the DROTAG board is powered before camera it can be reset and it will try to check the camera again. Powering on the camera is useful to check if there is any error in the camera. The battery check serves as a situational awareness reminder. It is up to the operator to ensure the camera has enough battery to perform the flight.

3. (Optional) Verify camera settings are correct - This is optional because the camera settings should not change between flights. You should observer this item if the camera settings were previously changed. Incorrect picture settings can make DROTAG under-perform severely because some settings can cause the camera to have big delays between trigger and picture shooting, blocking DROTAG while flight is carried on normally. Incorrect picture settings can also lead to blurry, dark or white pictures. Standard guidelines to camera settings are given in the appendix.

4. Power On the UAV general power - This will power all the system as well as the DROTAG board allowing it to take control of the camera.

5. Wait for GPS Lock - The Ardupilot needs to acquire a 3D Fix to have a position estimate. The position estimate of Ardupilot is what enables coordinates tagging into the picture. The way you check for this event is not the same in all the Ardupilot/GPS receivers. On the Pixhawk when the LED is green the GPS is locked and this item is passed.

6. DROTAG System is Ready-to-Go! - The operator can take-off and start the mission knowing the camera system is working.

7 In Flight Capabilities

You can only interact with DROTAG in flight by associating an RC channel to Camera trigger. All other interactions are automatically triggered by Ardupilot.

7.1 Manual triggering from RC (ArduCopter only)

If you want to manually trigger DROTAG you can configure an RC channel to do it. For this follow the instruction taken from Ardupilot documentation page for example for channel 7:

• Open Mission Planner and then click on CONFIG/TUNING | Full Parameters List;

6 • Set the value of CH_OPT to 9

• Write Parameters and reboot.

The camera should now trigger on channel 7 toggle.

7.2 Flight Behaviour

When DROTAG is flying, it behaves like simple trigger to the camera and their interaction is very limited. When DROTAG is ready to take pictures the lens of the camera should be out and, if applicable, the screen should be live as if it were ready to take pictures manually.

In a normal flight the pictures are not tagged until very specific events happen:

• A pre-programmed mission reached it’s last way point.

• A LAND or RTL waypoint is activated.

• LAND or RTL mode are selected.

• The motors are disarmed (Only applicable for ArduCopter)

Before tagging the pictures DROTAG always writes a companion text file with the data of the triggers for additional information is available. For special orders this file can contain additional custom information.

When the tagging is being executed the camera is not available for pictures. A clear sign is that the lens is retracted and the screen says it is in USB mode like in the image in 7.2.1. Also most cameras has card activity LED that will be almost permanently ON if DROTAG is still working.

It is expected and desirable that the tagging happens in flight but it sometimes can take a while for it to happen. When DROTAG finishes tagging, the is put out, and a new flight session can commence or DROTAG can be turned off.

DROTAG does not need to be restarted for a new flight.

7.2.1 Special Note: Do not take pictures while in RTL or LAND mission or mode

One of the conditions DROTAG is uses to know if it should start tagging is to verify that it is not Return to Launch or Landing mode. This applies also for equivalent mission commands. If you take pictures in this condition DROTAG will take a picture and immediately start tagging after it does so, which may not be what you want. Be aware of this technical detail.

7 8 After Flight Capabilities

8.1 DROTAG microSD card care

The partition that is visible under Windows also contains hidden boot files necessary for DROTAG to boot and start. If you blindly format the card you will also erase this boot files needing to re-image the card, which is a time wasting effort. Reiterating DO NOT FORMAT THE CARD IN WINDOWS. Contact us for help in such a task.

9 Troubleshooting

9.1 Reflashing the DROTAGx firmware

DROTAGx should not need to ever be re-flashed, but in case there is an up-date to the firmware you may be required to reset the firmware. To do so:

9.1.1 Write the image through Windows

8 1. Decompress the zip file;

2. Download and install; Win32Imager;

3. Select the Image file as the file which was uncompressed. The file ends with .direct;

4. Insert at least an 8GB SD card into your reader;

5. Select the drive letter where the card is in your computer;

6. Press write and wait for a good while;

9.1.2 Write the image through Linux

1. Insert at least an 8GB SD card to your reader;

2. Unmount if it automatically mounts;

3. Unzip the file;

4. sudo apt-get install pv

5. pv | sudo dd of=/dev/mmcblk0 (device name can be different. Do not choose a partition but a device!);

9.2 After flight the camera still has a lens retracted

It can happen, specially after flight sessions with several hundreds or thousand pictures that tagging takes a while. The rough numbers we have is that it takes approximately 1 minute to tag 100 pictures. Another way to check if DROTAG is still tagging is to look for the camera’s card activity LED. If it is active then DROTAG is working.

9.3 Significant delay in pictures

This happens if the camera was not configured with manual settings. The automatic modes of the cam- eras always take a certain amount of time find the correct settings. Not only can it take long for the automatic focus to settle but it can also find that long times are adequate. Possible actions are:

1. Follow the recommended setting provided in the appendix.

2. Abnormal behavior. Contact us.

9.4 Display is stuck "Camera USB Connecting"

1. Verify that all the cables are not broken;

2. Verify that the telemetry port to which you are connecting has the baud rate set to 57600.

3. The DROTAGx card may have become damaged. Contact Airborne Projects for a re-generated image.

9 9.5 How to verify the systems on the ground

If you have the Mission Planner or any other Ground Control System connected to another telemetry port of your Ardupilot you can test DROTAG.

1. Connect DROTAGx to Ardupilot;

2. Connect Mission Planner to the Ardupilot;

3. Arm Ardupilot;

4. Make sure you have GPS reception;

5. Right click on the map and press TRIGGER CAMERA NOW;

6. Disarm Ardupilot;

7. Disconnect all the system;

8. Verify your pictures in the Camera Card;

9.6 There are photos missing? Why?

This situation can come from 2 possibilities:

• Flight conditions made the time between pictures inferior than 1.6 seconds and DROTAG automat- ically skipped the picture trigger.

• The camera card may have been still been busy from the previous picture and could not trigger the picture.

When the 1.6 second rule is broken, nothing can be done besides accounting for flight conditions (ground speed) and tweak the mission according to the recommendations in 5.1

10 When pictures are being missed because of poor camera card performance you normally can see the file drotag.log in the same directory as the pictures with some technical information and text mentioning that pictures were missed. This normally means that camera didn’t have a picture matching a known trigger. A good solution is to try another card with better performance.

9.7 Display is stuck on "Check Connect Device"

This means the DROTAG did not boot at all even though the USB has power.

1. Verify the card is correctly seated in the DROTAG board.

2. Contact us so we can provide you with a new card image. The procedure is the same as the one for firmware upgrade.

10 Further Information

DROTAG relies on several open source projects. Airborne Projects takes open source licenses very seriously and we have a public repository for the modifications made to the open source projects it relies on, fulfilling the clauses of GNU Public License and Lesser GNU Public License where applicable. We are not a company of lawyers so if we made any licensing mistake let us know so we can correct it as soon as possible.

Appendix A Reasons for lack of APM 2.x support

DROTAG does not support APM 2.x and earlier models because these components do not support newer versions of Ardupilot which have critical features for the correct work of DROTAGx. We cannot backport these features to older versions.

Appendix B Considerations on appropriate camera SD Cards.

As you may be aware there are many cards on the market, but not all card models are advised. We advise the Samsung 16GB Class 10 Pro or the Samsung Evo Series cards. There are other adequate cards for use with DROTAG, which can be consulted in this page of Camera Card Benchmarks.

A good way to sort the benchmark table by the "Tested Write Ran" which represents Random Write characteristics. This characteristic is important because it makes the DROTAG tagging faster. It is not essential but a very nice characteristic if you want to land and have all pictures already tagged without further waiting.

If these cards are not available to you, you should look for cards, with at least Class 10 rating, although that is a very weak criteria, as this rating only means that such a card can at least write 10 MB/s, which may not be enough for the Sony Alpha 6100.

Another aspect which is important for the performance of you camera and DROTAG is that your card should be correctly formatted. We advise that you do avoid formatting the card if possible and just use the default partitioning scheme. This is because a naive formatting may misalign the partition and data layout inside the card and make it under-perform very extremely.

11 If you think you may need to format it, then when you unpack your camera card for the first time, use Win32Imager to read it and store the Binary Image of it. If afterwards you need to "format" your card, just write this empty image back to the card. This ensures you have a backup of the card state out of the factory. This may seem ridiculous, but is real, with added advantage of providing you with a secure erase of your data. You can read more about the technical reasons in this page, but suffice it so say that there are cards which have a best case write of 11.5MB/s and a worse case write of 33KB/s.

12