A Weather Balloon Using A Raspberry Pi
A Weather Balloon Using A Raspberry Pi
A Raspberry Pi
Weather Balloon
Abstract
The aim of this project is to collect environmental data and take photographs from the upper atmosphere as an
exercise in engineering and programming. The intention is to fly a helium-filled weather balloon up to a height of
37,000 metres, suspending a capsule of sensors powered by a Raspberry Pi microprocessor. Flight path will be
determined using GPS data taken at regular intervals, with a pressure meter to help determine altitude. Tem-
perature will also be taken at the same intervals via another module. Finally, a camera module will be attached
to take a time lapse of the ascent. All of the data will be saved to an SD card. A radio module will broadcast the
GPS signal so it is possible to find it once it has completed its ascent and fallen back to the ground. The cap-
sule will consist of a high density closed cell foam box to protect the Raspberry Pi and sensors from damage
during the fall.
T
This solves potential issues like wiring conflicts and
he aim of this project is to release a
makes bug fixing easier minor coding or wiring
microprocessor-powered data-recording
modifications can cause lots of problems, but any
capsule into the upper atmosphere, attached
work done on one set of modules will not affect the
to a helium-filled weather balloon. This launch has
others. The grouping of the modules is based on
not yet taken place, but much work has been done
which components are dependent on each other.
on the capsule. As the team had experience with
For example, the temperature and pressure sensors
using a small single-board Raspberry Pi computer
are configured using the same Pi, as data will be
(also referred to as Pi), this was used as the
logged to the same text file. The temperature and
microprocessor. Temperature, air pressure and the
pressure file will be completely independent from
GPS data will be recorded at regular intervals during
image files, so the camera can be part of a separate
the ascent using sensors wired to the Raspberry
module. Setting up the workflow like this means that
Pi, and the data broadcast to the ground via a radio
multiple people can code at once on separate Pis. All
module. This will also allow the calculation of the
the scripts that are created this way will be collected
balloons altitude and its location as it returns to
together and run by a single master script, making
Earth. A small camera is also fixed to the capsule to
debugging a lot easier. Each development Pi and
record the flight. Preliminary research into similar
its corresponding breadboard of components will
projects indicated that the balloon would reach
be combined to a single 256MB Pi, to which a high
an approximate height of 37 km, at which point
data capacity SD card with all the scripts and master
the balloon should burst, releasing the capsule.
script on it will be inserted.
The Raspberry Pis descent will be controlled by a
parachute and the impact of landing lessened by a
All of the functions and data collection from various
shock-resistant casing of some kind.
sensors need to be programmed so the Pi can
carry out the desired functions exactly. Python, a
Method programming language that comes preinstalled on
A standard helium-filled weather balloon will be Raspbian (Raspberry Pis operating system), was
used and the capsule containing the Pi and modules chosen for the project, as it is relatively easy for less
attached to it. The dimensions of the balloon will be experienced programmers to pick up. As most Pi
determined based on the mass of the final load. users also use Python, there are many tutorials and
existing codes on the internet that are useful for this
project.
[vitaminoc.com]
20 WWW.YSJOURNAL.COM I ISSUE 17 I ROYAL SOCIETY SPECIAL
A Raspberry Pi Weather Balloon PROJECT
The first element the project tackles is recording
the ambient environment of the capsule and storing
this data in a text file, beginning with the connection
of the physical sensors to the Pi so they could
communicate. A Raspberry Pi has two rows of 13
General Purpose Input/Output (GPIO) pins that can
be used to connect the Pi to anything that does not
have a USB. Sensors must be attached to these.
Research into how the components should be
attached is summarised in figure 1.
Resources
Barometer from Adafruit
GPS from Adafruit
Camera from Raspberry Pi
Figure 10: Raspberry Pi breadboard. Radio module from Radiometrix
Radio transceiver from Yaesu
Temperature module from Dallas Semiconductor
Glossary
Baud rate: a measure of how many times per second a
signal changes (or could change).
Breadboard: a board of holes that are connected
underneath in rows, allowing pins to be inserted in
columns to connect to each other.
Import: tells the code to use a certain library
of commands which can be called later in the
programme.
RTTY: RadioTeleTYpe, a communications system.
Acknowledgements
Figure 11: Temperature, pressure and Mr Tom Wilson, Redland Green School, and Professor
GPS sensors on a breadboard connected Philip Wilson, University of Southampton.
to a Raspberry Pi B.
Author
Redland Green School, Bristol