Maiden flight….

After the quad copter was fully assembled, ESC’s, accelerometers and radio calibrated it was ready for its maiden flight. This flight was carried out at the back of our Engineering building, Stellenbosch, on an extremely limited piece of grass. A short video from the flight can be watched below.

After some flying the altitude hold function was tested which seemed to work. However, when testing the second time and switching it off, the throttle was in a lower than hover position, causing the quad to come down hard. This caused 3 perspex motor mounts to be snapped off. Luckily this exposed some weaknesses in the frame. The motor mounts will now be manufactured from a slightly less brittle plastic. Ignoring human error the quad copter flew perfectly the first time.

Bad vibrations…

After a number of flights in stabilize mode with a very stable vehicle it was decided to test the rest of the flight modes. Our goal was to build this into a measurement platform which necessitates the use of the auto modes. Therefore, we went to an open test field near Stellenbosch where we switched the quad copter, while in a stable hover, to loiter mode. The latter action caused the quad copter to ascend at full throttle with no sign of stopping. After landing and trying again the same thing happened.

After this slightly unsuccessful test I learned that in the newer APM firmware versions vibration can be an issue and can cause the observed behavior. I decided to start eliminating all the vibration I could find. Starting with the motors I measured the vibration with a app called “vibration on my iPhone”. Spinning each motor independently while strapping the phone onto the motor arm I could monitor the intensity of the vibration and start balancing the motors in the same manner as the video I found below.

After some experimentation I realized that the motors without any nut and spinner was perfectly balanced, however, as soon as the spinners are added it would put the motor way off balance. This leaded me to balance each spinner with a piece of tape much like they balance the motors in the video. This meant I now had 4 non vibrating motors. At this stage I did not have a prop balancer and had to hope my cheap colorful gem-fan propellers were reasonably balanced.

To actually test if there were any relative improvement I enabled the IMU data logging onboard the apm. I downloaded the log after each change to relatively measure what performance difference the modification had.

It can be seen in the comparison that there was initially also some experimentation with different apm mountings such as being screwed down, double sided tape, moon gel pads and lastly, the configuration that is still being used, dampening pads below the whole electronics platform. Remember that these modifications were done before balancing the spinners, note that it almost seems as if the vibration got worse with the different platforms except the moon gel, it should also be stated that with the new dampening pads the whole layout of the vehicle was changed causing the vibration to increase dramatically.  A motor which was slightly damaged in the previous crash was also replaced with more negative results. However, balancing the prop spinners and propellers showed a slight decrease in vibrations as seen in the graph below. However something weird was noticed when balancing the gemfan propellers, it seemed that they would be heavier on 1 side of the hub. It was here that I decided to invest in more expensive apc propellers which as you can see made a huge difference which in the end allowed loiter and the auto modes to work flawlessly.

Moon gel pads

Moon gel pads

Relative vibration comparison

Relative vibration comparison

Motors and final assembly…

After a long break moving to another city I restarted my efforts on the quadcopter build. This time adding the motors and finalizing the construction to the point of a maiden flight. Some changes to the previous thought process were incorporated in terms of channeling the high current ESC wires through the aluminum tubes. The latter meant disassembling the whole quad copter leaving only lessons learned.

The motors are 800kV tiger motors which will each in turn need to drive a 10×4.5inch prop. The motors can be seen mounted on the edges of the quad copter with their respective cabling running through the aluminium tube into the center plate cavity.

Assembled frame and motors

Assembled frame and motors

Next, the power distribution board was fastened on top of the center plate with the help of plastic screws. This allowed the esc`s to be installed connecting all four motors allowing some initial testing. To test the motors the battery and PWM lines were connected to the distribution board and receiver module respectively. After confirming all four motors are spinning their directions were set to motor 3 and motor 4 in a CW direction and motor 1 and motor 2 in a CCW direction as illustrated in the APM wiki. The connections for the power distribution board can be seen below. The ESC PWM wires will definitely need to be shortened, in the current configuration they will cause horrific RF pickup loops.

ESC’s and PDB mounted

With power and connections to the motors now established the remaining electronics can be added to the build. The APM, telemetry radio and receiver are all now mounted on a platform and connected. This platform is part of the frame and will fit right above the distribution board. The electronics platform can be seen below.

img_1469

Assembled electronics platform

After the electronics platform has been fitted the shell containing the GPS along with the landing gear was attached. Before mounting the props the ESC’s needed to be calibrated which on stock settings were extremely different from one another. Due to some physical restrictions the quad is currently configured in a plus orientation which might be changed in the future. The quad copter with its props can be seen below next to its 9x FrSky remote.

img_1546

Full Multicopter Build

 

 

 

Assembly of Power, Sensors, and Communication…

Before being able to do some wireless tests the sensors, telemetry radio all needed to be powered by battery. In this first phase of assembly the power distribution board, IMU board along with the telemetry was mounted on the frame. Thereafter a single electronic speed controller was connected to power the IMU board and radio. After this assembly the quadcopter is fully wireless and self powered.

Close up of battery connection and telemetry radio

Close up of battery connection and telemetry radio

assphase1

Motorless self powered quadcopter

 

The compass…

Another sensor needed for higher accuracy during navigation and control was added to the IMU board. This sensor, a magnetometer, is responsible for measuring the orientation using the earth`s magnetic field. In a plane setup the current heading can be easily determined by making use of consecutive GPS measurements. This is because a plane is forced to move in a direction to stay in flight. On the other hand, a quadcopter does not need to move all the time and therefore needs a sensor that is able to measure its heading while hovering.

The compass is mounted to a I2C channel on the to of the IMU board as a small extra daughter board as seen in the following picture.

IMU board with compass daughter board mounted on top

IMU board with compass daughter board mounted on top

Running the mission planner command line interface some data was gathered to prove that the compass is functioning correctly.

Command Line Interface magnetometer test data

Command Line Interface magnetometer test data

Voltage and current monitor…

Voltage and current sensor with analog lines on the left

Voltage and current sensor with analog lines on the left

Another sensor which will be onboard the quadcopter is the voltage and current monitor from Attopilot. This device can measure up to 180A and will help to give accurate feedback about the state of the battery to the ground station while in flight. The current  is measured by a shunt resistor while the voltage is measured by voltage division. The two analog levels are the fed into the IMU board via two A/D ports.

Power distribution…

Assembled power distribution board with connecting wires

Assembled power distribution board with connecting wires

3D Robotics sells a nifty power distribution board to keep all your power and signal wires organised. The PDB is responsible for distributing battery power to all four esc's as well as distributing the 5V, GND and PWM lines from the IMU to the esc's.

GPS take 2…

Some CLI test data from the working GPS searching for satellites.

Some CLI test data from the working GPS searching for satellites.

A new GPS arrived today, all the way from 3DRobtics, as  a replacement for my previously dead on arrival GPS unit. This time around the GPS worked as soon as it was plugged in and even started acquiring satellites from indoors.

The Telemetry…

DIY Robotics telemetry modules

DIY Robotics telemetry modules

For this project a constant data communication will be needed from the vehicle and its payload to a ground station. Therefore, a telemetry radio needs to be added. Fortunately the APM 1 kit  discussed earlier makes provision for a telemetry module. The telemetry modules I opted for was from 3DRobotics running at 433MHz 100mW. However due to ICASA regulations a the radio can only be used at 8mW maximum. 

The Flight Controller…

APM 1 unassembled

Unassembled APM 1.0

 

The flight controller is the brain of the vehicle and will contain most of the essential sensors.  To save time I opted for a Ardu-Pilot Mega 1.0. The main reason why I opted for the 1st generation and not the newer second generation is to have the option of replacing the 8 bit micro-controller with a 32 bit variant in the future.

Assembly of the APM 1.0 kit was rather easy but took a while to solder all the connections. Hereafter the flight controller was connected to its Mission Planner software, which confirmed proper working of the gyros, accelerometers and barometer. With some dismay the kit did not come with the magnetometer and will therefore still need to be acquired and tested later on.

One disappointment however was that the Mediatek GPS that came with the kit was dead on arrival. When connected to the APM board the 3D fix blue light came on and stayed on while the mission planner displayed no GPS. When going into the command line interface of the mission planner to test->GPS the only output was a constant string of G!G!G!G!. After confirming all connections from the GPS module on the adapter to the the micro-controller as well as a 3.2V output on its regulator I used a FTDI cable to directly communicate with the GPS module. Hyper terminal showed that there was no data coming from the module itself. Thereafter I tried flashing the module with its own software which kept giving me a BROM_CMD_START_FAIL error. Luckily Carmen at 3DRobotics offered great support and shipped another module immediately.

 

 

APM 1 Assembled

Assembled APM 1.0

 

 

Mission Planner Software

Mission Planner Software

 

Mediatek GPS

Mediatek GPS