Well, that was a very long 30 days for both of us. Thanks to the following people and organizations, and one anonymous donor, for raising £1,500 (plus £236 of gift aid) to support Movember’s work in promoting men’s health.
Alan O’Donohoe PiFace – OpenLX SP Ltd Pimoroni Ltd
Chris Swan TR Computers Ltd
I’ll leave you with a picture of the final result, and the scene in Liz’s and my bathroom at one minute past midnight on Sunday morning.
Enjoying one last moment of moustache-themed goodness.
Have you tried turning it off and on again? Decembeard here we come.
One of the best things about working on Raspberry Pi has been the opportunity to meet groups of people who are trying to bring about the same sort of change in the teaching of other subjects that we’re aiming for in computing. One great example is the computer-based math(s) (CBM) movement, which aims to redefine the teaching of mathematics in schools away from mechanical calculation and towards problem solving. From their website:
The importance of math to jobs, society, and thinking has exploded over the last few decades. Meanwhile, math education is in worldwide crisis—diverging more and more from what’s required by countries, industry, further education… and students.
Computers are key to bridging this chasm: only when they do the calculating is math applicable to hard questions across many contexts. Real-life math has been transformed by computer-based calculation; now mainstream math education needs this fundamental change too.
computerbasedmath.org is the project to perform this reset. We’re building a completely new math curriculum with computer-based computation at its heart, while campaigning at all levels to redefine math education away from historical hand-calculating techniques and toward real-life problem-solving situations that drive high-concept math understanding and experience.
Today, at the CBM education summit in New York, we announced a partnership with Wolfram Research to bundle a free copy of Mathematica and the Wolfram Language into future Raspbian images. We believe this will make the Pi a first-class platform for teaching CBM techniques to children of all ages. As Conrad Wolfram said today: “Coders will be able to use the power of Mathematica’s maths out of the box, not only enriching what they can do but also showing off the power and importance of maths.”
Plotting 3d graphs with Mathematica on Pi
Deeply inappropriate use of the Heaviside step function
Future Raspbian images will ship with the Wolfram Language and Mathematica by default; existing users with at least 600MB of free space on their SD card can install them today by typing:
You’ll find Mathematica in the app launcher under the Education menu.
We’d like to thank the team at Wolfram Research for the enormous amount of effort they’ve put to get the Wolfram Language and Mathematica running well on the Pi. Over the next few months we’ll be running a series of blog posts from Wolfram exploring some of the neat tricks you can get up to with them. This is going to be fun!
We’ve talked before about how the camera board and the Model A are natural bedfellows. Whether you’re shooting a time lapse video or hollowing out a sweet, innocent teddy bear, the 256MB of RAM on the Model A is easily sufficient to run raspistill and raspivid, and the much lower power consumption gives you a lot more battery life for mobile applications. To allow more of you to have a play with this combination, we’ve got together with our partners to offer the two together for the bargain price of $40.
Model A and camera board – best of friends
UK customers can visit element14 or RS Components (who are also offering a $45 bundle with an 4GB SD card); international customers should be able to find the same bundles on their respective national sites.
Update: Rob has now added a “NOOBS Lite” option to the downloads page. NOOBS Lite is a minimal 20MB version of NOOBS with no local OS images; images are downloaded from our repository at install time.
Alex has produced a new Raspbian release, which integrates a number of recent improvements. Along with kernel and firmware updates, highlights include:
Sonic Pi is preinstalled so you can jump right in to learning to program while creating your own music.
Significant performance improvements to Scratch thanks to Tim Rowledge and Ben Avison.
A build of PyPy 2.1 is now included to allow you to try out this high performance Python JIT compiler. See here and here for some background on our work on PyPy.
Python libraries required for interfacing with Pi-Face are preinstalled. Once you enable the SPI kernel module in raspi-config you can leap right in.
The Oracle JDK is preinstalled – see yesterday’s announcement.
Due to the addition of Java, the standalone SD card image now requires at least a 4GB SD card, as with 2GB there’s not enough free space left to be useful. The image itself is sized at 3GB to reduce the time it takes to dd it.
But that’s not all!
Following last week’s successful beta test, NOOBS v1.3 has also been released. This is a major upgrade from v1.2, and realizes many of our ambitions for the system. Highlights include:
The ability to install multiple OSes on a single card.
Support for network installation of OSes from our repository.
Multiple “flavours” of Raspbian, including the ability to boot directly into Scratch.
Improved integration of language, keyboard and display settings between NOOBS and guest operating systems.
See the beta test announcement for an exhaustive feature breakdown. Thanks to Rob, Floris and Gordon for putting this release together, to Liam and Pete at Mythic Beasts for the recent comprehensive overhaul of our image hosting infrastructure, and of course to the 2,000 participants in the beta test program.
One of our longstanding goals has been for Raspberry Pi to ship with a complete set of common programming languages. Until now, there’s been one glaring omission from this list: Java, which by some estimates is the most popular language of all (duck and cover – flamewar incoming).
It’s therefore fantastic to be able to announce that we’ve added the official hard-float Oracle Java 7 JDK to our repository. Oracle Java offers significant performance advantages over OpenJDK on ARM platforms, and will expand the range of Java applications that run well on the Pi.
It’s a long time since I’ve used a hotel room TV without plugging a Pi into it. This trip has been no exception.
All future Raspbian images will ship with Oracle Java by default; existing users can install it by typing:
As you’ve probably noticed, Raspberry Pi is a rather unusual organisation. We have two functions: we make and sell tiny computers, and we promote children’s education. These activities support each other (all the money we raise from selling Raspberry Pis is put straight back into our charitable activities), but are in many ways separate, and it’s a real juggling act directing the two together. Back at the start of the year, we split the engineering and trading activities of the Foundation into a separate, wholly owned trading subsidiary, Raspberry Pi (Trading) Ltd. The Raspberry Pi Foundation continues to run the charitable, educational side of things. Since then, I’ve been overseeing both organisations, but really, the two roles require two people doing them, and of necessity most of my attention has had to be devoted to the trading business.
With that in mind, I’m very pleased to be able to announce that Lance Howarth has joined us as Foundation CEO, and will be taking the lead on the Foundation’s charitable activities.
Lance spent a decade with ARM, latterly as EVP of Marketing and as a VP in the office of the CTO. He’ll be driving forward our educational mission, while I continue as CEO of Raspberry Pi (Trading) – you won’t see any big changes in my interactions with you here, at talks and so on. Hopefully we’ll be able to talk Lance into posting here on occasion too, to let you know what he and the board are up to.
You’re seeing some of the results of those charitable activities I’ve been talking about already – Clive Beale, our most excellent Director of Educational Development, is heading up the work on a growing corpus of free educational materials, running workshops, working with teachers, and with other charities; we’ve committed to take on some more people to work on our educational function too. We’re funding development of projects like Sonic Pi, the music programming environment we blogged about yesterday. We’re putting money into open educational resources, like Scratch and Squeak.
Lance will be growing our engagement with this sort of work, and I hope you’ll join me in welcoming him to the growing Raspberry Pi family. And if you want a lapel pin like his, you’ll find them in the Swag Store!
By now I hope many of you have had a chance to play with NOOBS, the new out of box software we released back at the start of June. Although originally aimed at providing a better experience for newcomers to the Pi, we now reckon NOOBS is the best way for almost everyone to get the most out of their Pi.
With this in mind, from today our partners RS Components and element14 will be offering an optional 8GB NOOBS SD card with every new Model A or Model B Raspberry Pi, for only $5.
The NOOBS SD card in all its glory.
We designed the Pi so that pretty much all the extras you need can be found around the house: there’s not much point in making a $25 computer if your customers need to go out and buy $100 of accessories to use it. Most people can rustle up an old TV, a small SD card and a mobile phone charger. But we’ve noticed that not everybody has access to a large enough card to take advantage of NOOBS, or to a device which can write to SD cards. Fast, pre-programmed, high-capacity cards like the Samsung ones we’re bundling (and which have turned out to be our favourite cards in testing; they’re optimised for random read/write behaviour, unlike many cards which are designed for the large continuous reads and writes that digital cameras make) have been the best-selling Pi accessory offered by our partners since launch, so we’re expecting a lot of you to take us up on this offer.
NOOBS in action.
$5 is an incredible deal for a fast 8GB card. (Just Google how much these cards usually sell for with nothing on them.) We’d like to thank our partners, and our friends at Samsung, xel and Cardwave for pulling out all the stops to make this happen.
A note on SD card nomenclature. The card we’re offering here is rated as Class 4 – in some metrics, Class 4 means slow. This is not the case with this card, which has outperformed many Class 6 and Class 10 cards in our tests – classification seems not to correlate well with random read/write performance. Samsung’s unusual focus on random-access performance on their SD memory means that this card performs very fast and very reliably: we think you’ll be pleasantly surprised!
Back in May, we mentioned that we’d been sponsoring the development of the ARM port of PyPy, the high-performance Python interpreter. Earlier today the team released a first beta of the upcoming 2.1 release, which for the first time adds ARM as an officially supported architecture.
You can see the announcement here, and download binaries for Raspbian here. Give it a spin and let us know what you think.
Update 12 June: Liz continues to recover, but I’m still not letting her near the blog until she stops coughing like that.
Liz has spent most of this week suffering from an affliction picked up in Tokyo. We’re assuming this is flu, as even the worst sake hangover doesn’t usually last this long. I’ve sent her to bed to rest up; normal service will be resumed when she’s feeling better, hopefully early next week.
Update: Daniel’s blog post here provides some more info, including how to install the technology preview on Raspbian today. And Pekka’s blog post here has some very detailed technical information on the implementation of the Weston backend.
If you’re familiar with the Raspberry Pi desktop experience, you’ll have noticed that windows on the desktop can be a bit slower to move around than you’re used to on your PC or laptop. This is because X, the windowing software (or composition protocol) that we use, is not optimised to use the graphics core of the BCM2835, the chip at the heart of the Raspberry Pi. All the work is done by the ARM processor instead, which slows things down and leaves the graphics core twiddling its thumbs. That graphics core is extremely powerful, so we’re working on putting it to good use to fix the issue.
We’ve made the decision to bypass X completely. Over the past few months we’ve been working with our friends at Collabora to implement the open-source Wayland composition protocol on top of the BCM2835 hardware video scaler (HVS). The HVS is a very powerful piece of hardware, with a scaling throughput of 500 megapixels per second and blending throughput of 1 gigapixel per second. It runs independently of the OpenGL ES hardware, so we can continue to render 3d graphics at the full, very fast rate, even while compositing.
Wayland composited desktop with XWayland and native applications.
In comparison to our current X11 desktop environment, Wayland frees the ARM from the burden of stitching together the top level of the composition hierarchy, and allows us to provide some neat features, including non-rectangular windows, fades for windows which don’t have input focus and an Exposé-like scaled window browser (the sort of thing that Mac users will be familiar with). Legacy X applications can still be supported using XWayland. Check out this video from Collabora to see these features in action, and to compare the current state of affairs with the Wayland future. Those non-rectangular shapes? They’re also windows.
We’re still working to improve performance and memory consumption, and don’t expect to be able to replace X11 as our default desktop environment until later in the year, but we will be including a technology preview in our next Raspbian release. Until then, this post on Collabora’s website gives some more background.
As with PyPy, the Raspberry Pi Foundation has funded this work on Wayland; it’s one of the ways we are trying to give back to the open-source community. Obviously, much of the work on this particular project is Raspberry Pi specific, but there’s a large portion of what’s being done, particularly around XWayland and some of the generic effects in Weston, that can be reused on many other platforms.
We’re looking forward to being able to push out the full release in the next few months. We hope you like the look of it!
The camera boards are now available for order! You can buy one from RS Components or from Premier Farnell/Element14. We’ve been very grateful for your patience as we’ve tweaked and refined things; it’d have been good to get the camera board out to you last month, but we wanted your experience to be as good as possible, and we’ve been working on the software right up until last night. Thank you to Gordon and Rob at Raspberry Pi and to Dom Cobley for their work on the firmware (Rob also worked on the documentation); to JamesH for his work on the software; to the Broadcom Cambridge ISP team, particularly David Plowman and Naush Patuck, for volunteering to help with tuning; to Bruce Gentles at Broadcom for his volunteering to help with some of the initial bring-up; to James Adams at Raspberry Pi for running the hardware project, and everybody at Sony Pencoed for making it happen.
Tehzeeb Gunza at OmniVision coordinated things from their end, and helped us with sensor selection. Thanks also to Gert van Loo and Rob Gwynne for their work on the hardware design. (And thank you to Broadcom for letting us take advantage of your team’s willingness to volunteer for us!) This, for the curious, is the camera lab we’ve been borrowing from Broadcom for testing. The mannequin’s name is Veronica. She’s lousy company. The room gives us a calibrated and fixed target to use during tuning; it’s designed to be filled with examples of the sorts of things people tend to take pictures of. Which makes it a kind of creepy place to hang out. Between this and anechoic chambers, we’re getting the full range of testing chambers that give us the shivers.
Click to enlarge. You might be interested to learn that this was snapped with a Nokia N8, which uses an earlier version of the imaging core that’s in the Raspberry Pi (but a different sensor and optics).
For such a small device, this has been an enormous project, and a year-long effort for everybody involved. We’re pretty proud of it: we hope you like it!
How to set up the camera hardware
Please note that the camera can be damaged by static electricity. Before removing the camera from its grey anti-static bag, please make sure you have discharged yourself by touching an earthed object (e.g. a radiator or water tap).
The flex cable inserts into the connector situated between the Ethernet and HDMI ports, with the silver connectors facing the HDMI port. The flex cable connector should be opened by pulling the tabs on the top of the connector upwards then towards the Ethernet port. The flex cable should be inserted firmly into the connector, with care taken not to bend the flex at too acute an angle. The top part of the connector should then be pushed towards the HDMI connector and down, while the flex cable is held in place. (Please view the video above to watch the cable being inserted.)
The camera may come with a small piece of translucent blue plastic film covering the lens. This is only present to protect the lens while it is being mailed to you, and needs to be removed by gently peeling it off.
How to enable camera support in Raspbian
Boot up the Pi and log in. The default username is pi, and the default password is raspberry. (Note: if you have changed these from the default then you will need to supply your own user/password details).
Run the following commands in a terminal to upgrade the Raspberry Pi firmware to the latest version:
sudo apt-get update
Click to enlarge
sudo apt-get upgrade
Click to enlarge
Access the configuration settings for the Pi by running the following command:
Navigate to “camera” and select “enable”.
Click to enlarge
Click to enlarge
Select “Finish” and reboot.
Click to enlarge
How to use the Raspberry Pi camera software
raspivid is a command line application that allows you to capture video with the camera module, while the application raspistill allows you to capture images.
-o or –output specifies the output filename and -t or –timeout specifies the amount of time that the preview will be displayed in milliseconds. Note that this set to 5s by default and that raspistill will capture the final frame of the preview period.
-d or –demo runs the demo mode that will cycle through the various image effects that are available.
Capture an image in jpeg format:
raspistill -o image.jpg
Capture a 5s video in h264 format:
raspivid -o video.h264
Capture a 10s video:
raspivid -o video.h264 -t 10000
Capture a 10s video in demo mode:
raspivid -o video.h264 -t 10000 -d
To see a list of possible options for running raspivid or raspistill, you can run:
While we love all programming languages equally here at the Foundation, we do love Python an awful lot. Most users run their code under the “default” CPython interpreter, but over the last few years the PyPy project has made great strides in producing an highly compatible alternative interpreter with an integrated tracing JIT compiler. On x86 platforms this can improve the performance of some workloads by a factor of ten or more, and the PyPy team are now bringing the same sort of boost to the ARM world.
You can download an Pi-compatible alpha release of PyPy for ARM and see some benchmarks here. We’re proud to have been able to contribute a small amount of funding to the latter stages of this project; over the next few weeks we’ll be running an irregular series highlighting some of the other open source projects that we’ve been contributing to.
In last week’s FreeBSD post, we linked to an early version of Nick Hudson’s NetBSD image for Pi. Nick has now released a new version which fixes a number of USB issues, and we’ve placed it in our mirror system. Of the major BSD-derived operating systems this only leaves OpenBSD (for which we’re not holding our breath).
We’ve been amazed by the variety of software that people have written for, or ported to, the Raspberry Pi. Today, together with our friends at IndieCity and Velocix, we’re launching the Pi Store to make it easier for developers of all ages to share their games, applications, tools and tutorials with the rest of the community. The Pi Store will, we hope, become a one-stop shop for all your Raspberry Pi needs; it’s also an easier way into the Raspberry Pi experience for total beginners, who will find everything they need to get going in one place, for free.
The store runs as an X application under Raspbian, and allows users to download content, and to upload their own content for moderation and release. At launch, we have 23 free titles in the store, ranging from utilities like LibreOffice and Asterisk to classic games like Freeciv and OpenTTD and Raspberry Pi exclusive Iridium Rising. We also have one piece of commercial content: the excellent Storm in a Teacup from Cobra Mobile.
We hope that the Pi Store will provide young people with a way to share their creations with a wider audience, and maybe to a make a little pocket money along the way; as well as offering commercial developers an easy way to get their software seen by the Raspberry Pi community. To start with, we’ll be encouraging the winners of our Summer Programming Contest to upload their entries to the store. Anybody can submit their own project for moderation and release. You can choose whether to make your content free or paid: the store has a tip jar mechanism, so even if you’re not charging (and not charging will get you far more downloads), you still have the opportunity to make some money from your development work if people really like it. You can submit binaries, raw Python code, images, audio or video; and soon you’ll be able to submit Scratch content too. Raspberry Pi-related media of all kinds also has a place in the Pi Store – we’re carrying the MagPi, and hope to be able to host as many of your homebrew tutorials there as possible. We’re hoping to see everything, from hobbyist content to full-blown commercial software.
As ever with things Pi, the community is going to be key to making the Pi Store great. As well as submitting your own projects (and there are tools in there to help you get started, like free sprite packages for budding games developers), you can help us out by reviewing and rating the stuff you download. The Pi Store has a recommendation engine which is tailored to you and your preferences, so the more you review, the better the recommendations we’ll be able to offer you (and other users) will be. If you rate and review constructively, it means the really great content that gets submitted will percolate up to the top, where everyone can see it. If Liz rates games I hate highly (and believe me, she does: most of her favourite PC games have customisable half-elves in them), that’s no problem: the engine reflects your personal taste, and will learn that, displaying a different selection of recommendations for everyone, once enough ratings are in. We’ll also be adding achievements and leaderboards shortly.
Content page for Storm in a Teacup
An updated Raspbian image which includes the Pi Store is available from the downloads page. Raspbian users can add the Pi Store application to their existing install by typing:
We’re very pleased to announce the immediate availability of RISC OS for the Raspberry Pi. First released in 1987, its origins can be traced back to the original team that developed the ARM microprocessor. RISC OS is owned by Castle Technology Ltd, and maintained by RISC OS Open Ltd. This version is made available free of charge to Raspberry Pi users.
Steve Revill, from ROOL, shows off RISC OS on the Pi
We really recommend a download; it’s very smooth, very fast to boot, and we’re delighted to be able to offer RISC OS for the platform. You’ll find a RISC OS image on the downloads page; and if you’re completely new to the OS, you’ll find Burngate’s Stroll around RISC OS in pdf form very useful.