Aero Week 10

Download Report

Transcript Aero Week 10

Aero Week 10
Robbie McNally
CpE
Optimus Prime Startup Code
• Sends a message saying program has started
• Checks for SD card and notifies user of result
• Checks if a package is mounted correctly and notifies ground station
• Sends a message to indicate attitude calibration is started
• Sends a message once calibration is completed
Drop Detection – IR ToF Sensor
• VL6180 IR sensor mounted beneath fuselage pointing at package
• Startup code tells ground station that package is secure before takeoff
• IR sensor notifies ground station as soon as package is dropped
microSD Shield on Aruino
• Using stackable headers the SD shield can be placed on top of Xbee shield
• Advantages:
•
•
•
•
pinouts for all Uno ports
microSD card slot 16GB of non volatile local memory
large prototyping area on shield  eliminate need for headers
Easy way to access/interpret data after flights
• Disadvantages:
• Makes DAS slightly taller
• Can write to a .txt file or .csv file
• Can use a card reader in a laptop to process data in excel/matlab/python
Airspeed Sensor
• Should aid in accuracy of humanitarian care package drop
• Pitot tube mounted on wing of plane
• Same sensor from Joey’s blackbox last year
• Setup the sensor in “Third Party Mode”
• Struggled to correctly read data until I found code on an RC forum
• Use the I2cMaster libraries to communicate via I2C  TheWire doesn’t work
• Arduino polls sensor every 315ms
• XBee sends data to ground station
• SD Card records information on plane
XBee Pro S3B
• Software selectable power output up to 250mW
• Old XBee Pro 900 power output was 50mW
• Configured the new modules to be on the same network and communicate
• Set the PL (Power Level) parameter to 4 (highest +24.0 dBm)
• Not working reliably yet
DAS Battery Calculations
• DAS will be its own separate, contained system
• Box will contain battery, Arduino, Xbee, SD Card, and altitude sensor
• Antenna, ToF sensor, airspeed sensor, and external reset will be wired from DAS
Standalone DAS Battery Calculations
Component
Current Draw (mA) Voltage Range
Arduino Uno R3
80
7-12V
XBee Pro XSC
215
2.4-3.6V
MPL3115A2
2
1.95-3.6V
Airspeed v3
0
3-16V
VL6180
1.7
2.7-3.3V
Total Current Draw:
298.7
2S LiPo Battery
Never discharge LiPo past 80% Capacity
1000 mAh * 0.80 =
800
mAh =
2.68
hours of operation = 160.70
minutes
1300 mAh * 0.80 =
1040
mAh =
3.48
hours of operation = 208.91
minutes
1800 mAh * 0.80 =
1440
mAh =
4.82
hours of operation = 289.25
minutes
2200 mAh * 0.80 =
1760
mAh =
5.89
hours of operation = 353.53
minutes
2S LiPo (7.4V) with 1000 mAh capacity
XCTU Issues
• Connecting to new XSC modules
• Might need firmware update
• Alternatives:
• Python script with pySerial
• XCTU serial console can only hold up to 8000 bytes
• Might be cause of range problems before
• Program buffer filled and stopped displaying data from remote XBee
To do
• Meet with Professor Hedrick to test new antennas
• Physically build DAS enclosure
• Build FPV Enclosure
• Order batteries for Ground Station, FPV system and DAS
• Shrink Arduino libraries
• Comment/finalize Arduino code
• Solder DAS sensors to SD Shield
• Write design report
• Update website
• Order new 12V camera?
• Radio Link Budget Calculations