{"id":22521,"date":"2016-05-24T12:06:09","date_gmt":"2016-05-24T11:06:09","guid":{"rendered":"https:\/\/www.raspberrypi.org\/?p=22521"},"modified":"2021-09-19T14:00:11","modified_gmt":"2021-09-19T13:00:11","slug":"astro-pi-coding-challenges-update","status":"publish","type":"post","link":"https:\/\/www.raspberrypi.org\/blog\/astro-pi-coding-challenges-update\/","title":{"rendered":"Astro Pi Coding Challenges: a message from Tim Peake"},"content":{"rendered":"
Back in February, we announced<\/a> an extension to the Astro Pi mission in the form of two coding challenges. The first<\/a> required you to write Python Sense HAT code to turn Ed and Izzy<\/a> (the Astro Pi computers) into an MP3 player, so that Tim Peake could plug in his headphones and listen to his music. The second<\/a> required you to code Sonic Pi<\/a> music for Tim to listen to via the MP3 player.<\/p>\n We announced the winners<\/a> in early April. Since then, we’ve been checking your code on flight-equivalent Astro Pi units and going through the official software delivery and deployment process with the European Space Agency<\/a> (ESA).<\/p>\n Crew time is heavily regulated on the ISS. However, because no science or experimentation output is required for this, they allowed us to upload it as a crew care package<\/em> for Tim! We’re very\u00a0grateful to the UK Space Agency<\/a> and ESA for letting us extend the Astro Pi project\u00a0in this way to engage more kids.<\/p>\n The code was uploaded and Tim deployed it onto Ed<\/a> on\u00a0May 15.\u00a0He then recorded this and sent it to us:<\/p>\n https:\/\/vimeo.com\/167392781<\/p>\n In total, there were four winning MP3 players<\/a> and four winning Sonic Pi tunes<\/a>; the audio from the Sonic Pi entries was converted into MP3 format, so that it could be played by the MP3 players. The music heard is called Run to the Stars<\/em>, composed with Sonic Pi by Iris and Joseph Mitchell, who won the 11 years and under age group.<\/p>\n Tim tested all four MP3 players, listened to all four Sonic Pi tunes, and then went on to load more tunes from his own Spacerocks<\/a> collection onto the Astro Pi!<\/p>\n Tim said in an email:<\/p>\n As a side note, I\u2019ve also loaded it with some of my Spacerocks music \u2013 it works just great. I was dubious about the tilt mechanism working well in microgravity, using the accelerometers to change tracks, but it works brilliantly. I tried inputting motion in other axes to test the stability and it was rock solid \u2013 it only worked with the correct motion. Well done to that group!!<\/p><\/blockquote>\n “That group” was Lowena Hull from Portsmouth High School<\/a>,\u00a0whose MP3 player could change tracks by quickly twisting the Astro Pi to the left or right. Good coding, Lowena!<\/p>\n Thanks again to everyone who took part, to our special judges OMD<\/a> and Ilan Eshkeri,<\/a> and especially to Tim Peake, who did this during his time off on a Sunday afternoon last weekend.<\/p>\n","protected":false},"excerpt":{"rendered":" Back in February, we announced an extension to the Astro Pi mission in the form of two coding challenges. The first required you to write Python Sense HAT code to turn Ed and Izzy (the Astro Pi computers) into an MP3 player, so that Tim Peake could plug in his headphones and listen to his…<\/p>\n","protected":false},"author":2385,"featured_media":22540,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,3879,2116],"tags":[194,884,885,1608,1610,1611,1612,1803,2194,2195,2196],"home_page_category":[],"home_page_card_color":[],"class_list":["post-22521","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","category-foundation","category-education","tag-space","tag-sonic-pi","tag-sam-aaron","tag-iss","tag-esa","tag-tim-peake","tag-astro-pi","tag-sense-hat","tag-ilan-eshkeri","tag-omd","tag-ukspace"],"acf":[],"featured_image_src":"https:\/\/www.raspberrypi.org\/app\/uploads\/2016\/05\/astro-pi-mp3-tim-peake.png","author_info":{"display_name":"David Honess","author_link":"https:\/\/www.raspberrypi.org\/blog\/author\/davespice\/"},"yoast_head":"\n
<\/p>\n