The Raspberry Pi in scientific research

The cost implications that come with finding yourself able to buy a computer for $25 are significant for all of us, but they can make a real difference to the way cash-strapped researchers do things. We’re seeing a surprising number of university departments around the world using the Pi for the sort of tasks you’d previously have pointed a PC at, with very gratifying results.

I had email from Lorna, who manages some of our social media, about a video she’d been sent yesterday. “It’s about crabs,” she said. “The seaside kind.” (Just as well, or I wouldn’t have been able to publish it.) David Soriano, who is an Associate Professor of Chemistry at the University of Pittsburgh-Bradford, has been using a webcam controlled by a Pi to monitor fiddler crabs which are being offered thermal polypeptides, rich in the amino acid tyrosine. Tyrosine starts the pathway to melanin pigment production in the crab, and David’s watching for colour changes that result from it. This is a long video, at 15 minutes, but it’s very interesting, as David describes the setup and some of the crabs’ behaviour.

David is also studying the effects of certain chemical agents on the American Cockroach with the help of a Pi. Cockroaches are much less cute than fiddler crabs, so I won’t embed the video here, but you can watch it on YouTube.

Meanwhile, over in France at Aix-Marseille Université, Sebastiaan Mathôt, a post-doc at the Laboratoire de Psychologie Cognitive, has been running his graphical experiment builder, OpenSesame, on the Pi.

Eben took part in a university psychology experiment once. The results, somewhat surprisingly, demonstrated that he had a closer relationship with Superman than he did with God.

Sebastiaan is testing the Pi for use in psychological experiments, and has found it very suitable. He found a few milliseconds’ inaccuracy in some measurements, but says:

If I were to set up a low-budget lab, I wouldn’t have any problem with running my behavioral studies on a Pi, since this type of temporal jitter has a negligible impact on statistical power.

You can find out more about the setup on his blog; it’s well worth a read.

The biologists are in on it too: click the picture below to visit the University of St Andrews in Scotland, whose Centre for Biological Diversity have written a Raspberry Pi phylogeny reconstruction program, so students can look at the relationship between phylogeny and evolution on a Pi.

Daniel Barker, from St Andrews, said:

Given a bunch of DNA sequences and some pre-processing, LVB gives you an idea how they are related. If you give it one sequence per species, it gives you an idea of how the species are related. LVB combines an optimality criterion that’s rapid to evaluate and a subtle heuristic search – with the intention of working fast, and reasonably well, with large input.

If you’d like to learn more (undergrad-level biology is a whole new world to a lot of us), Daniel came and posted some more explanation on our forums last year. Come and take a look.

Of course, you don’t need to be at a university to use a Pi to research something. Yesterday I spotted a brand new Twitter feed, fully automated with a Pi, dedicated to capturing an image of the Beijing sky every 15 minutes. Zhe Wu, who works at delicious.com, is collecting the visual data and will be using it to analyse changes in the condition of the city’s air. There’s not a lot of data to process yet; the images only started being collected yesterday. But we’re looking forward to seeing what he does with them. You can view the stream of pictures on Twitter.

Pictures of the Beijing sky today. It’s looking a bit less smoggy today than it did on my last trip!

Back in the UK, we’re seeing some pretty extraordinary research work coming out of schools too. The winners of the 16-18 section of the recent PA Consulting Awards competition, challenging schoolchildren to “make the world a better place” with a Pi, were Alyssa Dayan and Tom Hartley from Westminster School, whose Air Pi we’ve mentioned here before briefly; it’s a very sophisticated, very well implemented project we thought we should talk about some more.

Air Pi is, say Alyssa and Tom, “an automatic air quality & weather monitoring device powered by a Raspberry Pi, capable of displaying, recording and uploading information about temperature, humidity, air pressure, light levels, UV levels, carbon monoxide, nitrogen dioxide and smoke level to the internet.” It’s cheap, it’s modular, it’s open: we love it. Here are Alyssa and Tom, who will explain a bit more about the project and what’s being done with it.

There’s a lot more information on the AirPi website – head over and have a look. You can set one up yourself for as little as £50 (including the Pi), and AirPis are already being used to monitor air quality as far away as India.

Are you using a Pi for research? Let us know in the comments.


Raspberry Pi Competition Results

A few months ago PA Consulting Group ran a competition that challenged young people to make the world a better place using a Raspberry Pi. Last Wednesday I went along to help judge the 14 teams who made it to the final.

Walking into the presentation room there was a real creative buzz as the contestants set up their projects and carried out last minute tweaks. They were excited and nervous and proud to have made something both cool and useful. The room was suffused by the Essence of Awesome that I’d love to put in an atomiser and spray on people who proudly tell me that they don’t see the point of the Raspberry Pi.

It was also great to see mixed and all-girl teams well represented and something that we need to see more of.  The creative side of computing often gets overlooked but was very evident here.  As well as writing code, the contestants had built mini wired-up houses; roving robots; prototypes from Lego; hacked an energy monitor; hooked up RFID sensors to time races and built lots of other practical computing stuff that we think is a powerful hook to get people into computing.

Despite what Hollywood would have us believe, computing isn’t about millions of lines of scrolling, arcane code: it’s about concepts and ideas and it’s about solving problems. The fun bit for me is in taking an idea and making it real. What was once only in your head is now alive and kicking in the real world. Better still, you can easily share your creation with the rest of the world via the Net. It doesn’t get much better than that if you like making things. What all of the entries had in common was a useful idea plus a level of creativity that the Raspberry Pi always seems to encourage.

The winners

8-11 years The Richard Pate School who designed a system to help elderly or disabled people answer the door. A great idea that was well thought out and we were impressed by the teamwork.

12-16 years: Dalriada School with their web-controlled pill dispenser. We were impressed with the professional level of research and prototyping as well as the clever idea.

Dalriada School’s brilliant pill dispenser. Various prototypes (front) are made from Lego and 3d-printed.

16-18 years: Team Meteoros from Westminster School, whose AirPi gathers air quality data and provides a web interface for monitoring and analysis.  The judges loved the teamwork, passion and the potential (each AirPi will feed information to a central server). It was my personal favourite: I’ll be making one with my son to stick in our garden and will blog about this as we put it together. Full build instructions and how to get involved are on their site.

AirPi: senses 99.9% of all known stuff

Open category: UNOP who reverse-engineered the communication protocol of an off the shelf electricity monitor to make better use of the data. I loved the hacker ethos: “this doesn’t do what I want it to so I’m going to make it better.”

These projects were a taster of exactly what the Raspberry Pi Foundation set out to do and we look forward to see more and more of this as people get a chance to mess about on an open and accessible platform. We want what was happening in that room to start happening in schools and clubs and homes everywhere.

So congratulations to the winners, thanks again to PA Consulting for running a quite brilliant competition and a special thanks to all of the young people who showed us yet again that given the opportunity and a Raspberry Pi they will surprise us with their ideas, creativity and tech skills. It was a pleasure to be there.

N.B. I have used the words ‘creative’ and ‘creativity’ a lot. I make no apologies. Get a Raspberry Pi. Get creating. I’m off to pitch Essence of Awesome™ to Chanel.


Wednesday grab bag

Another post in an occasional series on the cool stuff people have been doing with their Pis. Sorry for the lack of a post yesterday – total disorganisation on our part. The event we were at yesterday (at which we won a paperweight proclaiming that Eben is Cambridge’s most influential business person, a rather phallic award, and a box of chocolates – hurray chocolates) went on for longer than we’d expected, we didn’t get to do half the things we were meaning to before the end of the day, and we are reminded that it’s probably getting close to time to hire some admin staff, because this diary is becoming a MONSTER.

First up, some competition news. PA Consulting is sponsoring a series of prizes for UK teams. The task is to make something that will make the world a better place, using a Raspberry Pi – you can enter hardware projects or software projects. There are categories for several different age groups from primary school through to university and beyond; this is a competition that adults can enter too. The schools prizes are a generous £1000; for other categories, prizes range from internships to cash prizes. And the first 200 teams to enter will get a free Raspberry Pi – what could be nicer? Read the rules and enter here.

PA Consulting banner

In other competition news, if you submitted an entry to our own Summer Coding Contest (which we’re judging at the moment – we had a lot of really excellent and complicated entries, so it’ll take us another couple of weeks to get through them all), you should have received an acknowledgement email from us. If you haven’t, please email contests@raspberrypi.org.

Yesterday, we learned about the first ever Raspberry Pi supercomputer. A group at Southampton University led by Professor Simon Cox has, with the help of six-year-old son James Cox (the team’s LEGO specialist), built a supercomputer out of Raspberry Pis, a bajillion cables and an awful lot of LEGO. You can read all about it here, and learn how to make your own. Obviously, this is probably not the most economical way to get bang for your MIPS, but it’s a really lucid way to explain how a supercomputer works, and we love it.

Cox pere et fils, and a supercomputer

Prof Cox and James, and the biggest Bramble we’ve seen yet

The Raspberry Pi isn’t just getting a foothold in UK universities. This morning, I was sent this video from the IIIT in Bangalore, an Indian university specialising in information technology. Students there have been making an informational video about setting up the Raspberry Pi. Over to them:

Meanwhile, back in Europe, Ponnuki has a clever little hack to turn a Kindle into a Raspberry Pi e-ink display. E-ink’s something we’ve been very interested in at the Foundation. This kind of very readable low-power display is a really good option for environments where power hard to come by: battery-powered portable systems, solar-powered systems which need a display in out-of-the-way places, and set-ups in developing countries, can really benefit from this sort of technology. You won’t be able to watch video with these refresh rates, but most desktop-type applications are very usable. Right now, it’s very hard to buy such a display as a consumer – they’re usually part of an e-reader device, and even if you’re lucky enough to be able to source one independently, they’re very expensive. We’re watching the sector with interest, and we’re hoping to see prices come down and availability increase – we’re aware of a few companies who are doing really interesting work in this area. But until then, we rather like Ponnuki’s solution.

Raspberry Pi with Kindle as display

Kindleberry Pi. Click the image for instructions on setting up your own.