corenominal

Full stack web developer, interested in all the things, but especially the web, code, design, Linux, OS X, PHP, WordPress, JavaScript & robots.

Tagged: raspberry pi

Ten Millionth Raspberry Pi image/svg+xml

When we started Raspberry Pi, we had a simple goal: to increase the number of people applying to study Computer Science at Cambridge. By putting cheap, programmable computers in the hands of the right young people, we hoped that we might revive some of the sense of excitement about computing that we had back in the 1980s with our Sinclair Spectrums, BBC Micros and Commodore 64s.

At the time, we thought our lifetime volumes might amount to ten thousand units – if we were lucky. There was was no expectation that adults would use Raspberry Pi, no expectation of commercial success, and certainly no expectation that four years later we would be manufacturing tens of thousands of units a day in the UK, and exporting Raspberry Pi all over the world.

10,000,000, blimey, that’s a lot of Raspberry Pi. Congrats to the Raspberry Pi Foundation!

Powering Raspberry Pi Projects with PHP image/svg+xml

PiPHP: GPIO is a PHP library that can be installed via composer that allows you to control these GPIO pins. Here is an example of how we might use the library to blink an LED a few times when a button press is detected.

A nice and simple introduction to programming a Raspberry Pi with PHP. For many developers, I would imagine Python would be their first choice for this type of thing, but it’s nice to know there are alternatives available.

Time-lapse Shell Script For The Raspberry Pi

This is the shell script I use for creating time-lapse videos using a Raspberry Pi. It is designed to run as cron job, so it is somewhat fail-safe to power outages. The script assumes that the Pi has a couple of USB drives attached to it, for storing the images, but other than that, it should be fairly self-explanatory.

Note: the script is just responsible for taking the photos. There are some instructions for building the actual video with MEncoder at the top of the script.