{"id":613,"date":"2018-03-06T14:37:42","date_gmt":"2018-03-06T14:37:42","guid":{"rendered":"http:\/\/blogs.bath.ac.uk\/engdes-student-insights\/?p=613"},"modified":"2018-03-06T14:37:42","modified_gmt":"2018-03-06T14:37:42","slug":"the-tracking-system-launching-a-high-altitude-balloon","status":"publish","type":"post","link":"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/2018\/03\/06\/the-tracking-system-launching-a-high-altitude-balloon\/","title":{"rendered":"The tracking system: launching a High Altitude Balloon"},"content":{"rendered":"<h3>Author: Jacob Smith -<\/h3>\n<hr \/>\n<p>Welcome back to my blog about launching a High Altitude Balloon. A lot more research and waiting for deliveries later I had the parts and could start making my tracking system. In this post I will describe how it works and how I have set it up.<\/p>\n<h2>Step 1: Send and receive data over radio<\/h2>\n<p>The basic idea of a radio tracker is to use radio waves to send the location data from the payload to a station on the ground. The radio module I will be using is an <strong>NTX2B<\/strong> module, which transmits at a specific frequency in the <strong>70cm<\/strong> band (i.e. 70cm wavelength \u2261 430MHz - 440MHz). Without wanting to get into technical details, this is achieved by doing the following. When you adjust the voltage supplied to the NTX2B you very slightly change its\u2019 transmission frequency, so when receiving the signal you pick up two different tones. Doing this in a controlled manner means you can transmit 1\u2019s and 0\u2019s, and hence data. The first step was therefore to create a voltage divider circuit using my <strong>Arduino<\/strong> <strong>Uno<\/strong> and the radio module. An Arduino is an open-source microcontroller, basically a mini computer that you can upload code to in order to perform a variety of tasks that interact with the real world, such as reading sensors or controlling lights and motors.<\/p>\n<figure id=\"attachment_614\" aria-describedby=\"caption-attachment-614\" style=\"width: 1164px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-614\" src=\"http:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/balloon-tracker-parts.png\" alt=\"parts of a balloon tracker\" width=\"1164\" height=\"699\" srcset=\"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/balloon-tracker-parts.png 1164w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/balloon-tracker-parts-300x180.png 300w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/balloon-tracker-parts-768x461.png 768w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/balloon-tracker-parts-1024x615.png 1024w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/balloon-tracker-parts-358x215.png 358w\" sizes=\"auto, (max-width: 1164px) 100vw, 1164px\" \/><figcaption id=\"caption-attachment-614\" class=\"wp-caption-text\">The major components of my tracking system<\/figcaption><\/figure>\n<p>A radio receiver is often used to receive the radio signal believe it or not, but these are very expensive so I opted for the much more affordable method of <strong>Software Defined Radio<\/strong> (SDR). Using a dongle connected at one end to a <strong>70cm antenna<\/strong> (to match the radio wavelength) and plugged into my laptop at the other, I could use the laptop to do the work that the radio receiver would do. The complementary software \u2018<strong>SDR#<\/strong>\u2019 (pronounced SDR Sharp) showed me all the signals the antenna was receiving, and to start with I was able to listen to music from various radio stations \u2013 nice, but not my end goal.<\/p>\n<p>I followed the UKHAS (UK High Altitude Society) guide on creating the circuit linking the Arduino and radio module. Turning the transmitter on produced a clear spike at the frequency the module transmits at, and by tuning SDR# to this frequency I could hear the bleeps of the alternating tones. The transmission of this alternating tone is called <strong>RTTY<\/strong> (Radio teletype).<\/p>\n<figure id=\"attachment_615\" aria-describedby=\"caption-attachment-615\" style=\"width: 1380px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-615\" src=\"http:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/alternating-signals.png\" alt=\"image of The alternating signals being received in SDR#\" width=\"1380\" height=\"776\" srcset=\"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/alternating-signals.png 1380w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/alternating-signals-300x169.png 300w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/alternating-signals-768x432.png 768w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/alternating-signals-1024x576.png 1024w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/alternating-signals-382x215.png 382w\" sizes=\"auto, (max-width: 1380px) 100vw, 1380px\" \/><figcaption id=\"caption-attachment-615\" class=\"wp-caption-text\">The alternating signals being received in SDR#<\/figcaption><\/figure>\n<p>The second piece of software, <strong>dl-fldigi<\/strong>, converts the bleeps of RTTY into data \u2013 in this case a line of text to test it is working, but during the flight this will be the location data of the payload. Making dl-fldigi recognise the audio from SDR# took a while. Eventually though, after a lot of juggling with various software settings and circuit connections, it worked!<\/p>\n<figure id=\"attachment_616\" aria-describedby=\"caption-attachment-616\" style=\"width: 1370px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-616\" src=\"http:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/Dl-fldigi-decoding-the-packets-of-RTTY.png\" alt=\"Dl-fldigi decoding the packets of RTTY\" width=\"1370\" height=\"448\" srcset=\"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/Dl-fldigi-decoding-the-packets-of-RTTY.png 1370w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/Dl-fldigi-decoding-the-packets-of-RTTY-300x98.png 300w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/Dl-fldigi-decoding-the-packets-of-RTTY-768x251.png 768w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/Dl-fldigi-decoding-the-packets-of-RTTY-1024x335.png 1024w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/Dl-fldigi-decoding-the-packets-of-RTTY-657x215.png 657w\" sizes=\"auto, (max-width: 1370px) 100vw, 1370px\" \/><figcaption id=\"caption-attachment-616\" class=\"wp-caption-text\">Dl-fldigi decoding the packets of RTTY<\/figcaption><\/figure>\n<p>Having spent a while receiving the signal on SDR# I started to notice the signal was drifting. This is a known problem that can occur and is amplified by temperature changes. I therefore bought a more robust SDR dongle, the <strong>NooElec NESDR SMArt<\/strong>, which has a Temperature Compensated Crystal Oscillator (TCXO) meaning the signal drifts less over time for a given temperature change. I also bought a \u2018<strong>HABamp<\/strong>\u2019, a component that filters out the unwanted signals and amplifies the signal you want, producing a much clearer signal.<\/p>\n<h2>Step 2: Find current location with GPS module<\/h2>\n<p>The next step was to use the <strong>uBlox8 GPS<\/strong> <strong>module<\/strong> to give me my current location - lattitude, longitude, and elevation, vital when tracking the balloon. Firstly, this meant that it was time to use a soldering iron probably for the first time since year 9. Boy I forgot how fun soldering was!<\/p>\n<p>With the module connected to the Arduino, and a new code uploaded, I was again wondering what I had missed as nothing was happening. As with before though, I tried and tried and eventually succeeded.<\/p>\n<p>Using the complementary program for the GPS module, <strong>uCentre<\/strong>, and holding the antenna up against the window, I was able to see my location on a map and many interesting things such as the satellites I was picking up.<\/p>\n<figure id=\"attachment_617\" aria-describedby=\"caption-attachment-617\" style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-617\" src=\"http:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/ucentre.png\" alt=\"A few of the many windows that can be selected in uCentre. The raw data being received (bottom left), current co-ordinates (top left), location on a map (top middle\/bottom right), and locations of satellites (top right).\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/ucentre.png 1920w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/ucentre-300x169.png 300w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/ucentre-768x432.png 768w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/ucentre-1024x576.png 1024w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/ucentre-382x215.png 382w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><figcaption id=\"caption-attachment-617\" class=\"wp-caption-text\">A few of the many windows that can be selected in uCentre. The raw data being received (bottom left), current co-ordinates (top left), location on a map (top middle\/bottom right), and locations of satellites (top right).<\/figcaption><\/figure>\n<h2>Step 3: Combine steps 1 and 2 to send GPS data through the radio module<\/h2>\n<p>Having successfully decoded data from the radio module and used the GPS module to find my location, it was time to combine the two and decode the radio data strings containing longitude, latitude etc. For a first flight it is best to carefully use pre-flown code, and there is plenty of code available online which I am very grateful for. It was then just a case of wiring up the two modules to talk to each other and precariously balancing the GPS module by the window. Going back to the SDR# software, I tuned to the radio module\u2019s frequency. Finally, in dl-fldigi, I was able to read the data that had been decoded containing the longitude and latitude. The bar at the top of the message window turns green when this has been done successfully, and if I were to use the program in \u2018online\u2019 mode then it would upload the location to the central server map for everyone tracking to see. Success!<\/p>\n<figure id=\"attachment_618\" aria-describedby=\"caption-attachment-618\" style=\"width: 265px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-618\" src=\"http:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/gps-tracker.jpg\" alt=\"The GPS module is flashing green to indicate satellite lock, the LEDs are lighting up to indicate the radio module is working, and the Arduino is hidden underneath the breadboard circuit.\" width=\"265\" height=\"253\" srcset=\"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/gps-tracker.jpg 265w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/gps-tracker-225x215.jpg 225w\" sizes=\"auto, (max-width: 265px) 100vw, 265px\" \/><figcaption id=\"caption-attachment-618\" class=\"wp-caption-text\">The GPS module is flashing green to indicate satellite lock, the LEDs are lighting up to indicate the radio module is working, and the Arduino is hidden underneath the breadboard circuit.<\/figcaption><\/figure>\n<figure id=\"attachment_619\" aria-describedby=\"caption-attachment-619\" style=\"width: 1380px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-619\" src=\"http:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/radio-module-signal.png\" alt=\"The yellow box half way down the screen displays the text containing information including the time, longitude and latitude that the radio module sends to the laptop via the antenna.\" width=\"1380\" height=\"776\" srcset=\"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/radio-module-signal.png 1380w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/radio-module-signal-300x169.png 300w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/radio-module-signal-768x432.png 768w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/radio-module-signal-1024x576.png 1024w, https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-content\/uploads\/sites\/128\/2018\/02\/radio-module-signal-382x215.png 382w\" sizes=\"auto, (max-width: 1380px) 100vw, 1380px\" \/><figcaption id=\"caption-attachment-619\" class=\"wp-caption-text\">The yellow box half way down the screen displays the text containing information including the time, longitude and latitude that the radio module sends to the laptop via the antenna.<\/figcaption><\/figure>\n<h2>Next Steps<\/h2>\n<p>Now that I have figured out the circuit connections of the tracker, I will try to add extra components to my circuit such as a temperature sensor and an SD card module. I will also research a video camera that will be capable of recording the whole flight, and perhaps another camera to take pictures with. I hope you enjoyed reading about my tracking system, and that you were able to follow what I was on about!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Author: Jacob Smith - Welcome back to my blog about launching a High Altitude Balloon. A lot more research and waiting for deliveries later I had the parts and could start making my tracking system. In this post I will...<\/p>\n","protected":false},"author":1080,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[5,7,35],"tags":[205,207,119,202,151,208],"class_list":["post-613","post","type-post","status-publish","format-standard","hentry","category-department-of-mechanical-engineering","category-student-projects","category-undergraduate","tag-balloon","tag-gps","tag-mech-project","tag-mechanical-engineering","tag-space","tag-tracker"],"acf":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-json\/wp\/v2\/posts\/613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-json\/wp\/v2\/users\/1080"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-json\/wp\/v2\/comments?post=613"}],"version-history":[{"count":0,"href":"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-json\/wp\/v2\/posts\/613\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-json\/wp\/v2\/media?parent=613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-json\/wp\/v2\/categories?post=613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.bath.ac.uk\/engdes-student-insights\/wp-json\/wp\/v2\/tags?post=613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}