46
LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Embed Size (px)

Citation preview

Page 1: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

LogDATFlight Data Logging

Sponsored by L3-Communications

Group 9

Page 2: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Group 9 Members

Winston James EE

Brian Lichtman CpE

Shaun Mosley CpE

Tony Torres CpE

Page 3: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Motivation

• L3-Communications uses a software set (DATCOM) to calculate expected flight characteristics of large fixed-wing aircrafts

• L3 has asked for a solution to verify the accuracy of their software set when used on small aerial vehicles

Page 4: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Project Objective

• Record vital parameters from test flights of a model airplane

• Portable and easily adapted to other aircrafts

• Provide easy way to obtain recorded data and compare with L3’s software set

Page 5: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Specifications

• Ability to record data at speeds of at least 60 Hz

• Aircraft should be able to fly for at least 20 minutes while recording data

• Test vehicle must have a wingspan larger than 3 feet

• Must not have more than ½lb weight offset to one side

• Cost must be under $1500.00

Page 6: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Requirements• Lift Coefficient due to:

– Basic geometry (CLα)– Flap deflection (CLδf)– Elevator Deflection (CLδe)– Pitch Rate derivative (CLq)– Angle of Attack Rate derivative (CLαdot)

• Drag Coefficient due to:– Basic geometry (CdD)– Flap deflection (Cδf)– Elevator deflection (Cdδe)

• Side Force Coefficient due to:– Sideslip (Cnâ)– Roll Rate derivative (Cnp)– Yaw Rate derivative (Cnr)

• Pitching Moment Coefficient due to:– Basic Geometry (Cm)– Flap Deflection (Cmδf)– Elevator Deflection (Cmδe)– Pitch Rate derivative (Cmq)– Angle of Attack Rate derivative (Cmαdot)

• Rolling Moment Coefficient due to:– Aileron Deflection (Clδa)– Sideslip (Clâ)– Roll Rate derivative (Clp)– Yaw Rate derivative (Clr)

• Yawing Moment Coefficient– Aileron Deflection (Cyδa)– Sideslip (Cyâ)– Roll Rate derivative (Cyp)– Yaw Rate derivative (Cyr)

• Misc– Horizontal Tail Downwash Angle (ε)– Derivative of Downwash Angle (δε/δα)– Elevator-surface hinge-moment

derivative with respect to alpha (Chα)– Elevator-surface hinge-moment

derivative due to elevator deflection (Chδ)

– Normal force coefficient (body axis) (CN)

– Axial force coefficient (body axis) (CA)

Page 7: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

External Components

Page 8: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Model Airplane

• MQ9 Reaper – used by USAF, US Navy, CIA• Picked to meet L3’s request• Dimensions: 8.3 ft wingspan x 3.6 ft length• Price: $100.36

Page 9: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Autopilot

• Autopilot is installed on an aircraft to allow for flight stabilization, auto takeoff, landing and fixed flight patterns

• Basic units are GPS, accelerometer, gyroscope, servos, telemetry

• Multiple types and brands are manufactured

Page 10: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Autopilot Selection• ArduPilot Mega

– Open-source firmware

– Relatively cheap– Great community support– Free telemetry software

• Price: $415.00• Before testing in actual flight, we will test

the ArduPilot in the FlightGear simulator

Page 11: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

ArduPilot Software

Page 12: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Hardware and Firmware Integration

Page 13: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Hardware Design• DYNAMIC PRESSURE “q” = 1/2ρV2

o Dependent on True Airspeed (TAS)o Dependent on air density (rho)o Dependent on AOA

• FORCE COEFFICIENTS

• TORQUES COEFFICIENTS

• TASo PITOT-TUBE PRINCIPLE

• AOA & AOSo BOOM

Page 14: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

HARDWARE BLOCK DIAGRAM

Page 15: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

FORCE SENSORSFORCE SENSORS• MFGR: INTERLINK ELECTRONICS• PN: FSR402• THIN MEMBRANE TECHNOLOGY• SMALL = 18.28mm DIAMETER• LOW POWER = 2.5mW• CHEAPEST SOLUTION• FORCE RANGE: 0.352 oz. to 22lb!

ALTERNATIVE ZEBRA SYSTEM

Page 16: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

FORCE SENSOR TERMINALS

Page 17: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Accelerometer• MFGR: ST MICROELECTRONICS• PN: AIS326DQTR• MET SPEC

• EXCELLENT BW• SENSITIVITY

• 3-AXIS• SPI• LOW POWER= 2.64mW• HIGH SENSITIVITY: 1024LSB/G

0.977mm/s2 PER LSb

Gyroscope• ST MICROELECTRONICS • P/N: L3G4200DTR• MET SPEED REQUIREMENT:

• 1MHz > 60Hz• 3-AXIS• SPI• LOW POWER: 18.91 mW• HIGH SENSITIVITY: 8.75 dps/lsb• FREE SAMPLES!

Inertial Measurement Unit

Page 18: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Inertial Measurement Unit

Page 19: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Boom Sensors

JUSTIFICATION• P/N: MPXV7002DP• RANGE: ±2 kPa

• REQ: +1.475 kPa dynamic pressure = 50m/s velocity at sea level

• ACCURACY: 2mV/Pa• SAMPLED• ANALOG SENSOR• USED IN OTHER DRONE PROJECTS• LOW POWER = 50mW

JUSTIFICATION• MFGR: MURATA• P/N:SV01A103AEA01B00• LOW POWER: 5mW• LONG LIFE: 1M CYCLES• WIDE RANGE: 0-333º• VERY THIN• FREE!

Q= [Vout ±6.25%(Vs-2.5v)-0.5v]/ [0.2Vs]

Page 20: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

BOOM SENSORS

Page 21: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Hardware: Humidity SensorHUMIDITY SENSOR• MFGR: HONEYWELL• P/N: HIH-5031-001• ANALOG SENSOR• LOW POWER= 1.65mW• SMALL SIZE• PURPOSE: AIR DENSITY• FREE!

TEMPERATURE SENSOR• MFGR: ANALOG DEVICES• P/N: AD7814ARMZ• SPI INTERFACE• LOW POWER =1.32mW• PURPOSE: AIR DENSITY• FREE!

BAROMETRIC PRESSURE SENSOR• MFGR = BOSCH• P/N: BMP085• ANALOG SENSOR• LOW POWER = 0.03mW• ALTITUDE RANGE: 0 to

29,528ft (9000m)• ACCURACY: ±100Pa ±27ft =

±8.22m• PURPOSE: AIR DENSITY

Page 22: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

ALTITUDE SENSORY

Page 23: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

POWER SUPPLY

Page 24: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

MCU

Page 25: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Microcontroller Unit (MCU) Selection

• MCU Chosen– Microchip’s dsPIC33EP512MU810

• Aspects reviewed were:– Does it meet our I/O requirements?– What programming and debugging resources

are available?– What kind of support is available for the

MCU?– Can we get free samples of the products?

Page 26: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

I/O Requirements

• I/O Requirements:– 34 Analog I/O

• 30x Force Sensors• 2x Angle Sensors• 1x Differential Pressure Sensor• 1x Humidity Sensor

– 4 SPI (Serial Peripheral Interface) Digital I/O• Accelerometer• Gyroscope• Temperature Sensor• SD Card Interface

– 1 I2C (Inter-Integrated Circuit) Digital I/O• Barometric Pressure Sensor

FSR 402 Force Sensor

Page 27: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

MCU Programming and Debugging Environment

• Free academic version of their C compiler and debugger with graphical IDE– Includes code optimization not available in the

normal free version.– Fully functional with all libraries and source

code of commercial version• Memory Disk Drive File System Library• Multi-level code optimization

Page 28: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Available Support

• There is abundant documentation for the use of dsPic33s

• Large collection of online training videos provided by Microchip

• Online 24hr support system for technical support along with a large support forum community

• Large collection of example code

Page 29: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Sample Availability

• 3 dsPIC33EP512MU810 MCUs

• 2 Free Samples of the ICD3• 2 Free Samples of the

Explorer 16 development board

• 2 Free Samples of dsPIC33EP512MU810 daughter boards for use with the development boards

Page 30: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

MCU Software Design

• Software will be split into two separate sections: – Data acquisition– Data storage

Page 31: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Data Acquisition

• The MCU firmware will be designed to poll sensors at a minimum rate of 60hz.1. Grab data from sensor

• The analog sensors will be read 4 at a time• Digital sensors will be read sequentially

2. Convert each sensor value to an IEEE floating point number

3. Send data to data storage buffer4. Repeat until all 38 sensors have been read

Page 32: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Data Storage

• Using the file system library from Microchip, an SPI interface will be used to communicate with an SD card.

• A data storage buffer will wait until 38 values are received

• Once this occurs, the buffer will be flushed to the SD card as raw binary

Page 33: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

PCB LAYOUT

Page 34: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Pow

er C

onsu

mpti

onPART NUMBER SENSORS

MAX POWER (mW)

Vdd (V) Idd (mA)

L3G4200DTR 3D GYRO 18.91 3.1 6.1

AIS326DQTR3D ACCELEROMETER

2.211 3.3 0.67

AD7814TEMPERATURESENSOR

1.32 3.3 0.4

HIH-5031-001 HUMIDITY SENSOR 1.65 3.3 0.5

FSR402 FORCE SENSOR80 5 0.5

MPXV7002DPDIFFERENTIAL PRESSURESENSOR

50 5 10

BMP085ABSOLUTE PRESSURESENSOR

0.03 2.5 0.012

OPA244UA AMPLIFIER4 5 0.05

DSPIC33EP512MU810 MCU1980 3.3 840

SN74LV4051APWR 8 CHANNEL MUX0.4 5 0.02

SV01A103AEA01B00SMD HOLE ANGLE SENSOR 333 DEG

 5 5  1

TOTALS FOR LOAD

  2143.521 mW   859.252 mA

    MAX power handling

ADP3338AKCZ-3.3RL73.3v supply

3300 3.3 1000

ADP3338AKCZ-5-R75v supply

5000 5 1000

SUPPLY CAPABILITIES

  8300 mW    2000 mA

Page 35: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Software Design

Page 36: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Software Overview

• Graphical User Interface (GUI)– The GUI is a simple interface to make the file

selection process much simpler than using the command prompt.

• Program execution– The program will execute after the "Create"

button is clicked. From there it will perform all the functions that need to take place to translate the input data to readable data for the user.

Page 37: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Data Structures

• I choose to use a linked list for memory concerns– Linked List

• Can only access the next value• Is the exact length of the data and only adds one

at a time

• With only one node being made at a time a linked list insures the minimum amount of memory being taken.

Page 38: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

GUI

• Source text box is to specify the source file location

• Destination text box is to specify the name and destination of the file to be created

• The create button will run the computations to do the conversion from a binary to a csv file

Page 39: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Software Design

• Required measurementso Parsed Data

Forces q Angle of Attack

o Derivativeso Momentso Calculated measurements

o Force and moment Coefficientso Coefficients due to different parameter on the plane

o CL due to AOA

Page 40: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Software Design

• Derivatives– The derivatives are found by finding the

slope between the two points on ether side

– Because we need to find second derivatives that makes the first and last 2 data points not accurate.

Page 41: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Software Formulas

𝐶𝑜𝑠∝ −𝑠𝑖𝑛∝ 0 0𝑠𝑖𝑛∝ 𝑐𝑜𝑠∝ 0 00 0 1 00 0 0 1

Rz =

𝐶𝑜𝑠𝟇 0 𝑠𝑖𝑛𝟇 00 1 0 0

−𝑠𝑖𝑛𝟇 0 𝑐𝑜𝑠𝟇 00 0 0 1

Ry =

1 0 0 00 𝑐𝑜𝑠 β −𝑠𝑖𝑛 β 00 𝑠𝑖𝑛 β 𝑐𝑜𝑠 β 00 0 0 1

Rx =

𝑥𝑦𝑧1

F=

Rz ∙𝑅𝑥 ∙𝑅𝑦 ∙𝐹

Page 42: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Formulas for CoefficientsForces Torques

is experimentally determined

Force Coefficient DefinitionA is reference area

Torque Coefficient DefinitionA is reference area, l is application length

True Air Speed

Air Density

Page 43: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Administrative

Page 44: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Budget

Parts List Group TOTAL

Plane Parts $301.88Autopilot Parts $424.95Sensor Parts $186.07Other Parts/Labor $296.24 Overall Cost $1209.14

Plane Parts25%

Autopilot Parts35%

Sen-sor

Parts15%

Other Parts/Labor25%

Cost Totals

Plane PartsAutopilot PartsSensor PartsOther Parts/Labor

Page 45: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Work Distribution

Winston J. Hardware and power consumption

Brian L. Data handling and help with data acquistion

Shaun M. Autopilot and data acquisition

Tony T. User software application

Page 46: LogDAT Flight Data Logging Sponsored by L3-Communications Group 9

Questions