Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
CANSAT 2005/2006 TEAM:
Aradhana Choudhuri (Team Lead)
Mike Alger (Electronics Lead)
Matthew Bruce (Structure Lead)
Nadine Auda (Recovery Lead)
Mike Tai (Safety Officer)
Gratus Devanesan (Software Lead)
Doug Bowers
Dmitri Ignakov
Hassan Mughal
Afridi Mohsin
Mohammed Ali
2
Table of Contents
1 INTRODUCTION.......................................................................................................................9
2 SYSTEMS DEVELOPMENT..................................................................................................15
3
4.4 SENSORS BOARD.........................................................................................................................32
4.4.1 HARDWARE ASSEMBLY...............................................................................................................32
4.4.2 TESTING ROUTINES....................................................................................................................33
4.5 RECOVERY SYSTEM MANUFACTURE..............................................................................................34
4.5.1 INTRODUCTION..........................................................................................................................34
4.5.2 MATHEMATICAL FORMULAE........................................................................................................34
4.5.3 CHUTE CONSTRUCTION...............................................................................................................35
4.5.4 EMERGENCY DRIFT CORRECTION METHODS..................................................................................40
4.5.5 METHOD 1: SPILL HOLE............................................................................................................40
4.5.6 METHOD 2: SLITS.....................................................................................................................40
4.6 INTEGRATION..............................................................................................................................40
4.6.1 COMPLETE HARDWARE INTEGRATION............................................................................................40
4.7 INTEGRATED SOFTWARE DEVELOPMENT........................................................................................44
4.7.1 DATA FLOW AND PROTOCOLS......................................................................................................44
4.7.2 HIGH-LEVEL CODE STRUCTURE..................................................................................................45
4.7.3 SAMPLE CODE..........................................................................................................................46
7 APPENDICES...........................................................................................................................62
4
List of Tables
5
TABLE 7.19: GROUND STATION POWER ON.....................................................................69
6
List of Figures
7
FIGURE 4.20: ZIGZAG STITCH AT EACH PANEL JOINT................................................37
8
1 Introduction
1.1 About CANSAT & This Manual
CanSat is a sub-orbital pico-class satellite (<500 grams) that fits inside a regular-size soda can.
This manual will provide step-by-step instructions on how to build a CanSat and CanSat Ground
Station, including electronics, structure, recovery and software. The guidelines for CanSat
requirements were taken from the 2006 CanSat Competition, and specific solutions implemented
are those of the Ryerson CanSat 2006 Team.
Your CanSat will be designed, built, tested and operated for the mission to determine its
maximum altitude, range distance from deployment to landing, the direction of travel using
sensors, and temperature to +/- 1 degree centigrade once every 10 seconds during flight. Mission
operations will consist of pre-launch, launch, flight, recovery and data analysis. Data will be
analyzed and compared to the proposed performance baseline.
The manual is divided into six major components: requirements’ analysis and systems’ design,
ground station assembly, CanSat assembly, CONOPS (Concept of Operations) and flight test,
and final data analysis.
9
1.2 Parts List
1.2.1 CanSat Kit Parts List
Quantity
Part Per
CANSAT √
10K ohm 1/4 watt resistor 5% tolerance 5
470 ohm 1/4 watt resistor 5% tolerance 4
2K ohm 1/4 watt resistor 5% tolerance 2
Red 3mm led 2
Green 3mm led 1
Blue 3mm led 1
Tc1047a 3
30 cm of stranded wire 1
10
24LC512 EEPROM 1
11
Table 1.1: Parts List
12
1.3 Required Reports
1.3.1 Status Update Reports
Each section of the following document must be completed and signed off by the due dates
announced in class.
Group members and responsibility allocation metric. The TA must initial all changes.
Due: __________________
Phase 1: Payload Assembly
Title Group Member Responsibilities TA Signature
Phase 2: Launch
Title Group Member Responsibilities TA Signature
13
1.3.2 Final Presentation
The presentation will be evaluated on the items listed below. Most of the material can be
prepared before the actual flight. Data presentation and analysis of the mission have to be added
after the competition.
1. Summary of design and any deviations from the standard design listed in the manual
2. Actual CONOPS in comparison with the manual’s CONOPS document
3. Plots of all raw data
4. Comparison of EEPROM data to Radio data
5. Flight data and analysis showing determined altitude, range, and direction
6. Failure analysis if required
7. Comparison to baseline
8. Summary
14
2 Systems Development
2.1 Requirements Definition
Mission requirements were obtained from the CANSAT competition guide. Requirements and
corresponding solutions are divided into specific groups that address related requirements.
2.1.1 Structure
1. The outer shell shall have a max diameter of 66.04mm and the CANSAT a max mass of
370 g.
2. The CANSAT shall have a maximum volume of 335 ml.
3. The CANSAT shall have no side protrusions till after separation from the rocket.
Solution: The CANSAT structure consists of an outer shell (aluminum soda can) and inner
support structure made of Printed Circuit Board material and standoff screws.
Solution: The CANSAT carries three temperature sensors, a GPS receiver and a pressure sensor.
There will also be an uplink/downlink system to send/receive commands/data from the
CANSAT. Software commands will be tailored to include initialization commands at specific
times.
2.1.3 Recovery
1. The chute shall be securely attached to one end of the structure to survive a shock of 20g.
2. The chute shall be sized for a flight time of 3min < t < 7min.
Solution: The CANSAT will have a deployable true-dome parachute attached to one end of the
structure.
2.1.4 Power
1. The CANSAT power shall last a minimum of one hour.
2. Explosives, detonation devices, pyrotechnics, inflammable materials, and hazardous
materials shall not be used, and all materials shall be benign and nonhazardous to
personnel, equipment, and the environment.
15
Solution: Standard 9 Volt onboard batteries will power the CANSAT.
16
3. Command and Data Handling System (C&DH): This system provides data protocols, data
conversion/processing and data storage for the CANSAT
4. Communications: This system provides the data uplink (commands) and data downlink
(telemetry), and the ground station is considered a part of the Communications System.
5. Power: This system provides power to all other systems
6. Recovery: This system consists of the parachute for recovery
Negative
System Positive Dependency
Dependency
17
2.3.2.6 Microchip TC1047 Precision Temperature-to-Voltage Converter
Temperature sensors are cheap, small and consume only very little power. Obtaining accurate
data may be difficult and currently three temperature sensors are used. The sensor may at any
given time be in the shadow created by the parachute or be close to a point directly exposed to
the sun. Variable cloud cover further adds to the uncertainty of the acquired data. Heat flux
through aluminum guarantees large fluctuation between sun exposed side, self shadowed side
and the side not exposed to the sun. It cannot be predicted which part of the CANSAT will
experience maximum temperature during descent. Lastly, the heat generated, notably by the
voltage regulator, further increases uncertainty with acquired results. Given the calibration and
adjustments (depending on reading from GPS and pressure sensor etc.), the three temperature
sensors are adequate to provide a trend for temperature readings.
18
3 Ground Station Hardware Assembly and Component
Testing
The three key components of the ground system are capture, analysis, and power. Capture and
Analysis can be handled with any Laptop and HyperTerminal. Connection to the radio can be
handled by serial cable (RS232) or a USB to RS232 serial cable in case the laptop computer is
not equipped with a serial port. Reception is handled by the Ground Station Module (consisting
of the HAC-LN96 radio, mounted to the ground station board). Power should be supplied by the
ground station battery pack.
Power
(Competition
Provided
Link) +
Batteries
Transceiver
USB to DB-9 serial cable Laptop
System
le
Ra
b
Ca
d
io
l
r ia
L
ink
Se
CANSAT
CANSAT
Battery
Charger
Figure 3.2: Primary GS Pre-Launch Setup with USB & Serial-Capable Laptop
In the pre-launch/post-launch configuration, the CANSAT is connected to the Laptop via serial
cable for last-minute programming of the Microcontroller and transfer of EEPROM data. During
the mission, CanSaT’s radio link provides communication with the Transceiver System that in
turn communicates to the Laptop via a USB to DB-9 serial cable.
The Ground Station Module must be the first component assembled and soldered. This is
to practice/validate assembly procedures, and create a link that will be used to test all
subsequent systems/boards aboard the CanSat itself.
19
3.1 Hardware Assembly
Part name Description Quantity
1 7805 LM7805 voltage regulator 1
2 R11 470Ω ¼ W resistor 1
3 R12 10kΩ ¼ W resistor 1
4 R13 10kΩ ¼ W resistor 1
5 LED 4 Red LED 1
6 C4 10μF electrolytic capacitor 1
7 SW2 SPDT ultra mini switch 1
8 DB9 DB9 female serial port 1
9 Radio Cable Radio Cable 1
10 HAC LN96 1
11 916 Mhz whip style antenna 1
12 Battery clip Standard 9 volt battery clip 1
13 10mm standoff screws 4
14 30mm standoff screws 4
15 Standoff screw nuts 8
16 Standoff screw screws 4
Table 3.7: Required Parts List
20
3.1.1 Electronics
This board will interface directly to the computer and will be used to remotely gather data from
the CanSat.
3.1.2 Structure
1. Mount radio module card onto the circuit board using 10mm standoff screws
2. Using the pre-drilled holes, attach 30mm standoff screws to the circuit board to offset it
from the ground
21
3. (Optional) Insert the entire assembly into a frame, ensuring that the antenna is free of
interference
22
Figure 3.7: HyperTerminal Settings
e. Click OK
3. Plug in the Ground Station connection cable at both ends
4. Turn on the Ground Station Power
a. You should see a small string of characters: “"LN96K02G_V1.1CH?”. If you see
this, your ground station is working correctly.
b. If you do not see the string, turn the Ground Station power off, and back on.
c. If you still do not see the string, go through the Ground Station No Signal
Checklist (Contained in Section 5.4.2)
d. If the checklist does not work, there is something wrong with the circuit board.
Disassemble the structure, and check all connections, solder joints and
components.
23
4 CANSAT Hardware Assembly and Component Testing
24
4.1 Power Board
The Power Board is a PCB mounted at the base of the CanSat. It consists of the battery-bank,
various resistors and solder-on components. The power board supplies power to all of the
onboard CanSat instruments. Correct assembly of this board is imperative to ensure that all
components work, and that no components burn out. Instructions need to be followed carefully,
and all verification steps should be completed before moving on.
25
12. Solder C1 (Hint: The positive end of the Capacitor is indicated. Be careful of polarity)
13. Trim leads
14. Solder 10 pin ribbon connector
15. Affix battery Case using 3 screws
16. Solder battery case leads into place (Hint: Be careful of polarity)
17. Trim leads and screws
18. Ensure all connections have been made
19. Clean any excess flux with flux remover.
26
Figure 4.10: C&DH Board
27
17. Ensure all connections have been made
18. Clean any excess flux with flux remover.
28
power is on, and repeat the test till you get a result in the debug window at the bottom
of the page.
If the test is successful, the led will blink. Move on to the EEPROM test. If the led does not
blink, there is a problem with the connections, wiring or code.
CLEAR
EA CON %10100001
DATAin VAR Byte
SDA CON P14
SCL CON P13
B1 VAR Byte
SAMPDAT VAR byte(37)
x VAR byte
SAMPDAT = "abcd456789012345678901234567890123456"
FOR B1 = 0 to 37
high p9
I2COUT SDA, SCL, EA, B1, [SAMPDAT(B1)]
debug[SAMPDAT(B1)]
PAUSE 10
low p9
NEXT
29
pause 50
FOR B1 = 1 to 37
high p10
I2CIN SDA, SCL, EA, B1, [DATAin]
DEBUG ["Location ", DEC B1, " Data Read ", DATAin, 13]
low p10
NEXT
x=x+1
END
If the test is successful, the debug window will show the string from SAMPDAT. If it does not
work, there is a problem with the connections, wiring or code.
30
1. (Optional) If the SMA connector on the HAC LN96 isn’t already removed carefully de-
solder it. (Hint: Be very careful in this step. Gently apply heat to the joint and use a solder
sucker to remove the solder)
2. Solder the 30 cm of stranded cable to the HAC LN 96 card use the surrounding holes to
create a loop for strength
3. Solder Temp 1 (Hint: This is a surface mount, and tricky to do. Take your time)
4. Solder Temp 2 (Hint: This is a surface mount, and tricky to do. Take your time)
5. Solder R6, R7
6. Trim leads
7. Solder the radio card connection clip
8. Trim leads
9. Solder 10 pin Ribbon connector
10. Mount the radio card using 10mm standoff screws and hardware
11. Ensure all connections have been made
12. Clean any excess flux with flux remover
start
high LED
serout Txpin, i9600, ["Hello World.",13,10,"Yes or No? [y/n]",13,10]
serin rxpin,i9600,[str ans\1]
if ans="y" then
31
serout Txpin, i9600, [13,"Yes!",13]
elseif ans="n"
serout Txpin, i9600, [13,"No? Try again",13]
goto start
else
serout txpin, i9600, [13,"Try Again.",13]
goto start
endif
end
If the test is successful, you have a working radio card and ground station. If the radio does not
respond, or the test is unsuccessful, there is a problem with the connections, code or hardware, in
the radio board, or the ground station is set up incorrectly. Confirm (by touching) the radio board
and the ground station radio board that no parts are overheated.
32
2. Solder R9
3. Solder R10
4. Solder GPS Cable in place (Hint: the gray cable will be the furthest away from the square
solder pad)
5. Trim leads
6. Solder Press 1 (Hint: This is a surface mount, and tricky to do. Take your time)
7. Solder 10 pin Ribbon connector
8. Ensure all connections have been made
9. Clean any excess flux with flux remover.
'temp
volt = tofloat input2/1024.0*5.0
temperature1 = volt*100.0-50.0
volt = tofloat input3/1024.0*5.0
temperature2 = volt*100.0-50.0
volt = tofloat input4/1024.0*5.0
temperature3 = volt*100.0-50.0
'press
volt = tofloat input1 / 1024.0*5.0
pressure = 5.0*(200.0*volt + 19.0*5.0)/(9.0*5.0)
serout p12, i9600 [ "temp sensor 1 ", real temperature1 , 13,"temp sensor 2 ", real
temperature2, 13, " temp sensor 3 ", real temperature3, 13, " pressure sensor " , real pressure ,
13,13]
In the end you should have a radio transmission of all the analog sensor readings.
33
Next create a new file called “GPSTEST.bas” and program the Microcontroller (as illustrated in
earlier steps) using the following code:
blk var byte(7)
dummy var byte (200)
x var byte
blk="$GPGGA,"
You should receive a long string of GPS data. If you are indoors, or have not picked up a GPS
lock, the GPS portion of the data string will not be available. Capturing a GPS lock takes about 2
– 20 minutes in “cold-start” (no previous data available) mode, and you should be in a relatively
clear area outdoors when attempting to get lock. If the Ground Station setup cannot be taken
outside to test for a GPS lock, it will be sufficient to take the CanSat outside, and wait till the red
led on the GPS module starts blinking.
This particular parachute is comprised of 12 gores, or panels, individually cut from the fabric
material, and sewn together to form the canopy. The shape of the gores is calculated such that the
assembled canopy would form a semi-ellipsoidal shell with the height to radius ratio being 0.707.
A 1-meter parachute design is presented here.
Alternative parachute shapes and sizes can be created. The equations in the next section may be
used as general guidelines in constructing a parachute. Additionally, the last part of this section
outlines parachute modification methods that may be used on the field to change various
parameters to control drift.
34
g is the acceleration due to gravity
M is the mass of the payload (including parachute)
ρ is the density of air (constant at low altitudes)
Cd is the drag coefficient of the chute, which is 1.5 for a true dome parachute
A is the frontal area, may be approximated as the area of the parachute
The exact height at which this terminal velocity occurs may be calculated from the following
equation, assuming that the CANSAT had a velocity equal to zero when it started falling.
If Ht > 0, then terminal velocity has been reached during descent, and Vt = Vi. If the value of Vi is
too high, the parachute area may be adjusted to decrease terminal velocity. If Ht < 0, terminal
velocity will not be reached when the object impacts the ground.
The second consideration for a parachute is Hang Time, or time the parachute is in the air. This
can be a complex equation approximated by using Terminal Velocity, Vt, as the average velocity
for the descent.
Timehang = Hmax/Vt
The last consideration for parachute and recovery is drift. Depending on environmental
conditions, like wind speed and direction, drift can be an undesirable factor. Drift is dependant
upon the Hang Time and the Wind Velocity (Vwind).
35
Figure 4.16: Gore Pattern for Chute
2. Hem the panels along both curved edges and along bottom edge. The hem is to be made one
centimeter in width, and is formed by folding the edge over twice, as illustrated. It is best to
use straight pins to temporarily fasten the hem. Then baste (hand stitch, using needle and
thread) the hem using stitches with a large pitch (approx. 2 cm.).
36
but simply to fasten the seam binding to the panel so that it may be easily stitched). Then sew
the binding to the panels using a zigzag stitch. Do not be too concerned with the apex (tip) of
the panels, as this can be trimmed later, and is covered by the cap pieces. However, the length
of seam binding between opposite gores should be as shown.
6. Continue this process until all twelve panels have been joined together to form the full
canopy.
7. Cut out two circular pieces of fabric to form the topside and underside apex caps. The
finished diameter of these caps should be about 15% of the basic diameter of the parachute.
Cut the caps to a diameter 2 cm. larger than this, to allow for the hem, which is formed with
a single fold. The hem is important to prevent unraveling and to provide structural
reinforcement to the parachute in the "hoop" direction.
8. Hem the caps in a manner similar to that of the panels. Again, the use of straight pins and
hand basting greatly improves the final result.
9. Sew the hems using a straight stitch.
37
10. Attach the caps to the canopy. Making sure the hem is on the inside of the joint, position the
underside cap and baste stitch into position. Flip the canopy over, and do the same for the
topside cap. Sew both caps in place using a zigzag stitch with the canopy sandwiched in
between, as illustrated in.
11. After the canopy is complete, you should have a dome-shaped parachute.
12. Cut a small ¼ cm hole at the base of the canopy, at the point where the seam binding joins
two panels. Insert an eyelet into the hole, and using the eyelet gun, clamp the eyelet into
place.
13. Repeat this step for each joint, making sure that the eyelets/holes are placed an equal distance
away from the bottom edge of the canopy.
14. After all eyelets have been clamped securely into place, put four tacking stitches around each
eyelet. This is to ensure that none of the eyelets slip out of place, and that the hole the eyelet
is inserted into does not widen.
15. Cut one 1.5 [m] length of cord from the large braided nylon cord provided to make up the
shroud lines and unwind the smaller lengths from the large bundle.
16. Carefully, using a lighter, melt the end of each cord to prevent fraying. CAUTION: Do this
very carefully, and ensure that you do not light the entire cord on fire. The melted ends
should be slightly blackened, melted lumps of plastic.
17. Insert a cord into one eyelet hole, and tie off a double knot. Leave a “tail” length of cord
(approximately 2 cm) as shown in each knot. Keep knotting till you have a complete knotted
length.
38
Figure 4.22: Eyelet, stitches and knotted length of cord at parachute tie-off point
18. Repeat till you have all twelve cords tied around the parachute canopy
19. At this point you should have a complete canopy. For storage, wind the dangling lengths of
cord to ensure that there is no tangling.
39
4.5.4 Emergency Drift Correction Methods
In case there are high-velocity winds on the day of the test, two very useful, on-the-field
techniques can be used to reduce the parachute’s drift. Both of these involve cutting out fabric in
the parachute in order to spill air.
The spill hole is a hole cut into the cap piece of the parachute. Due to the structural
reinforcement done in the construction of the parachute canopy, this hole does not need to be
hemmed.
1. Fold the parachute along the gore seams till you have a flat triangular shape, with the cap
forming the apex. Cut across the apex just above the connecting zigzag stitch.
2. Unfold the parachute. You should now have a neat spill hole at the top of the parachute.
Slits are additional longitudinal spill holes cut into each gore pattern. Due to the non-reinforced
fabric that these holes will be cut into, each end of the slit needs to be tacked to ensure that the
cut does not become wider/longer.
1. Measure and mark the center point of each gore pattern. Starting at this point, cut a
longitudinal slit in both directions, for a total length of 6 – 7 [cm].
2. Balance this slit with another one on the panel opposite the one with the original slit.
3. Depending on wind velocity, you may choose to cut more slits into the parachute. Always
remember to balance each slit with another one on the opposite panel.
4. Tack each end of the slit with a simple straight stitch.
5. You should now have a complete chute with spill holes
4.6 Integration
4.6.1 Complete Hardware Integration
Part name Description Quantity
1 Threaded Rod 3
2 Press 1 Baseplate 1
3 R9 Transceiver Board 1
4 R10 Microcontroller Board 1
5 GPS Cable Sensor Board 1
6 GPS Power Board 1
7 10mm Standoff screws 4
8 Screws, Bolts and Washers for 8 sets
standoffs
9 Copper Strapping 1 batch
40
10 20cm Ribbon Cable 1
11 Ribbon Cable Clips 4 sets
12 Nuts 6
13 7 cm spacers 3
14 2 cm spacers 6
Table 4.12: Final Assembly Parts List
1. Assemble Ribbon cable to connect boards together
a. Remove adhesive backing from top part of clips
b. Line up adhesive part of clip on one end of the cable so that each pin lines up with
a groove on the cable
c. Using a vice, slowly crimp the cable into place (Hint: You should hear the clip
click into place)
d. Place the next clip 6 cm away from the first one, facing the same direction
e. Place the next clip 5 cm away from the previous one, facing the opposite direction
f. Place the last clip at the end of the cable (approx. 7cm away), in the same
direction as the previous clip, and opposite direction to the first two clips
41
Figure 4.25: Hole Configuration on Baseplate
1. Starting on the battery pack board, connect the ribbon cable to the transceiver board
2. Thread three nuts onto the bases of each of the three threaded rods (Hint: you can use an
adhesive to hold these nuts in place)
3. Insert the two threaded rods through the base-holes of the triangular arrangement of holes
4. Slide the board-assembly and 7cm plastic spacers onto the threaded rod, ensuring that the
spacers are between the copper strapping tabs (above and below)
5. Holding the entire arrangement firmly, slide the Microcontroller board followed by the
2cm plastic spacers onto the threaded rods (Hint: ensure that the notch on the
Microcontroller board lines up with the transceiver board for the ribbon cable to go
through)
6. Connect the next clip on the ribbon cable to the Microcontroller board
7. Slide the sensor board followed by the 2cm plastic spacers onto the threaded rods (Hint:
ensure that the notch on the sensor board lines up with the Microcontroller board for the
ribbon cable to go through)
8. Connect the last clip on the ribbon cable to the sensors board
9. Slide the parachute support (donut-shaped) ring onto the threaded rod, and firmly cap off
the structure by threading two nuts onto the threaded rods
10. Insert battery into battery clip
11. Slide the remaining threaded rod through the last hole, with all appropriate spacers and
nuts (Hint: starting from the bottom is easiest)
42
12. Attach the nine ½ cm spacers, equal distances apart, onto the parachute support ring
using a strong adhesive like crazy glue
13. Parachute tie-ons
a. Carefully align each string on the parachute with its corresponding position on the
support ring
b. Tie each string into place, ensuring that it is wound around the spacers/threaded
rods to prevent slippage (Hint: you can make multiple passes when tying off the
parachute to ensure a firm hold)
c. Ensure that all the strings are, in the end, of equal length (Hint: if you find that
your parachute is tied on unevenly, add additional knots and/or passes at the
connection on the support ring)
d. Finally, ensure that your parachute strings do not become tangled or interfere with
any of the electronics. This is very important.
4. Can Preparation
a. Obtain a beverage/soft-drink can, and ensure it is empty and clean (Hint: a taller
can with the same diameter is recommended as it allows a larger margin of error)
b. Using a can-opener on the top lip of the can, cut out the center portion with the
tab on it (Hint: The edges will be sharp at this point. Be careful.)
c. Using a pair of sharp scissors, cut tabs into the can edge and fold tabs out like a
flower
5. Final Integration (Do not start this step till all pre-launch preparations and checks are
complete)
a. Insert the CanSat assembly into the prepared can, with the parachute-end at the
top (Hint: watch the edges of the can, they are sharp)
b. Fold the tabs over onto the satellite, and secure the entire assembly using tape or
zip-ties (Hint: ensure that the parachute strings are spaced properly and
unencumbered)
43
4.7 Integrated Software Development
4.7.1 Data Flow and Protocols
Data flows in the following manner aboard the CanSat:
Various GPS readings (see Appendix on NMEA protocols) exist, which can be grabbed from the
GPS module. These indicate heading, velocity etc. and may be included with the data string as
long as the minimum required precision in each reading is maintained.
The program should also have pre-launch and post-recovery software built in – a preliminary
sensors check, GPS lock check, post-recovery EEPROM data dump etc.
44
4.7.2 High-Level Code Structure
Microcontroller program flowchart
Start of Program
Radio Signals
End of Operations Check Radio
signal
Signal indicating there is no Signal
Collect GPS
Write new string Data will be written into the microcontroller cache
Collect
Temp. Data Temp. sensor data from both sensors
will be written without taking the average
Add to String
Collect
Pressure
End of Program
45
4.7.3 Sample Code
46
'++++++++++++++++++++++++++++++++++++++++++++++++++++
'PIN DECLERATIONS, CONSTANTS
PRESS1 CON p0 ' the analog to digital pin dedicated to pressure
TEMP1 CON p1 ' the analog to digital pin dedicated to temp sensor 1
TEMP2 CON p2 ' the analog to digital pin dedicated to temp sensor 2
TEMP3 CON p3 ' temp 3
'++++++++++++++++++++++++++++++++++++++++++++++++++++
'VARIABLES
'----------------------------------------------------
'Interface:
fxnselect var byte(1) 'select which CANSAT function (check,mission etc.)
finaldata var byte(64)
finaldata2 var byte(64)
'Check Systems:
'data gathering
input1 var word ' Analog to digital requires a word (1024 possible settings)
input2 var word
input3 var word
input4 var word
press var float ' voltages , pressures and temperatures are delt as floating point
volt var float ' numbers for accuracy
t1 var float
t2 var float
t3 var float
'Nominal Mission
'EEPROM
addresswrite var long
eepromfill var long
writecyclestr var byte(4) ;will keep track of how many strings have been written
writecycle var long
writecyclecheck var byte(4)
strcntindx var byte(1) 'need to use more vowels
lastaddress var long
temp var long
writecyclestr="0000"
I2CIN SDA, SCL, EA, lastaddress, [str writecyclestr\4]
'GPS
'internal control variables to sort string
position var byte
length var byte
i var byte
j var byte
'actual GPS variables
timestamp var byte (10)
latitude var byte (10)
northsouth var byte (1)
longitude var byte (11)
eastwest var byte (1)
fix var byte
sats var byte(2)
HDOP var byte (3)
47
Table 4.13: Sample of Final Integrated Code
48
5 CONOPS (Concept of Operations)
5.1 Mission Operations Timeline & Task Flow
A mission timeline is nothing more than a plan to execute given tasks at certain times. The plan
must take into account that tasks MUST be completed at the time specified or the mission fails or
is only partly successful. Developing and using a mission timeline is crucial to the success of any
project that involves a schedule that must be executed without fail. Developing a mission
timeline is like developing a project management schedule; you must take into account tasks,
milestones, resources, and costs.
There are many ways to organize a mission timeline. It is always a good idea to start with a
visual representation of the plan, and then develop details from it. A timeline can be as simple as
the example below. Other ways to plan a timeline may be to use a spreadsheet and list the
milestones and times. However, a visual timeline will help you understand relative timing of
events.
It also important to plan tasks and events in mission elapsed time, or MET. In the example below,
each milestone is shown in time relative to the launch time. Therefore, the first event, Arrival at
launch site, is L4h, or 4 hours before launch. Events after launch are in L+ times. The reason to
plan in MET is that you may not know when your scheduled launch time is until the moment you
arrive at the launch site, or launch times may change at the last moment. Planning and rehearsing
your activities in MET means that you can quickly and easily adjust your schedule.
49
Main Timeline
uncher
ta
alize da
on w/ la
te
and fin
ration
unc h si
tegrati
ad
d
Tes ti ng
er t o pa
eport
er Paylo
d Sepe
eploy
, verify
ti tude
t la
In
R
Arriv al a
Pay load
d
Chute D
Launch
Launch
Pres ent
Max.Al
Payloa
Payloa
Extr act
Recov
L+15m
L+20m
L+4m
L+3m
L+3.5m
L-0
L-15m
L-4h
L-3h
L-1h
Payload Testing
Time
data as expected than others during flight. It is acquiring and transmitting data.
Approx 10-15min important to know which one will Ideally, this should be accomplished
be accurate at any given time. prior to chute deployment for the best
Check ground station operations : Ensure data profile
codes are properly integrated and ready to
Time
Assemble final data set L+3.5m Chute Deploy
receive data; ensure transmission and which will be presented
acquisition is operational . Main Mission Phase
Approx. 45-60min Cansat will acquire sensor data and
transmit to ground station as well as
save all data onboard.
Approx. 3-7m
50
5.2.2 Flight Director (FD).
The FD is responsible for all of the real time activities during flight. The FD directs the activity
of the Flight Operations Team (FOT) during the launch and recovery operations. The FD also
develops the operational timeline and ensures that, along with the Training Officer, everyone on
the FOT meets minimum training requirements and is able to perform their duties during real
time activities.
51
Stage Section Activity Description
Preparation of The CANSAT power and sensors will be turned on,
Pre-Launch Ground Station CANSAT and the CANSAT will be fitted into the rocket
No activity will be undertaken during the actual
Launch NA NA launch and flight of the rocket
After the LCO authorizes activation, a signal will be
Activation of sent from the Ground Station to the CANSAT to
Separation Ground Station CANSAT begin data transmission
The CANSAT will be gathering data from sensors
Flight CANSAT Data Gathering and processing the information
The CANSAT will be storing the telemetry data
Flight CANSAT Data Storage onboard
Data The CANSAT will be transmitting the telemetry data
Flight CANSAT Transmission to the Ground Station
The Ground Station will be receiving the data sent
Data Reception by the CANSAT and it will be continuously
Flight Ground Station and Processing analyzed
In preparing a contingency plan, consider all possibilities, including situations that would be fatal
to mission success, then figure out which ones can be dealt with. Prepare contingency plans, and
rehearse them as much, if not more, than nominal operations. Consider how the team could
recover from a failed ground power supply, or a ground computer that won’t boot properly the
morning of the launch. Consider plans to cover a team member who may become ill the night
before. Consider lost cables, forgotten checklists, bad weather, and delays. Most important,
consider combinations of events that, alone, may be a minor inconvenience, but in the right
sequence could cost the mission.
52
5.5 Checklists
5.5.1 Sample Equipment Checklist
53
5.5.2 Sample Nominal Mission Operations
54
6 Data Analysis (Post-Mission), MATLAB
The raw data from the CanSat sensors needs to be analyzed with MATLAB (Code not provided)
for the following information:
1. Comparison of EEPROM data with Radio data
2. Maximum range from deployment to landing
3. Maximum altitude
4. Temperature trends
5. Pressure trends
6. GPS Altitude
7. Heading and mission position profile
8. Performance Satisfaction Metric
The following are examples of raw data graphs and tables generated by the 2006 Ryerson CanSat
team.
U
SA
BL
E
U
SA
BL
E
U
SA
BL
E
55
Figure 6.31: Sample GPS Graph
56
57
58
Figure 6.32: Sample Altitude Graph
59
Figure 6.33: Sample Temperature Profile Graph
60
Figure 6.5: Sample Pressure Altitude Graph
61
7 Appendices
7.1 Soldering Crash Course
7.1.1 How to make the perfect solder joint.
1. All parts must be clean and free from dirt and grease.
2. Try to secure the work firmly.
3. "Tin" the iron tip with a small amount of solder. Do this immediately, with new tips being
used for the first time.
4. Clean the tip of the hot soldering iron on a damp sponge.
5. Many people then add a tiny amount of fresh solder to the cleansed tip.
6. Heat all parts of the joint with the iron for under a second or so.
7. Continue heating, then apply sufficient solder only, to form an adequate joint.
8. Remove and return the iron safely to its stand.
9. It only takes two or three seconds at most, to solder the average p.c.b. joint.
10. Do not move parts until the solder has cooled.
1. Immediately cool the affected area with cold running water for several minutes.
2. Remove any rings etc. before swelling starts.
3. Apply a sterile dressing to protect against infection.
4. Do not apply lotions, ointments etc., nor prick any blisters which form later.
5. Seek professional medical advice where necessary.
62
7.2 Complete Checklists used in CanSat 2006 Competition
7.2.1 Overall Mission Checklists
63
Equipment Quantity Packed Box
xxviii. ATOM Dev. Board 1
xxix. Ziggy 1
xxx. Spare GPS module 1
xxxi. Spare GPS cable 1
xxxii. Secondary Parachute 1
xxxiii. Electrical Tape 2
xxxiv. Spare Wire 2
xxxv. Flux Paste 1
xxxvi. Solder 1
xxxvii. Crazy Glue 1
xxxviii. Hardware Box (nuts, bolts, etc.) 1
xxxix. Spare PCBs, Threaded Rod 2
xl. Solder Stand 1
xli. Anti-Static Bags, Ziploc Bags, Electrical Misc.
Component Bags
xlii. Spare Aero Shells 4
xliii. Sewing Box & Supplies 1
xliv. Hair Dryer 1
xlv. Duct Tape 1
64
7.2.1.3 CANSAT 05-06 Checklist: Ground Station Setup Checklist
Refreshments, Supplies)
Repair and Refuel Station
Support
Personnel Area
Payload Mission
and other team
Manager Manager members
Critical Safety
Personnel Officer
Area Faculty
Advisor
Backups,
Spare Parts,
Tools
65
7.2.2 Mission Operations Hardware, Software and Troubleshoot Checklists
66
7.2.2.2 CANSAT 05-06 Checklist: Nominal Mission Operations
Responsibility Of Activity Time Status Location
(S/F)
FD --> PM, SL, Begin HyperTerminal Capture; Full System
SO Check (All Sensors Operational)
GOTO SYSTEM CHECK CHECKLIST
PM --> SL Integrate CANSAT into Shell
FD Receive OK for Launcher Integration
FD --> PM, SL Integrate CANSAT with Launcher
FD --> SL Software: Nominal Mission Operations
GOTO SOFTWARE OPERATIONS
CHECKLIST
Launch
FD Receive “OK” from LCO
FD --> SL “ON” transmitted to CANSAT
SL Transmission received
Touchdown
FD Recovery Team deployed
RT, SO, SM CANSAT Recovered
FD --> SO, SM Begin Data read from EEPROM
SO, SM Read complete, all data saved as .txt
SO MATLAB loaded, analysis results received
67
Time Activity Commands
T – 2:00 Begin Nominal Mission Operations
FD --> SL Software: Nominal Mission Operations
Launch
FD Receive “OK” from LCO
FD --> SL “ON” transmitted to CANSAT
SL Transmission received
Touchdown
FD Recovery Team deployed
RT, SO, SM CANSAT Recovered
FD --> SO, SM Begin Data read from EEPROM
SO, SM Read complete, all data saved as .txt
SO MATLAB loaded, analysis results received
68
Ground Station Power On
1. Plug in Computer
2. Verify Battery Charging
3. Power Up Comp
4. Hold for Power/ Login
5. USB connection
6. Hold confirmation
7. Open HT
8. Close Connect Description window
9. File -> open -> Cansat
10. Select available comm port
11. Call select
12. Set rad power off (Down)
13. connect Battery
14. Connect USB, Serial
15. Set rad Pwr on (up) 15B verify Green LED on (2) or GO
GS_Std_TBL_Abt
16. verify channel Selection Up
17. Report Payload manager GS Up
Table 7.19: Ground Station Power On
HyperTerminal Capture
1. Select HT
2. Menu: transfer -> Capture
3. Select Browse -> Desktop
4. Type Designated file name -> Save Radio Text
5. Tell P.M. HT cap ON to filename
6. Wait Confirm Filename
Table 7.20: HyperTerminal Capture
69
Ground Station Power On - Troubleshoot
1. Cansat Grn radio --> Set pwr off
2. Disconnect Serial
3. Disconnect Battery
4. Verify Battery Changed Min IIV
4b. Replace with aux battery
5. Radio Pwr On
6. Verify Green Led's Fail to 10.
7. Hold 10 seconds
8. Radio Pwr off
9. Resume GS_Std_Pwr_On at 14. If fail, resume at 10.
10. Check serial cable, connection ok
11. Check usb cable ok
12. Close H. T
13. Resume GS_Std_Pwr_On at 7. if fail continue 130 Cansat Radio Pwr (off) 13c close HT
14. Test Connection at radio
From outside, pinout reads:
1 white 6. Black - (5-7) Sing Lonn
2 Red Single Connection 7. Orange
3- 8. -
4- 9. -
5 white
7. Resume at GS_Std_Pwr_On Resume at 7 if fail GS_Std_Pwr_ON_Failover
Table 7.21: Ground Station Power On Troubleshoot
CanSat Lights/Power Not On - Troubleshoot
1. Confirm Power on
2. Check lights
3. Test wires, battery
-> lights blink
-> HOLD LAUNCH UNTIL REPAIRED!
->no lights
4. check good voltage (5V +_ 0.1 , 7V +0.05 - 0.5) at LM317 tab
OK: Check MC, GPS +5V connect good
Visual ---> bad? Continue
Bad:
-> Adjust Resistors
No VOLT:
-> INDEF HOLD --> Replace LM317
-> No Voltage
-> Abort Mission
Voltage:
-> Restart Cansat Power on checklist
Table 7.22: CanSat Lights/Power Not On Troubleshoot
70
Cansat Power On, Smoke and Explosion - Troubleshoot
1. Halt Count, Power to OFF
2. Inspect
-> LM317
-> MC
-> CAP On VR Board
-> Res on VR, Under MC
-> Trans, Res on GPS
-> EEPROM
3. Replace all damaged components
-> RREP
4a. SCRUB Mission
-> Repaired
4b. Restart
Table 7.23: CanSat Power On Smoke and Explosion Checklist
Cansat Power On – Radio Troubleshoot
1. DM Reports No Menu
1b. No Ins. DM to press W
2. Check Voltage between Pins 1,2 from ANT side on radio on Cansat 7.0+0.05 –0.5 V
3. Reset Cansat
4. DM Press W
5. DM Reports No Menu
6. Verify Radio card connector secure
7. DM Test Radio Heat
IF HOT
8. Indef Hold, Cool Radio -> Perform Failover, move to van w/ high AC no comp change
Table 7.24: CanSat Power On Radio Checklist
Ground Station Power On Failover
1. Report Payload Primary Computer Failure
2. Cansat Power Radio --> Off
3. disconnect Serial cable
4. Disconnect USB cable
5. Start GS_Std_PWR_ON_at 5 w/ Secondary Computer.
Table 7.25: Ground Station Power On Failover Checklist
71