{"id":873,"date":"2013-03-01T09:37:03","date_gmt":"2013-03-01T09:37:03","guid":{"rendered":"http:\/\/www.daveakerman.com\/?p=873"},"modified":"2013-03-06T11:27:04","modified_gmt":"2013-03-06T11:27:04","slug":"tardis-and-raspberry-pi-in-space","status":"publish","type":"post","link":"http:\/\/www.daveakerman.com\/?p=873","title":{"rendered":"TARDIS And Raspberry Pi In &#8220;Space&#8221;"},"content":{"rendered":"<p><center><em>Raspberry Pi in a TARDIS takes stratospheric self-portrait<\/em><\/center><br \/>\n<a href=\"http:\/\/www.daveakerman.com\/?attachment_id=881\" rel=\"attachment wp-att-881\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-881\" alt=\"A120_cropped\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/A120_cropped-1024x692.png\" width=\"640\" height=\"432\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/A120_cropped-1024x692.png 1024w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/A120_cropped-300x202.png 300w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/A120_cropped.png 1280w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>For my fourth Raspberry PI weather balloon flight I wanted to pack as much into the flight as I could, making full use of what the Pi has to offer:<\/p>\n<ul>\n<li>3G link for video and backup telemetry<\/li>\n<li>Send telemetry over 3G from the launch site<\/li>\n<li>A live video stream from payload itself, with telemetry overlay, before and for the first few seconds of launch site, over 3G<\/li>\n<li>Radio telemetry and SSDV images as usual<\/li>\n<li>Transmit larger photos than before, using twice the transmission speed<\/li>\n<li>Switch to taking and sending even larger photos when above 30km<\/li>\n<li>Take full-size images for storage on the SD card<\/li>\n<li>3G to automatically reconnect on landing<\/li>\n<li>Send the landing position over 3G<\/li>\n<li>Live video stream from the landing site (hopefully in the middle of an empty field)<\/li>\n<li>Upload all images to a web server by ftp after landing<\/li>\n<\/ul>\n<p>That&#8217;s quite a lot more than before, and with all the overall control software written the day before launch I wouldn&#8217;t have been at all surprised to see things go wrong! In the event, the only part that failed was the ftp upload (the very last thing I added).<\/p>\n<p>With more electronics than usual to pack inside the payload, what better choice than a TARDIS? Sadly I must have missed my university class on transdimensional engineering, so I had to build a fairly large TARDIS to fit everything inside. Actually the real reason for choosing the TARDIS over say an Apollo Command Module (that&#8217;s for next time) was that it&#8217;s easy to make from flat sheets of extruded polystyrene! Unsurprisingly, the internet is full of plans and diagrams so it didn&#8217;t take long to find what I needed, including the vital fact that the correct colour paint is Prussian Blue :-). A flashing white LED completed the construction.<\/p>\n<p><a href=\"http:\/\/www.daveakerman.com\/?attachment_id=886\" rel=\"attachment wp-att-886\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-886\" alt=\"tardis\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/tardis-211x300.jpg\" width=\"211\" height=\"300\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/tardis-211x300.jpg 211w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/tardis-722x1024.jpg 722w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/tardis.jpg 883w\" sizes=\"(max-width: 211px) 100vw, 211px\" \/><\/a><\/p>\n<p>For the inside I built mounted the electronics either side of corrugated plastic sheet. One side carried the Pi itself (a model B &#8211; I needed both USB ports), plus switched-mode regulators for the 3.3V and 5V lines, and a USB 3G dongle for the live video stream and backup telemetry:<\/p>\n<p><a href=\"http:\/\/www.daveakerman.com\/?attachment_id=897\" rel=\"attachment wp-att-897\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-897\" alt=\"1\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/1-714x1024.jpg\" width=\"640\" height=\"917\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/1-714x1024.jpg 714w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/1-209x300.jpg 209w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/1.jpg 1839w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>On the other side went the 6 Lithium AA cells plus a custom board carrying the NTX2 radio transmitter, UBlox GPS receiver, BMP085 pressure\/temperature sensor and an A\/D to monitor the battery voltage. A second temperature sensor was added outside the base.<\/p>\n<p><a href=\"http:\/\/www.daveakerman.com\/?attachment_id=898\" rel=\"attachment wp-att-898\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-898\" alt=\"2\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/2-699x1024.jpg\" width=\"640\" height=\"937\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/2-699x1024.jpg 699w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/2-204x300.jpg 204w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/2.jpg 2001w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Last but not least I needed a camera to photograph the TARDIS, and again I used a Logitech C270 webcam this time mounted in a fluorescent pink ball (easy to spot at distance after it lands!). You can see that mounted precariously at the back of this image:<\/p>\n<p><a href=\"http:\/\/www.daveakerman.com\/?attachment_id=901\" rel=\"attachment wp-att-901\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-901\" alt=\"3\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/3-682x1024.jpg\" width=\"640\" height=\"960\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/3-682x1024.jpg 682w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/3-200x300.jpg 200w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>The launch day was overcast and cold, but my main concern was the flight path. Too far west and the landing spot would be near Bath; too far east and it would be near Salisbury Plain (where men play with their toys). So I planned the ascent rate\/\/descent rate and burst altitude to land between those extremes. <a href=\"http:\/\/ava.upuaut.net\">Anthony Stirk<\/a> (who helped out on my first Pi launch) came along to help, and to launch his own balloon too which he successfully got to float and was last seen flying over Germany. Also Alex Eames of <a href=\"http:\/\/raspi.tv\/\">http:\/\/raspi.tv\/<\/a> came to record the launch on video. We launched Anthony&#8217;s flight first and then the TARDIS:<\/p>\n<p><a href=\"http:\/\/www.daveakerman.com\/?attachment_id=902\" rel=\"attachment wp-att-902\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-902\" alt=\"4\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/4-748x1024.jpg\" width=\"640\" height=\"876\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/4-748x1024.jpg 748w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/4-219x300.jpg 219w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/4.jpg 1863w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>The live video streaming from the payload worked well for the launch, though it soon hit the low cloud and then the 3G dropped out (as expected). At 4km the flight software stopped trying to connect through 3G, closed the streaming program, and started to take still images which were then transmitted over the radio link. I&#8217;d tested all this stuff with a pretend flight but it was great to see it actually work for real! I&#8217;d chosen to transmit images and telemetry at 600 baud, which may sound slow but it&#8217;s twice the rate normally used for images and 12 times the normal telemetry speed, and I was concerned that we&#8217;d lose lots of image data. However we lost very little &#8211; more than on a 300 baud flight, but not enormously so especially considering it was a midweek launch with fewer listeners than normal. here&#8217;s one of the images it sent:<\/p>\n<p><a href=\"http:\/\/www.daveakerman.com\/?attachment_id=903\" rel=\"attachment wp-att-903\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-903\" alt=\"snap84\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/snap84.jpg\" width=\"544\" height=\"288\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/snap84.jpg 544w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/snap84-300x158.jpg 300w\" sizes=\"(max-width: 544px) 100vw, 544px\" \/><\/a><\/p>\n<p>With the launch kit packed back in the car, we stopped by at home so I could tune my receiver there in to help with the downloading, then we set off in the general direction of where the flight was supposed to land. We took my 4&#215;4 which has a car PC installed with a touchscreen on the dash (top of the pic below), plus a Google Nexus 7 mounted below for the map. Anthony had his netbook plus mine to use.<\/p>\n<p><a href=\"http:\/\/www.daveakerman.com\/?attachment_id=904\" rel=\"attachment wp-att-904\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-904\" alt=\"IMG_1483\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/IMG_1483-1024x768.jpg\" width=\"640\" height=\"480\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/IMG_1483-1024x768.jpg 1024w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/IMG_1483-300x225.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>We took the wrong road out of Marlborough which did slow us a little but the flight path meant we had enough time. Once the balloon burst we could see that the landing point was going to be near Melsham, so we headed there, and then on to Whitley as the landing prediction homed in. After a short stop for fuel, and a shorter stop for another purpose (the garage didn&#8217;t have a toilet!) we parked up by the main road expecting the payload to land about 300 metres away. In the event it was about 1.3km away, so we didn&#8217;t see it. The radio signal dropped out on landing, and the last position we had was for it 200 metres above the ground. We jumped back in the car and headed there, and very soon the map updated with the actual landing position, sent over the GSM link. About that time the live video link burst back into life too! Here&#8217;s a still from that:<\/p>\n<p><a href=\"http:\/\/www.daveakerman.com\/?attachment_id=905\" rel=\"attachment wp-att-905\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-905\" alt=\"landed\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/landed.png\" width=\"481\" height=\"357\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/landed.png 481w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/landed-300x222.png 300w\" sizes=\"(max-width: 481px) 100vw, 481px\" \/><\/a><\/p>\n<p>We parked up about 200 metres from the payload. I entered the co-ords into my Android phone and we followed the directions from that, but pretty soon Anthony spotted the flight lying in the field:<\/p>\n<p><a href=\"http:\/\/www.daveakerman.com\/?attachment_id=906\" rel=\"attachment wp-att-906\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-906\" alt=\"IMG_1488\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/IMG_1488-1024x768.jpg\" width=\"640\" height=\"480\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/IMG_1488-1024x768.jpg 1024w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/IMG_1488-300x225.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Here&#8217;s the flight path to the landing spot (top-right downwards) and the path we took carrying the payload back to the car. Note the HV electricity lines! By my calculation the TARDIS was 37 metres above the ground when it crossed them &#8230;.<\/p>\n<p><a href=\"http:\/\/www.daveakerman.com\/?attachment_id=907\" rel=\"attachment wp-att-907\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-907\" alt=\"3\" src=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/3-1024x756.png\" width=\"640\" height=\"472\" srcset=\"http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/3-1024x756.png 1024w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/3-300x221.png 300w, http:\/\/www.daveakerman.com\/wp-content\/uploads\/2013\/03\/3.png 1091w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>And here&#8217;s the video that the Pi streamed live as Anthony and I recovered it!<\/p>\n<p><iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"http:\/\/www.youtube.com\/embed\/XZW8g8bwmiM\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>That will be the last flight of that particular Raspberry PI &#8211; after 4 successful flights I think this is a good time to retire it! My next Pi flight will be a model A with the new Pi camera. Watch this space!<\/p>\n<p><em>Thanks go to Anthony Stirk for helping with the launch and providing his backup tracker, Alex Eames for recording the launch and preparations, Philip Heron for supplying the SSDV software and recording the landing video stream for me, and the CUSF team for their work on the infrastructure that all us UK HABbers (and some abroad) rely on.<\/em><\/p>\n<p><strong>Stop Press<\/strong> Alex just now put up his <a href=\"http:\/\/raspi.tv\/2013\/raspberry-pi-in-near-space-35-5km-from-earth\">story<\/a> and <a href=\"http:\/\/www.youtube.com\/watch?feature=player_embedded&#038;v=IM_DLgJEa0k\">video<\/a>.  Thanks Alex!<\/p>\n<p><em>Links:<\/p>\n<p><a href=\"http:\/\/www.flickr.com\/photos\/daveake\/sets\/72157632884281809\/\">Flickr Set 1 from the flight<\/a><\/p>\n<p><a href=\"http:\/\/www.flickr.com\/photos\/daveake\/sets\/72157632884272509\/\">Flickr Set 2 from the flight<\/a><\/p>\n<p><a href=\"http:\/\/www.theregister.co.uk\/2013\/03\/01\/raspberry_pi_tardis\/\">Article in The Register<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi in a TARDIS takes stratospheric self-portrait For my fourth Raspberry PI weather balloon flight I wanted to pack as much into the flight as I could, making full use of what the Pi has to offer: 3G link for video and backup telemetry Send telemetry over 3G from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts\/873"}],"collection":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=873"}],"version-history":[{"count":34,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts\/873\/revisions"}],"predecessor-version":[{"id":923,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=\/wp\/v2\/posts\/873\/revisions\/923"}],"wp:attachment":[{"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=873"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.daveakerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}