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

 

Graphical user interface v1…

Here are some screenshots of the spectrum analyzer graphical user interface. Please note that the levels shown have not yet been tested with proper equipment. Proper tests and calibration will be done in the next hardware iteration.

Spectrum Profile of a gate remote

Spectrum Profile of a gate remote

Spectrum profile of a car remote

Spectrum profile of a car remote

Spectrum profile of a FSK 12.5kHz Trunking Control Channel

Spectrum profile of a FSK 12.5kHz Trunking Control Channel

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.

RS232 Spectrum Analyser

This project came from the idea that I needed a simple, light spectrum analyzer which could be easily interfaced to embedded applications. This design was a proof of concept which made use of a RFM22B radio module and a PIC16F690. A simple GUI was also constructed for initial testing purposes. Photos of the prototype can be seen below. Source code for the proof of concept can be found downloaded here:

Visual C# Project

MPLab Project

Proof of Concept connected to Pic Kit 3 for power and a FTDI cable for UART communication

Proof of Concept connected to Pic Kit 3 for power and a FTDI cable for UART communication

Pic kit 2 Logic Analyzer tool output for a SPI command to the RFM22B

Pic kit 2 Logic Analyzer tool output for a SPI command to the RFM22B

The next post will contain some screen shots of the GUI in action.

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