Final Report CANSAT
Final Report CANSAT
net/publication/332655095
CITATIONS READS
0 2,645
1 author:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Redes de Sensores sem fios: Aplicações para Supervisão e Monitorização de Infraestruturas View project
All content following this page was uploaded by Luis Miguel Pires on 25 April 2019.
Table of Contents
-2-
3D Ground Mapping the Surface of Santa Maria Island – Azores
-3-
3D Ground Mapping the Surface of Santa Maria Island – Azores
This kind of mapping can also be helpful to the forestry supervision. With detailed maps, illegal logging can be
detected and tracked, tree count can be determined, and the health of the forest can be monitored. Using
Normalized Difference Vegetation Index (NDVI) imagery, areas of dry vegetation can be monitored, which can
assist with forest fire prevention. Maps can also help identify dead trees, revealing whether a disease might be
affecting the forest.
When disaster strikes, quick and accurate information is vital for emergency management to effectively respond,
especially when the disaster covers a large area. Using CANSAT photogrammetry, officials can determine the
most damaged areas of a disaster (think flood or hurricane). With this data, they can effectively distribute their
resources for a timely response.
After finishing the secondary mission, we associate all data collated, and using some routines and scripts
developed by the team in C/C++ language, we add those in a specialized software named DroneDeploy. Figure
2.1 shows the macro overview of our system.
-4-
3D Ground Mapping the Surface of Santa Maria Island – Azores
software system in 3.4. Our recovery system and our strategies is explained in session 3.5. In the end of chapter,
we descript ground support equipment, in 3.6 and the operational concept in 3.7.
In Figure 3.1, it can the see the two Raspberry Pi Zero, responsible for video and photos acquisition and stored
that data in SD card. They are programming in Python language. One of the Raspberry Pi is configured as
master of the system, and control the other Raspberry Pi (slave entity in the system) and the Arduino Nano
(slave entity in the system), in order to synchronize the stored of data collated from sensors plus GPS signals
and the video/photos acquisition. Arduino Nano is also present, is programming in C/C++ language to
acquisition, processing data from sensors and GPS signal, sending sensors data to the ground station, using
RF 433 MHz frequency using a lower bandwidth, and stored data collated in a SD card connected directly to
Arduino. The power supply of the system is two 9 volt battery with a 7805 voltage regulator for each to down the
voltage to 5 volt.
-5-
3D Ground Mapping the Surface of Santa Maria Island – Azores
After the design phase, using Pura software, we print in 3D: the can, one cap and one inside division, to separate
the hardware inside of the can, see Figure 3.2 the 3D design and Figure 3.3 the results after 3D printing.
Satellites normally do not return to Earth in a parachute. At the end of their useful life, a satellite will be put in a
different orbit. For satellites orbiting at a low altitude this could mean they will burn up in the atmosphere.
Satellites further away will end up in a much more distant parking orbit and will circle our planet forever.
Sometimes however the spacecraft must return to earth with samples or astronauts. One of the solutions is then
to descend in a parachute. When the CANSAT is deployed it must have a device to slow it down, otherwise it
will crash into the surface. The parachute also helps ensure that the CANSAT stays in an upright position. This
is particularly important because it helps to maintain proper antenna orientation, which maximizes the chances
of receiving telemetry. When the design of the parachute is finished you can start the production process. There
are however a few important issues to keep in mind during this process. Deployment of the parachute will be
relatively violent, so the fabric and fibers you use need to be strong, nylon cord for example.
To design the parachute, we’ll use some simple physics. We use a simplified model to estimate the area of the
parachute, after which we can start on the construction. During the descent two forces will be acting on the
CANSAT. Gravity will pull on the can and accelerate it towards the ground, and the drag force on the parachute
will pull the CANSAT in the opposite direction and slow down the descent rate. The two forces are shown in the
Figure 3.4.
When the CANSAT is deployed, the force of gravity will cause it to accelerate. After a few seconds the drag
force from the parachute will reach equilibrium with the force of gravity. From that point on, the acceleration will
be zero and the CANSAT will descend at a constant velocity. This constant velocity must be greater than the
minimum descent velocity specified in the requirements. For the following calculations we can use this minimum
value as the constant velocity of the CANSAT. The gravity force is equal to: = ∙ . The drag force of the
parachute is equal to: = 0.5 ∙ ∙ ∙ ∙ . So, we can equal the two forces, and join the two equations the
area of our parachute is given by: = . Where,
. × × ×
• m, mass CANSAT (350g máx)
• g, gravitational acceleration (9.8 m/ )
• , resistive coefficient (1.75)
• = local air density (typically = 1.225 )
• v = descent speed (used in the calculation 9.5m/s)
The team decide to create a Flat parachute design from standard two-dimensional flat geometric figures, in this
case octagon parachute, see Figure 3.5.
-6-
3D Ground Mapping the Surface of Santa Maria Island – Azores
Each Raspberry Pi zero control one camera, these cameras has the following characteristics: 8M pixels, RGB and connected
to CSI port. Arduino Nano control: BMP280 is an absolute barometric pressure sensor especially designed for mobile
applications we connected to Arduino using I2C communication; GPS receiver with 66 channels (on 22 satellites), -165 dBm
of sensitivity, less then 3m of position accuracy, 25 mA of consumption on tracking, we connected to Arduino using TX/RX
pins; SD card module is connected to Arduino using SPI pins; APC220 is a transceiver (more than 100 channels, power
output is 20 mW, Gaussian Frequency Shift Keying, GFSK, uses frequency from 418 MHz to 455 MHz), with a highly versatile
low power radio solution that is easy to setup and integrate into any project requiring a wireless RF link, we connect one of
these two modules in Arduino through TTL interface and the other is connect to the PC (ground station) with another APC220
module through a TTL/USB converter.
The power supply for the system is based on two batteries of 9 volt, these two will distribute current to all components. Using
the same batteries, we power both Raspberry Pi Zero, stepping down the voltage using a voltage regulator (LM 7805). This
way we prevent the microprocessor from being damaged due to high power. The microcontroller Arduino will be powered
using one of the Raspberry Pi Zero. The voltage regulator (LM7805) is integrated circuit based on transistors that maintain
a constant voltage level.
-7-
3D Ground Mapping the Surface of Santa Maria Island – Azores
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_BMP280.h>
#include <SD.h>
#include <SoftwareSerial.h>
void setup(){
Serial.begin(9600);
pinMode(pino_set,HIGH);
apc220.begin(9600);
delay(10);
pinMode(pino_set,LOW);
delay(100);
Serial.begin(9600);
Serial.println(F("BMP280 test"));
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
if (!bmp.begin()) {
Serial.println(F("Could not find a valid BMP280 sensor, check wiring!"));
-8-
3D Ground Mapping the Surface of Santa Maria Island – Azores
while (1);
}
myFile = SD.open("EVERYTHING.txt", FILE_WRITE);
bmp.setSampling(Adafruit_BMP280::MODE_NORMAL, /* Operating Mode. */
Adafruit_BMP280::SAMPLING_X2, /* Temp. oversampling */
Adafruit_BMP280::SAMPLING_X16, /* Pressure oversampling */
Adafruit_BMP280::FILTER_X16, /* Filtering. */
Adafruit_BMP280::STANDBY_MS_500);
void loop() {
if (myFile) {
Serial.print("Writing to test.txt...");
myFile.println("testing 1, 2, 3.");
myFile.print(F("Temperature = "));
myFile.print(bmp.readTemperature());
myFile.println(" *C");
myFile.print(F("Pressure = "));
myFile.print(bmp.readPressure()/100);
myFile.println(" hPa");
myFile.println();
myFile.close();
apc220.print(F("Temperature = "));
apc220.print(bmp.readTemperature());
apc220.println(" *C");
apc220.print(F("Pressure = "));
apc220.print(bmp.readPressure()/100);
apc220.println(" hPa");
apc220.println();
delay(2000);
}
We develop in Python language a script (see Figure 3.8) to record the fall, the script above will only allow the
raspberry to compile the program as the raspberry boots up, but this script will compile a program that we've
made to control the cameras.
A short part of python programming code (added in both Raspberry Pi Zero) to acquire data from cameras, is
present below.
import picamera
-9-
3D Ground Mapping the Surface of Santa Maria Island – Azores
Figure 3.9. Termite software added in laptop ground station receiving data from CANSAT.
The Yagi antenna (see Figure 3.10, right side) is connected through a specific connector and cables to the
APC220 transceiver, this is a directional antenna used to capture radio waves, radars and even Wi-Fi. Antenna
has 9 dipoles, each of them has 1,5 dBi of gain. This type of communication is point-to-point between CANSAT
and ground station (see Figure 3.10, left side).
- 10 -
3D Ground Mapping the Surface of Santa Maria Island – Azores
Figure 3.11. State diagram including all the procedures after CANSAT launch.
4. CANSAT Testing
This chapter is focusing on the presentation of all the tests and results. First, we program Arduino Nano, to
acquire data from sensors and GPS receiver, see Figure 4.1. After we develop a program to stored sensors and
GPS data to SD card. The results are very good, and we have conditions to go one on the tests.
Figure 4.1. Tests and results from sensors and data sending to laptop.
- 11 -
3D Ground Mapping the Surface of Santa Maria Island – Azores
We provide tests of our parachute, for this we couple the parachute in a full soda can and using a Drone (see
Figure 4.2), after near 200 meters we launch the soda can. After the launching the results are satisfactory, soda
can doesn’t broken and is not to fast during the descent.
Figure 4.3 shows the tests realized simulated our CANSAT and the ground station.
The last tests were programming Raspberry Pi Zero and connected camera, for taking continually (in each 500
milliseconds) photos and videos.
After the different tests realized, in hardware, in the communication and in the parachute, we can be said that
our system are prepared to the Nacional Final of CANSAT Portugal Completion.
5. Innovation
In our project will innovate in a way we map the surface of the Santa Maria Island in Azores, using a 3D model
to represent the information being given by the two cameras that are located inside the CANSAT, that will not
only provide a video recording of the release until it hits the ground but provide pictures every second so we can
then analyze and merge them into a full 3D map.
These type of maps can be used in software such as Google Earth, that allows users to identify and decide
which places they want to visit next, or simply get to know certain locations without actually visiting the place
itself, the way Google Earth works is similar to our CANSAT in which they use various satellites located in the
outer space to take several pictures and generate bidimensional and tridimensional maps.
We innovate other concepts (image and video processing), using in our project: Photogrammetry, Orthomosaic,
RGB camera, NDVI (Normalized Difference Vegetation Index), GCP, Point Cloud, Relative Accuracy, Absolute
Accuracy and Resolution.
6. Acquired Skills
Throughout the project and the developing of the CANSAT, team acquired new skills related to satellite
communication and the radiofrequency waves, we were also given the opportunity to work with new sensors
used often daily in most of the devices we know. The camera tests were made using a Raspberry Pi Zero, a
microprocessor none of the students had worked with, or barely used before. With this said, it is implicit that we
developed skills in programming languages such as Python, one of the most widely known languages in
- 12 -
3D Ground Mapping the Surface of Santa Maria Island – Azores
computer science. SPI communication was studied thoroughly in order to manage the information given by the
sensors. We think the gold of Acquired skills is in the acquisition and processing images and video. Caused by
this project que understand new concepts like: Photogrammetry, science of taking measurements from
photographs, usually those taken from the air; Orthomosais, an aerial image corrected for topographic relief,
camera tilt, and distortions in camera optic so that the scale of the image is uniform throughout; RGB Camer,
this is the traditional type of camera used in mapping. It takes a sample of Red, Green, and Blue spectrums of
light to create the image; NDVI, also known as Normalized Difference Vegetation Index, which is a derived
image (usually from a modified RGB or near IR sensor), NDVI takes the reflective light from the plant and ranks
it on a scale from a -1 to +1 value; GCP, also know as a Ground Control Point, which is a physical marker on
the ground that is used to keep your map geographically accurate, this is a very accurate coordinate and allows
your whole map to be aligned properly with the surrounding geographical area; Point Cloud, a point cloud is the
collection of points or coordinates on an object’s surface, this collection of points can be used to create a 3D
model of an area. Point Clouds are often derived from photogrammetric data; Relative Accuracy, in terms of
mapping, relative accuracy refers to how accurate a point on a map is to other points on the same map, this
means that if two points on a map are X cm apart on the map, they should be X cm apart in the real world;
Absolute Accuracy, refers to the accuracy of a point related to the coordinates in the real world, this means that
a point on a map should match its actual GPS coordinates; Resolution, is the level of detail on a map. This is
often measured in CM/Pixel, which means that for every pixel, X amount of CM will be represented on the map.
7. Dissemination
In order to promote the project, our group recorded a video [1] where every member presented themselves and
told their part on the project and what their functions are.
In an annually school fair called Futuralia, where we share information about the various courses our school
has, we talked about CANSAT in our stand, telling every person that looked interested what it consists of and
what is our plan and secondary mission for this project.
On the past 9th of April there was the open day at our school, there we showed diverse projects built around
our course and once again told and showed everybody about Cansat, where it would take place and what our
goals were.
[1] https://www.youtube.com/watch?v=36b_vBpiJJ8&fbclid=IwAR22h7rcvIQ-JL1ql1TH7zt780LP1-
XYWnkN_zUckQNtTST0F80QiLVUpwY
Our objective is a continually dissemination of project activities, namely during the Final Completion
- 13 -
3D Ground Mapping the Surface of Santa Maria Island – Azores
8. Budget
Table 8.1 shows the total budget used to create and implement our project.
Table 8.1. List of components and total budget for the project.
- 14 -