Raspberry Pi Blog

This is the official Raspberry Pi blog for news and updates from the Raspberry Pi Foundation, education initiatives, community projects and more!

The MagPi #39 is out now!

The November issue of the official Raspberry Pi magazine, The MagPi, is available now in print and digital. This month our cover feature is all about amazing Raspberry Pi projects that can be made in moments.

click to see the latest issue in all its geeky glory

Time isn’t always on our side, so it’s great to have a quick-fire project you can fire up when you have a spare moment.

They’re also handy to keep the attention of younger hackers, whose making adventures are that much more gratifying when they can achieve something amazing in short amount of time.

Highlights from #39: 

  • 30-Minute projects
  • Introducing GPIO Zero
  • Time-lapse photography
  • Pixel art with the Sense HAT
  • Eight-pageTouchscreen Display special
  • and much more!

Embiggen for a full tour of the latest issue

We’ve got lots of inspiring projects and features for for you to get your teeth into this month, including a whopping eight-page special dedicated to the official Touchscreen Display.

We also speak to the Foundation’s new CEO, Philip Colligan, about what 2016 has in store, while we also review the latest updates to Raspbian and Scratch. Elsewhere we chat with Ben Nuttall about GPIO ZERO to find out exactly how it’s lowering the barrier to entry for physical computing projects at home and in schools. Exciting stuff!

FREE CREATIVE COMMONS DOWNLOAD
As always you can download your copy of The MagPi completely free. Grab it straight from the front page of The MagPi’s new-look website.

BUY IN-STORE
If you want something more tangible to prop-up on your desk while you code, you’ll be glad to hear you can get the print edition in more stores than ever:

WHSmith
Tesco
Sainsbury’s
And all good newsagents

US readers can grab the previous issue from either Barnes & Noble or Micro Center.

Don’t forget that – like sales of the Raspberry Pi itself – all proceeds from the print and digital editions of the magazine go to help the Foundation achieve its charitable goals.

ORDER ONLINE
Rather shop online? The Raspberry Pi Swag Store has copies available – better grab one before it’s sold out!

Swag Store MagPi

Grab a copy online today and have it delivered anywhere in the world!

UK, US AND WORLDWIDE SUBSCRIPTIONS
We’ve updated our subscriptions offerings. Save up to 25% on the cover price with our various subscription options.

Subscribe today for as little as £12.99 / $37.50

Finally, we’ve just launched an eBook! It’s the first of a new The MagPi Essentials range that we’ll be expanding throughout 2016.

It’s currently available as a free download and as a digital edition on The MagPi app for Android and Apple devices. If you’d like to see this as a cute little A5 pocket book – let us know!

It’s dedicated to helping you learn the command line and features all the amazing tutorials from Richard Smedley’s excellent series, plus two bonus chapters you’ll only find the book.

Learn to love the command line – click the pic for more details

20 Comments

Teach, learn and make with our free learning resources

Part of the background to my day-to-day life at work is the steady flow of emails showing me which of our learning resources my colleagues in Raspberry Pi’s education team are developing, discussing or updating at the moment. We use GitHub to manage our content and collaborate, and I get notifications that tell me about new resources, discussions around existing ones, and suggestions for improvements made by members of the Raspberry Pi community.

I get a lot of them: alongside their other projects and outreach, James, Dave, Carrie Anne, Clive, Marc and Ben are constantly creating new learning resources and making sure existing resources are up-to-date. You’ll find everything from worksheets to help you get up and running with Raspberry Pi, to physical computing activities to try at home, to whole schemes of work for teachers to use with their students.

Resources – Teach, Learn, and Make with Raspberry Pi

Free resources to teach, learn and make with Raspberry Pi, a tiny and affordable computer. Created by the Raspberry Pi Foundation.

To make it easier to find the kind of resource you want, we’ve grouped our resources under the headings of Teach, Learn and Make. In our Teach resources you’ll find individual lesson plans, complete schemes of work and teachers’ guides, including a teachers’ guide to using Raspberry Pi in the classroom to give educators who are new to the device the information they need to get started.

Resources for teaching

Schemes of work, lesson plans and teachers’ guides in our resources for teaching

Our Learn resources guide learners through independent activities. One of the newest is Gravity Simulator, in which students learn about the effects of gravity and how to simulate them in Scratch with Mooncake, the official Raspberry Pi Foundation Cat. It’s one of a number of resources that support activities linked to British ESA Astronaut Tim Peake’s upcoming mission aboard the International Space Station.

Gravity simulator, one of Raspberry Pi's free learning resources

Mooncake the Raspberry Pi Cat discovers what she weighs on alien worlds

Our Make resources support physical computing projects. They range from “getting started” activities for beginners and more in-depth standalone projects to fairly substantial, satisfying builds that you might complete over several sessions. One of these resources is a guide to making a Raspberry Pi marble maze using a Sense HAT. A Sense HAT is at the heart of each of the two Astro Pi flight units that will soon be flying to the International Space Station; on board the ISS its gyroscope, accelerometer and magnetometer will be able to detect how the station is moving, and this activity uses the same sensors to work out which way a virtual marble will roll.

Illustration of pitch, roll and yaw in the "Sense HAT marble maze" learning resource

A Raspberry Pi and a Sense HAT can detect pitch, roll and yaw to simulate a marble maze

Millions of educators worldwide use TES Resources to access materials to support their classroom practice, and now they can find a selection of Raspberry Pi Foundation resources on TES too, as PDFs (registration with TES is required to download them).

All our learning resources are available for free under a Creative Commons licence, so you can print, copy, share, modify and do anything you like with the materials. You can also use GitHub to suggest changes to help us improve them – our guide to getting started with GitHub is written particularly with educators in mind. Check them out, share them and tell us what you like best!

4 Comments

Raspberry Pi projects for Halloween 2015

It’s Halloween this Saturday, and people have been showing off their spooky Raspberry Pi projects as they prepare to startle the heck out of friends, neighbours and fellow party-goers. We thought we’d share a few of our favourites so far. We’ve also got some great suggestions for you if you don’t yet have a petrifying project planned!

Anyone visiting David Pride‘s house on Saturday will at least get a warning, laden with menace, before this horrible pumpkin comes to cackling, glaring life:

Pumpkin Pi – complete

Proximity sensor, led flip flop circuit – and of course a Raspberry Pi

Robert Wiltshire is involved with the Code Club at Perranporth School in Cornwall, where children prepared this ghastly creation for their Halloween Disco:

Spooky Halloween skull by Perranporth Code Club

A teacher at Nicholas Chamberlaine School, a secondary school in Warwickshire, showed off a Minecraft pumpkin with flashing features. It’s sweet rather than scary, but still superb.

ncscomputing on Twitter

@TheMagP1 pic.twitter.com/lTcg6BJlZU

Of course, the October 2015 issue of The MagPi magazine is full of Pi-powered ideas for scaring your friends. Mike’s Pi Bakery this month brings you a tutorial for Mulder, a glowing, moving skull, and Mike has kindly prepared a video of this incredibly creepy build.

Meet Mulder

A Mike’s Pi Bakery Project from the MagPi Number 38 – October 2015, build in in time for Halloween.

If it’s more ideas than instructions you’re after, look in the Features pages for a haunting selection of Halloween projects. For spine-tingling sound effects, you could give the ultrasonic theremin a go.

Our free online resources include plenty of beginner-friendly projects, and some that mightn’t seem particularly timely can easily be adapted to suit the season. Our Santa Detector resource, for example, shows you how to use a low-cost infra-red sensor with a Scratch program to catch Santa delivering your presents and sound an alarm, but you could install it in your porch to startle trick-or-treaters with scary sounds when they approach your door. And instead of using our Spinning Flower Wheel worksheet to make a summery garden with flowers and bees, you could choose spiders, ghouls, bats and beasties.

Spooky pipe-cleaner bugs and beasties

Spinning flower wheel? Try spinning bugs and beasties | Photo by Wendy Piersall / CC BY 2.0

Lighting up a pumpkin lantern (or, if you’re having trouble getting hold of a pumpkin, a swede or turnip) must be one of the quickest, simplest Halloween Raspberry Pi projects. Fourteen-year-old Yasmin Bey has just published an excellent, short, tutorial explaining how to control an LED connected to your Pi’s GPIO pins; apart from your Raspberry Pi, you just need an LED, a breadboard, a resistor and a couple of jumper leads. It’s an ideal project for beginners. Yasmin’s code for controlling the LED is only a few lines long, and uses GPIO Zero, a new Python library designed by Raspberry Pi’s Ben Nuttall to make it as easy as possible for beginners to get started with controlling things connected to the GPIO pins.

LED-lit pumpkin

LED-lit pumpkin | From a photo by Shannon Ramos / CC BY-SA 2.0

Most UK schools have their half-term holiday this week, and Yasmin is taking advantage of this to work on a Pi-powered haunted house. She’s only just starting her build, but she gave us a sneak peek of her preparations, after she returned from buying “everything in the Halloween section of Poundland”. We’re looking forward to seeing more of her project on Twitter this week.

An appropriately headless Yasmin Bey with the raw ingredients of her Halloween project; we expect the Pi will end up headless as well

An appropriately headless Yasmin Bey with some of the raw ingredients of her Halloween project; we expect the Pi will end up headless as well

What are you planning for your Raspberry Pi this 31 October? Link to your projects in the comments or tweet @Raspberry_Pi – we’ll be sharing our favourites!

3 Comments

Across the United States: Raspberry Jams at Barnes & Noble

Barnes-Noble-Mini-Maker-Faire

For our fans in the United States, we’ve joined up with Barnes & Noble Booksellers and Make: Magazine to host Raspberry Jams at a handful of select Barnes & Noble stores on Saturday November 7th at 2pm. It’s all a part of the Barnes & Noble Mini Maker Faire, which runs at all B&N stores November 6th through 8th.

We’ve recruited community members within the United States to host Jams at the key locations listed below, but if you’d like to join in at a different store that’s closer to you, don’t hesitate to contact your store’s Community Relations Manager to let them know you’d like to participate.

Like all other Jams, you’ll find these Barnes & Noble Mini Maker Faire Jams on our handy Raspberry Jam map:

  • 5604 Bay Street, Emeryville, CA
  • 1217 Caroline Street, Atlanta, GA
  • 5601 Brodie Lane, Austin, TX
  • 800 Boylston Street, Boston, MA
  • 728 Waukegan Road, Deerfield, IL
  • Eton Chagrin Boulevard, Woodmere, OH
  • 9370 Sheridan Blvd, Westminster, CO
  • River Oaks, Houston, TX
  • 1701 Mallory Lane, Brentwood, TN
  • 33 E 17th St, New York, NY
  • 10509 Gravelly Lake Dr. SW, Lakewood, WA
  • 1780 North Woodland Park Drive, Layton, UT
  • 12193 Fair Lakes Promenade Drive, Fairfax, VA
  • 7620 Rivers Avenue, North Charleston, SC
  • Monmouth Mall, 180 NJ-35, Eatontown, NJ
  • 3600 Stevens Creek Blvd, San Jose, CA

While you’re there, keep an eye out for The MagPi on the newsstand! You can find more details about The Barnes & Noble Mini Maker Faire here.

25 Comments

Weather Station for Schools: project update

Back in February Dave Honess blogged about our Weather Station Project for schools. Here’s what we’ve been up to since.

The main news is that we have selected the 1000 schools worldwide who will be receiving the kit and the hardware side is done, dusted and ready to go. Here’s what the lucky schools will be getting:

Sam Alder's cracking box sleeve. [Credit: credit @ItsAll_Geek2Me]

Sam Alder’s cracking box sleeve. [Credit: @ItsAll_Geek2Me]

Inside is everything that you need to build a Pi controlled weather station:

contents

The hardware is only part of the picture though and malicious logistics lurk in every aspect. Things that seem easy rarely are—even something like getting the colours on the logo correct can be a pain. The packaging in particular caused some snags: getting all of those little bags into a good looking box might seem humdrum but it’s not trivial. Sam “Carton Mage” Alder has worked his magic on the quick start leaflet and the sleeve for the box.

leaflet snap

The other three cuppa problem was the enclosure for the hardware. This seems simple: get a waterproof box, jam in your gubbins and gizmos, and Bob is your Pakamac-wearing uncle. The problem is that self-build kits are not finished consumer products and it’s simply not possible to allow for every configuration of set-up and siting of the unit, so we’ve tried to make it as flexible as possible. The two enclosures (one for the Pi and HAT and one for the air sensor) are IP55 rated, which means that they are protected against water jets (from a 6.3mm nozzle in case you were wondering). But this is no good if the wires into the box are not sealed properly and I’ve spent more time playing with glands and bushings (missus!) than I care to think about.

Never pass up an opportunity to fiddle with glands and bushings

Never pass up an opportunity to fiddle with glands and bushings

The Ethernet cable—which as well as handling data also delivers power—was especially irksome but we think we’ve come up with some decent solutions. The team at CPC, who are handling the build and packaging, have been key in this, helping us to select and test solutions and dealing with my endless “How about if we try this?” emails.

On the software side, Oracle are putting the final touches to the database that will allow schools to share their data and to access data from Raspberry Pi weather stations around the world. There’s huge scope here for learning how to collect, analyse and visualise large data sets, increasingly useful skills in this age of data. As well as educational resources for this we’ll have lesson plans and worksheets for using the weather station locally, and for exploring and learning computing in this context.

Weather_Station

So when will the kits ship? Soon. Probably November. In retrospect the hardware side of it was just the start—this is a large scale and ongoing project for us and we have plans to get the stations into many more schools once the initial 1000 are shipped. We also hope that the kits will go on sale at some point and we’ll let you know as and when this happens. Keep an eye out for updates here, Twitter and other social media.

49 Comments

A creative person’s guide to computing

This year, for the first time, we are running the Raspberry Pi Creative Technologists programme, mentoring a small group of young people aged 16-21 years as they explore using digital technology to enhance their creative pursuits. One of our creative technologists, 21-year-old writer Hannah Burdett, recently published today’s post on her own blog, and when we saw it we wanted to show it to our audience as well: it’s a wonderful and useful piece about what it’s like to enter the world of digital making as a beginner, and why she hopes you’ll want to.

A cartoon sketch of Hannah Burdett, Raspberry Pi Creative Technologist

Hannah Burdett, Raspberry Pi Creative Technologist, by Sam Alder

It’s been six months since I started with Raspberry Pi. To begin with, I was terrified and felt like I didn’t belong, but I’ve reached a point where I’m truly enjoying what I’m learning. People think of arts and science/technology as polar opposites, but I’ve always thought that the two can be merged in diverse and constructive ways. Thankfully, Raspberry Pi think so too, and have let me mess around with ways to do this. My hope is that in the future more creative types will utilise technology in their work, and it will be beautiful. So today I’m sharing a few tips to help you get started. Of course, I’m nowhere near an expert, but I do know exactly what it’s like to enter the world of technology as an outsider and beginner.

Treat learning to code like learning a language

There is a good reason why it’s called a coding language. It has grammatical rules to structure what you’re inputting: for example, when to use brackets and quotation marks and full stops and capitals. Coding is just as vast as any other language, and there are dozens of different coding languages to choose from, each with their own idiosyncrasies. And it takes just as long to learn. You can’t expect to pick it up without using it frequently; practice is key. You need to devote time to learning the rules, but there’s plenty of opportunity to get help.

"Python for Kids" by Jason Briggs

I would recommend the book Python for Kids by Jason Briggs. It is designed for children, but suck it up and it’ll prove it be a useful tool. I use it as a reference guide, dipping in and out, but not necessarily reading it from A to Z. There are also free online courses, and an infinite amount of documentation to learn from.

It’s more creative than you think

If the thought of learning a language makes you want to cry, then don’t despair. Just as creative writers use language to create complex and thought-provoking stories, so does code. When constructed correctly, code forms a kind of linear narrative, telling the computer what happens and when, just like how stories inform the reader. Something equally creative and varied happens too, whether that’s a video game or a dancing robot. It also requires a lot of editing.

Light-up play dough models at Maker Faire UK 2009

Digital making with play dough: light-up models at an earlier Maker Faire UK, an extremely creative event | Photo by Mitch Altman / CC BY-SA 2.0

What’s more, the community of digital makers, hackers and programmers includes lots of people who are just as imaginative as writers in traditional media. When I was at Maker Faire UK, I was inspired by how creative the makers were. The exhibits were full of people who had started out with a question: ‘I wonder what happens when I do this?’ They put two things together (or five, or six), and if it explodes then it’s all the more fun (except when you have to buy another part to replace it; oh well). It’s an open, free way of exploring and creating. The key is to not limit your mind, not to set goals (although tempting) but to focus on experimenting with pushing the boundaries of the technology.

Prepare to change your mindset, and don’t be disappointed when it doesn’t work

I say when because, inevitably, it won’t work. Even if you’re following guidelines or instructions, eventually something is bound to go wrong. I struggled a lot in the beginning because I didn’t know how to make the tech do what I wanted it to, and thought I was a failure. I’ve got into the habit now of thinking, ‘Okay, why didn’t it do that?’ and ‘It’s interesting that it’s done x instead of y’. Let the technology surprise you.

A quote from Hannah, "Things will NOT go as planned..."

This is not Hannah’s handwriting; hers is probably much nicer

Part of learning is accepting that maybe you won’t be good at it straight away, or you won’t pick it up naturally. A lot of people, especially young women, feel a pressure to be good straight away. Don’t worry about other people’s expectations, just have fun with it. You may learn more slowly than others (I certainly do!) and that is perfectly okay. This is why an open mind is so useful. I’ve had to completely change my mindset over the past few months, but I’m glad I did. Although writing is creative, I’ve been doing it so long that I have a process and routine. I know what I want to write when I begin; I have set intentions and goals, and I set time limits. When it comes to programming, this mindset does not work at all.

Things will not go as you planned. Things will break, or you’ll make mistakes, and the outcome is entirely different to what you expected. This can (as it did for me) lead you to feel like you’ve accomplished nothing. The best thing is to have no expectations of yourself other than to learn something, or try something new.

Steal from your heroes and ask for help

This is a statement that often crops up in the literary world, but it applies here too. I mean, don’t literally steal; always give credit when you’ve used someone else’s code, or a tutorial. But it’s often easier to adapt other people’s work rather than make something entirely original. It also integrates you into the community, and creators will often be really pleased to see their work put to use!

Raspberry Pi have loads of online tutorials which are designed for kids, but suitable for all beginners. I have recently been creating mini projects with Scratch, a programming environment that lets you develop interactive narratives and games. It functions like code, but instead of typing, you drag and drop components to build the script. I even published a mini game which you can play yourself!

Screenshot of Balloon Popping, a game written by Hannah in Scratch

Balloon Popping, a game written by Hannah Burdett in Scratch

The best thing about Scratch is that for every project, you can look at the ‘code’ being used. I made my game by finding similar projects and seeing how they work. After doing this for days on end, I got used to the various functions, and now I enjoy throwing bits together and seeing what happens. I’ve spent so much time on Scratch I’ve actually started dreaming in Scratch code!

A screenshot of Hannah's balloon-popping game in action

Hannah’s very playable balloon-popping game, mid-pop

Scratch also has a great community, and users will always be happy to reply to forum posts if you get stuck. This leads me on to asking for help. Do it. Websites like GitHub exist so you can share your code with others, not only so they can use it, but so people can suggest improvements or fix problems. The online community is vast and amazing, so use it!

Remember, if you don’t try you don’t succeed. And I’d always prefer to try and fail than never do anything at all. If you’d like to talk more about this tech world, please feel free to contact me.

At the end of the programme, the Raspberry Pi Creative Technologists will be hosting an exhibition in order to showcase our projects: a culmination of a year’s work. If you would like to know more about my project, or would like to attend the exhibition, then keep following my blog for more information. You can also follow me on Twitter.

We’ll also be talking about the creative technologists’ final exhibition here, of course; Hannah is working on a project that lets players journey through a cooperative, interactive story that engages them in working together. We can’t wait to see what she and our other creative technologists make. Most of all, we’d love to see more people who are creative, but who might not usually consider digital technology as something they can use in their work, giving it a try. We think our Make resources are one good place to start.

11 Comments

Astro Pi: Mission Update 7 – Launch Vehicle Changed

Astro_Pi_Logo_WEB-300px

This December, British ESA Astronaut Tim Peake will be taking two specially augmented Raspberry Pis called Astro Pis to the International Space Station (ISS) as part of his six-month mission.

These Astro Pis will be running experimental Python programs written by school-age students; the results will be downloaded back to Earth and made available online for all to see.

Here’s Tim at the European Astronaut Centre in Germany just after completing his training on our payload.

Tim Peake on Twitter

“Fully qualified on @astro_pi. Huge fun today trying out the amazing apps coded by YOU! #Principia #science”

Cargo Overbooking

The plan thus far had been for the Astro Pi payload to launch into space aboard the Soyuz 45S, the same rocket Tim will use to get into space on December 15th. A fortnight ago, though, the UK Space Agency warned us that there had been an overbooking of cargo on the flight, and that we might be bumped off.

We’re an educational payload and understandably of lower priority than important supplies like food and water. Our weight is 1.3 kg and the Soyuz rocket has capacity for only 60 kg of cargo after the crew and all of their luggage is on board. Other options for launching us were SpaceX 8 in January or Progress 63P in February.

Before we had time to allow ourselves to feel any disappointment over the possibility of not flying with Tim, though, the folks over at ESA got us onto an earlier flight with a planned launch date of December 3rd. The payload will now arrive at the ISS a few days before Tim does, so we’ll be there from the start after all.

New launch vehicle

We’re going to launch on Orbital Sciences’ Cygnus cargo freighter on its fourth mission to the ISS. The planned launch date is December 3rd at 22:48 GMT. Coverage will be via an internet live stream only.

OA-4 Mission Overview

Frank DeMauro Vice President of Orbital ATK’s Human Space Systems Programs provides an overview of the OA-4 mission to deliver cargo to the International Space Station.

Orbital Sciences has a contract with NASA to provide commercial cargo resupply services (CRS) to the ISS. They developed the Antares rocket, a medium class launch system, to carry the Cygnus into space.

antares

The Antares rocket. Image credit: Orbital Sciences

As a reminder to everyone that nothing in space flight is guaranteed, the last Antares rocket exploded moments after lift off.

Orbital Sciences Antares Rocket Launch Failure

1080p HD

This was found to have been caused by a problem with the Antares rocket system itself; while it undergoes a long overhaul, Orbital Sciences have contracted United Launch Alliance to conduct their next cargo resupply mission using the older Atlas V rocket.

atlas_v

The Atlas V rocket. Image credit: United Launch Alliance

This is a launch configuration that hasn’t been used before (an Atlas V with the Cygnus spacecraft mounted on top) and which may not be used again, since the Antares launch system should be fixed by next year.

Obviously this adds an element of excitement to the situation so be sure to tune in online to watch the launch. We expect there to be two live streams providing coverage; one will be NASA TV and the other will be provided by Orbital Sciences themselves.

If the worst should happen, we have the contingency plan of promoting two of the Astro Pi engineering models to flight status: we made eight of them, two of which are flying into space leaving six ground units. ESA are committed to Astro Pi making it to the ISS and fulfilling our educational requirements. You can be sure that, whatever happens, it will fly in time for Tim to execute all the experiments.

So please don’t lose any sleep!

IMG_2778

An Astro Pi ground unit at ESA EAC in Germany. Image credit: ESA

11 Comments

Disabling drones with a Raspberry rifle

About a million of you emailed us over the weekend about this new implementation of the Raspberry Pi, in a rifle-shaped device which the US Army’s Cyber Institute appears to have made in order to shoot down domestic drones for…a bit of a lark.

No Title

No Description

What you’re seeing here is a Pi and a dirty great Wi-Fi antenna, which the fella in camouflage is using to trigger a known exploit in a commercial Parrot quadrotor.

In an interview with Popular Mechanics, Captain Brent Chapman explains that the form factor is useful in showing non-technical senior officers what cyber-weaponry is useful for (he hasn’t just made it gun-shaped because gun-shaped things are what armies do). The shape of this setup makes it easy to demonstrate that this isn’t impenetrable, hard-to-understand technology: it’s something you recognise. A thing you point at something and shoot with.

 

In the video above, the cyber-rifle is being used to demonstrate how to remotely breach the security of a locked bunker. (This bunker is much cuter and less full of deadly stuff than the ones I imagine when I read the news.)

Captain Chapman says:

“It was something that we built in order to illustrate the power of enabling the soldiers at the tactical level to ‘make’ in support of a mission. It’s an idea we call tactical making, or expeditionary making.”

This really isn’t a use of Raspberry Pi that we envisioned when we were designing the thing. Nor were the cubesats, the Antarctic penguin monitoring systems or the Radio 4 time machine. We await the next surprise with interest.

41 Comments

Compute Module CubeSats

CubeSats are a type of miniature satellite that are around the size of a shoe box and made from easily available, non-aerospace, parts. Because CubeSats use widely supported technologies, you no longer have to be a government or a space corporation to send a satellite into orbit: building a CubeSat is within the reach of individuals, universities and other organisations. The small size of the Raspberry Pi Compute Module makes it suitable for this very exciting application, and today we have a guest blog post from the University of Surrey to tell us more.

The Surrey Space Centre, Chris Bridges and CubeSats

Dr Chris Bridges leads the spacecraft On-Board Data Handling group in the Surrey Space Centre at the University of Surrey. He researches and teaches computer hardware and software to provide reliable computer processing in the harsh radiation environment of space. Chris is also an amateur radio enthusiast, with a passion for hacking almost any electronics for space and telling everyone that the sky is most definitely not the limit. He was involved at the beginning of the Astro Pi project back in 2014, since he has been working on numerous space flight projects involving Raspberry Pi devices and has been doing thermal and vacuum tests on them with his students.

Dr Chris Bridges

Dr Chris Bridges

Together with Surrey Satellite Technology Ltd, he designed, built, programmed, launched, and operated the UK’s first CubeSat, called STRaND1. The STRaND1 mission aimed to train new researchers and students as well as to launch novel payloads aboard CubeSats, including a smartphone. The team is proud of the enthusiastic coverage that the BBC and New Scientist magazine gave to the world’s first ‘phone-sat’!

 STRaND-1 CubeSat

STRaND-1 flight ready February 2013 with Shaun Kenyon, Dr Peter Shaw, Dr Chris Bridges | Photo courtesy of Surrey Satellite Technology Ltd

Raspberry Pi in space: detecting other CubeSats

Space is a harsh environment where it’s difficult to ensure that a computer will operate reliably for an extended period of time. Cosmic radiation interferes with transistors and can bit-flip computer memory (change the state of a single binary bit from a 0 to a 1 or from a 1 to a 0) causing what’s known as a single event upset crash.

Solving this is traditionally highly expensive, but using commercial off-the-shelf technologies has been proven as an effective method in reducing these costs. Being small, powerful, and low-cost, with large community support, Raspberry Pis are an obvious candidate here, provided that they can operate reliably in space. Chris says,

CubeSats and nanosatellites are a great educational tool used around the world – for students, staff, and researchers to learn about the Earth, and explore further into our solar system. For me, the new tech I’d like to try out is towards better computing parts – the Raspberry Pi fits the bill here.

Led by Professor Craig Underwood at the Surrey Space Centre, Chris is working on the on-board computer for the STRaND2 and AAReST CubeSat missions, along with CalTech and the NASA Jet Propulsion Laboratory in the US. These CubeSat missions require the processing and detection of other CubeSats in flight for rendezvous and docking experiments, as well as for collision avoidance manoeuvres.

These kinds of CubeSats employ light detection and ranging technologies (LIDAR) as a way to measure distance to nearby objects in space. This works by illuminating the target with a laser beam and then analysing the reflected light to calculate how far away the target is.

Postgrad student Richard Duke achieved this with a Raspberry Pi, an ordinary Microsoft Kinect and some custom Linux drivers that he rewrote himself. He now works at Surrey Space Centre as a software engineer. Enthusiasts can find detailed information in Craig and Chris’ paper on AAReST published in Acta Astronautica and their paper on STRaND2 at the IEEE/AIAA Aerospace Conference.

image002

AAReST concept demonstrating the launch of four CubeSats (left), initial configuration (middle) and secondary configuration (right) after successful in-flight docking manoeuvres.

Richard says,

The project allowed me to gain real-world technical knowledge into Linux hardware drivers and the building of a full LIDAR sensor package. Using low-cost but highly capable components such as the Raspberry Pi in spaceflight is a hugely exciting area of technology. It’s been fantastic to be a part of developing real space projects as part of my Masters degree.

Here is a video of Richard’s work, showing a Raspberry Pi Model B controlling a CubeSat on a frictionless test platform. It’s sending the LIDAR information over WiFi back to a Windows laptop which is processing it. The detection algorithm autonomously obtains the range and pose of the target/obstacle (the cardboard Kinect box) sixteen times every second. You can even hear the compressed air propulsion from the CubeSat firing as it gets close to the target in order to avoid a collision.

Raspberry Pi + SoftKinectic + WiFi + Battery Pack = Satellite LIDAR

Towards the AAResT mission with CalTech and NASA JPL, MSc student Richard Duke shows us his developments for soft and hard real-time rendezvous and docking on the granite table for new close proximity operations. It shows the RPi B+ routing the LIDAR information over WiFi TCP back to be plotted.

IMG_20140725_140704

A Model B Raspberry Pi sits at the top of this LIDAR CubeSat stack

The Raspberry Pi Compute Module and reliability through redundancy

One way of making sure that a Raspberry Pi can operate reliably in space is through redundancy: if multiple Raspberry Pis are used, then if one of them should fail, another can take over (the same system used on the space shuttle). Using this method, students at the Surrey Space Centre have developed several on-board computer systems.

The smallest size of the popular CubeSat format measures just 10x10x10cm (known as 1U), and the largest 10x10x34cm (3U). As physical space is at a premium inside a CubeSat, undergraduate Oliver Launchbury-Clark developed a new on-board computer specifically for the AAReST CubeSat mission. Designed in KiCad (an open source PCB design tool), Oliver’s board is PC/104-compliant and features two Raspberry Pi Compute Modules and an MSP430 microcontroller to provide some ultra-low power functionality.

Raspberry Pi Compute Module, as used in CubeSats

The Compute Module contains the guts of a Raspberry Pi (the BCM2835 processor and 512MByte of RAM) as well as a 4GByte eMMC Flash device (which is the equivalent of the SD card in the Pi). This is all integrated onto a small 67.6x30mm board which fits into a standard DDR2 SODIMM connector (the same type of connector as that used for laptop memory).

The Raspberry Pis kindle an interest in space, programming and engineering in general by providing an accessible method for students of any age to have their programs run in space.

CubeSat on-board computer, featuring two Raspberry Pi Compute Modules

CubeSat on-board computer, featuring two Raspberry Pi Compute Modules

CubeSats: widening access to space

Building CubeSats is just as hard as building a full satellite – but being able to use the latest technologies that are widely supported means that access is no longer restricted to government space programmes or large space corporations. Now, universities and private individuals can undertake these ambitious projects too.

Craig and Chris visited Caltech in Pasadena USA and got a chance to visit the NASA Jet Propulsion Laboratory in September 2015. Chris writes,

It’s a truly inspiring place – and we now need to build and work on the software to meet all the mission requirements.

IMG_20150915_103136

Craig and Chris at NASA Jet Propulsion Laboratory

At the SmallSat Conference in Utah, it was announced that the AAReST mission is planned for launch in 2018 – just one of the many CubeSat missions NASA is working on.

The tweet below shows different CubeSat missions (rows) and when they were/are planned to fly (columns). For more information go here.

Chris Brunskill on Twitter

Cubesat business worth $100m to @NASAJPL. 17 missions planned through to 2018 #SpaceMissionUK #SmallSat15 pic.twitter.com/sWSdH73tlZ

Many thanks to the Raspberry Pi Foundation for donating Pis and a Compute Module to begin all this development. Chris will be looking for more Surrey students to get involved to create new software chains with US partners – so feel free to get in touch with him to help develop their line of CubeSats!

11 Comments

Skycademy – Balloons Everywhere!

It’s been a while since we blogged about Skycademy, the High Altitude Ballooning (HAB) CPD event we ran back in August. However, six weeks on, we have a lot to talk about!

Skycademy CPD – August

We started back in February with the idea that we’d like to train 24 educators to launch a HAB flight with their students. We wanted to engage and inspire those that attended and through them reach young people across the UK and set them the challenge of reaching near space.

Here’s a short (and, we think, appropriately dramatic) video to give you a flavour of the three days.

Skycademy

This is “Skycademy” by Raspberry Pi Foundation on Vimeo, the home for high quality videos and the people who love them.

During their time with us our educators received some intensive training from both Dave Akerman and myself, and in teams were provided with all the kit they’d need for their flight. The plan was for each of our four teams to launch and recover a flight the following day.

Leading up to the day we were a little nervous. With strong easterly winds, there was a high risk of us losing payloads – if we were even able to get them off the ground!

James Robinson on Twitter

Come on nearly there, bit more west would be great! #skycademy pic.twitter.com/yUwmRAb4DU

However, thanks to an slight easing of the weather conditions and us finding a more westerly launch site, we were thankfully able to launch five flights in quick succession, starting with a demo launch by Dave and me. We packed our flight with a GoPro camera to capture some amazing footage.

Richard Hayler ☀ on Twitter

First balloon away! #skycademy pic.twitter.com/LbmrhjUhMV

David Akerman M0RPI on Twitter

Quick take-off from the #skycademy launch pads pic.twitter.com/2SMNJYH0Q9

Almost as soon as we’d released our balloon, the teams quickly got to work readying their flights. We (like the balloons) were blown away by the confidence on the teams; the first two teams were ready so quickly that we launched them simultaneously.

Andy Batey on Twitter

Simultaneous balloon launch #skycademy pic.twitter.com/ibcTWUvxAe

Something we were a little nervous about doing again….

Teams then leapt into their cars and sped away to intercept their payload at their predicted landing site. Back at HQ we watched with equal amounts of excitement and anxiety as our first-time HAB trainees gave chase!

We received a whole host of amazing images from our flights as they rose to 33km

Giving our starting point of being concerned about whether launches would be possible, we were over the moon to launch all five payloads and recover…four.

Our penultimate payload, RPF-A2, was sadly under-filled with helium, which, whilst giving it a nice gentle climb to an impressive 32km, also extended its flight path out to sea. We’re hoping that one day it might be washed up on a beach and returned to us.

Helen Lynn on Twitter

Nnnoooooooooo #skycademy pic.twitter.com/tXzN6v5bjD

Steven Jenkinson on Twitter

RIP #TeamAlto #skycademy Lost at sea :( Raiding a toast… pic.twitter.com/SZBXRBM07F

Our final day saw our teams tasked with evaluating their first launch and planning their next. Over the course of the next year we will be support and funding each teacher to carry out their own independent launch with young people back in their schools and clubs.

We were so impressed by their presentations, with ideas for student engagement, plans for testing, kite flights, collaborative launches and more.

David Akerman M0RPI on Twitter

Watching #skycademy presentations pic.twitter.com/UuyIhNFmnn

We are incredibly proud to have certified our first Skycademy cohort, and are excited to see what they accomplish over the next year.

jonathanfurness on Twitter

I’ve passed #Skycademy !! Special thanks to @daveake @jrobinson_uk & all at @Raspberry_Pi for a brilliant HAB course. pic.twitter.com/b3KxbH95UI

If you want to find out more about our Skycademy CPD event, then you should check out the following:

  • Visit Twitter and look back over our #skycademy hashtag
  • Richard Hayler has written up a blog post about his experience
  • Nic Hughes has also written about Skycademy in his blog
  • You can hear all about it in a piece that the BBC’s The Naked Scientists recorded about the changing nature of science education.

Pycon UK Launches

A few weeks after our Skycademy event, the Raspberry Pi Education Team attended Pycon UK in Coventry, where we met up with lots of our Certified Educators and several of our Skycademy graduates. We’ve previously blogged about our Pycon activities, but it’s worth talking a little more about the flights we launched there.

On the kids’ day, a group of our Skycademy cohort launched an independent flight from the nearby National Space Centre (which is awesome, btw). They carried out their launch like seasoned pros, and chased down their balloon, recovering it a few hours later.

The following day, Marc and I launched the first Sense HAT on a HAB flight, again from the National Space Centre.

BensRpi on Twitter

Good to see #PyConUk PyCon1 Balloon is up and away. @andybateypi Track it here http://tracker.habhub.org/#!mt=roadmap&mz=9&qm=1_day&mc=52.51372,-0.58792&f=PYCON1 … #skycademy pic.twitter.com/m25WsuiGe7

We had a couple of technical issues on the morning, which meant we struggled to receive data once our flight had taken off. However, the fantastic UKHAS community were on hand as usual to help out and ensure our balloon wasn’t lost. Our flight reached a whopping 36km; along with recorded data using all the Sense HAT sensors resulting in 200,000 lines of data, which I’m yet to analyse.

Thankfully our payload landed 20m from a little single track road, from where we were able to spot it – having narrowly avoided a parachuting centre and some wind turbines.

James Robinson on Twitter

Done! #pyconuk #skycademy #pycon1 #ukhas pic.twitter.com/e4V2OE5sI5

School Launches

Since PyconUK we’re had our first two school launches both in the East Anglia area and on consecutive days. I’ll leave it to them to tell you more about their experience.

Bourne Grammar School – 9th October

On the 9th October, a group of budding computer scientists and systems and control engineers from Bourne Grammar School launched a helium balloon and payload 26km into the air in order to capture incredible images of the earth using a self-programmed Raspberry Pi hardware.

Systems Engineer Team Leader, Iyanu Abioye, told us, “It was our job was to create the housing for the payload which had the camera, the GPS and it would also have the parachute and balloon. The housing for the payload was a polystyrene box with a smaller one as a lid, to keep everything safe. On launch day, Sohayl Tobaria, Marco Lytle and Wojciech Marek held the balloon whilst it was being filled, added the cable ties and cut the balloon from the helium tank.

The computer science team, consisting of Andrew Ellingford, Jacob Wilson, Fabio Valerio and Josiah Gyamfi, had the job of programming two Raspberry Pi computers so that data could be sent and received from space. Andrew explains, “If this job had not have been done right, we would have lost all of our photos, data and the balloon itself. That would have been a rather expensive mistake, so, the pressure was on. At first the task seemed a bit daunting. None of us had much experience with some of the equipment like the LoRa board”, which enabled us to send and receive our data from space. However, working as a team and with the help of Mr Brown (Bourne Grammar School Assistant Headteacher and Digital Strategy & Director ICT), we found solutions to all our technological problems. Not only did we learn a lot about computing, we learnt how to use these skills as a team. In the end, it was great to watch the pictures come through online and track its position in real-time and we are proud to have contributed to this project.”

Students Alex Williams, Ben Rockliffe, Alex Wray and Luc Schoutsen were assigned as part of the chase team. It was their job to track the flight of the balloon using the GPS and radio technology on board. The chase team were then able to receive this data to learn the location, altitude, speed and temperature of the payload.

Back at school the flight analyst team, Holly Brown and Toby Pawlett were able to see the data from the balloon and see an extrapolated flight-plan which predicted where the balloon would eventually land. By calling the chase team on a regular basis, they were able to guide them to the final landing site of the balloon to help ensure a successful recovery.

Talking about the experienced, Holly told us, “We had to make sure the balloon would not land in the sea by making flight-path predictions in the weeks running up to the launch, which included where it would pop and were it would land.  In the days leading up to the launch window, we had to double-check everything to ensure the flight went well and that the weather would be suitable too, without too much wind.

The project seems to have inspired the students. Holly Brown said, “We both thoroughly enjoyed the experience, and hope to participate in any future space missions that are run at school.” The computer science team added, “We are proud to have contributed to this project”. Systems Engineer, Iyanu Abioye told us, “I feel very privileged to have been able to be a part of this and I want to say a huge thanks to Mr Brown and Mr Scott (Head of Curriculum Development for The Raspberry Pi Foundation) for putting this together for us.”

Glebe House School – 10 October

Bill Robinson from the Glebe House School in Hunstanton has written an excellent post on their website which you can read here; it’s full of beautiful images and data that they gathered.

The year ahead

In the next ten months, expect to see a further 20+ launches taking place across the UK, led by educators and their students. If you want to get involved with our Skycademy activities there are several ways you can do so:

  • Follow our launches by checking our #skycademy hashtag and looking out for news about flights. During flights you can track using the habhub tracker
  • Help track our flights. If you’re in (or near) the UK you ought to be able to help receive data from payloads during and help keep tabs on them. To do this you’ll need some kit to build a what’s called “lora gateway”
    • A Raspberry Pi & SD card
    • A Lora Board
    • A suitable aerial
  • All of the above can be found at the HAB Supplies website, and a guide to setting up your gateway can be found here.
  • One of the challenges of launching a HAB flight is finding a suitable location which isn’t too near major airports, has some open space, has easy access and permission from the owner. If you think you might have a suitable site from which to launch, please get in touch.

Finally, getting Skycademy off the ground has been hard work, but a fantastic experience, and I’d like to say a huge thank you to all those individuals and organisations who’ve had a hand in getting us where we are.

Screenshot from 2015-10-12 14:53:45

 

 

 

 

 

8 Comments