Menu

Blog

25 October 2023

PyCon UK 2023 talks

I was back in Cardiff for PyCon UK recently and gave a talk on a BBC project I’ve been working on, called Live Highlights. I’m not doing as many conference talks as I used to – this is my only one of the year! I spoke about how we prototyped an idea and built it […]

1 March 2020

Meme Overflow

A few months ago I was looking through questions posted to the Raspberry Pi Stack Exchange site. If you’re not familiar, Stack Exchange provides Q&A sites like Stack Overflow for specific areas, such as particular programming languages, technologies or other topics. And while observing the erratic nature of the way people post questions to the […]

16 February 2019

What’s new in GPIO Zero v1.5?

It’s become customary for me to summarise what each new GPIO Zero release brings. This one’s been a long time coming. It’s been a quite while since our last release (a whole year since the last point release and 18 months since v1.4). I mostly attribute the lack of development to the launch of my […]

4 October 2018

EuroPython, PyCon UK and a John Pinner Award

I’ve been lucky enough to have been able to attend (and speak at) two great Python conferences – EuroPython and PyCon UK – (almost) every year since 2014. I’ve been to EuroPython in Berlin, Bilbao and Rimini, and this year it came to the UK – specifically, the beautiful city of Edinburgh. I presented a […]

14 December 2017

Raspberry Pi Zero GPIO expander

The recent announcement of the latest release of the Raspberry Pi Desktop x86 image alongside Raspbian Stretch for Raspberry Pi included mention of a GPIO expander tool, which was followed up by another blog post explaining how it works and how to use it. Since it uses pigpio to control the GPIO pins, that means […]

29 October 2017

Raspberry Pi talk at EuroPython

I have attended and spoken at the EuroPython conference for the last few years, and this time I focused on physical computing with Python and Raspberry Pi, including GPIO Zero, Picamera and the Sense HAT. The slides are on speakerdeck and you can watch the video here:

31 July 2017

piwheels: building a faster Python package repository for Raspberry Pi users

The title may have given away the article contents, but feel free to read on pretending you don’t know the ending. Background: I work for the Raspberry Pi Foundation and I do a lot of Python stuff on Raspberry Pi. I presented this project recently in a lightning talk at EuroPython. Motivation: space If you […]

27 July 2017

What’s new in GPIO Zero v1.4?

It’s been a while since the last GPIO Zero release, so it’s with great pleasure I announce v1.4 is here. Upgrade now on your Raspberry Pi: sudo apt update sudo apt install python-gpiozero python3-gpiozero Or on your PC: pip install gpiozero Why on your PC? Run Python code on your PC to remotely control a […]

14 February 2017

Python and Raspberry Pi talk at FOSDEM

Earlier this month, I spoke on the Python track at FOSDEM 2017. My talk introduced the Raspberry Pi as a tool for physical computing and IoT to Python programmers in the free & open-source software community. I talked about the Raspberry Pi Foundation’s mission, our education programmes, introduced the GPIO pinout, HATs, GPIO Zero, Remote […]

5 January 2017

Christmas Coding Challenge – Uno

During this Christmas break I decided to have a go at implementing the card game Uno in Python. It’s a fun and simple game for all ages, and the rules are easy to pick up and follow – but there’s quite a challenge in implementing the rules in a program! I spent a few hours […]

Tags: code, python, tdd, uno
16 November 2016

PyCon Russia keynote – Physical computing with Python and Raspberry Pi

I was invited to give the closing keynote at PyCon Russia, which took place in Moscow in July. It was my first visit to Russia – and I had a great trip. Today I am mostly being the Raspberry Pi Community at @PyConRu pic.twitter.com/U88J1rcMNZ — Ben Nuttall (@ben_nuttall) July 3, 2016 I travelled with David […]

14 September 2016

What’s new in GPIO Zero v1.3?

One year ago today, I started the GPIO Zero project. We now have a core team of three (Dave Jones, Andrew Scheller and me). There have been 587 commits, we’ve released four major versions, and published a book. The library has great coverage of GPIO devices, and contains features I never even dreamed of. In […]

18 August 2016

Simple Electronics with GPIO Zero book

Today the MagPi team released a new publication: Simple Electronics with GPIO Zero. This 100-page book takes you from the basics, like lighting an LED, all the way to building projects like an Internet radio using the GPIO Zero Python library. This book is available as a free PDF, but you can also pay to […]

11 January 2016

GPIO Zero: Developing a new friendly Python API for Physical Computing

For about the last 3 years, the de-facto method of accessing physical components via the Raspberry Pi’s GPIO pins has been a Python library called RPi.GPIO, created by Ben Croston, who originally built it to control his beer brewing process. Despite its humble beginnings in a personal hobby project, it’s ended up being used in […]

24 September 2015

The story of pyjokes

Last year I was invited to speak at PySS in San Sebastian, Spain, and I met a great bunch of guys: the conference organisers Alex, Oier and Borja. We started a project called pyjokes (one line programmer jokes; jokes-as-a-service) I gave a 5 minute lightning talk at PyConUK last weekend telling how pyjokes came about: […]

Tags: pyjokes, python
3 January 2015

Review of the Year 2014

Last December I started my job at the Raspberry Pi Foundation and this time last year, having just completed my first month, I wrote my review of 2013 and all the events which led up to that move. Here is a round-up of all that’s happened since then. Talks & Conferences This year I gave […]

3 November 2014

All the Python Conferences

In the last two months I’ve attended and spoken at five Python conferences around Europe. EuroPython – Berlin I submitted a proposal to EuroPython in Berlin for a talk explaining what the Raspberry Pi Foundation are doing in education. Luckily it was accepted and I got to go to Berlin for a week (which I’d […]

21 April 2013

STEM Raspberry Jam Pilot

I organised an event with the STEMNET (Science, Technology, Engineering & Maths Network) team at the Museum of Science and Industry (MOSI), based on the Manchester Raspberry Jam I run monthly at Madlab. The STEM Raspberry Jam was to be a new activity the STEM Ambassador network could offer to schools, so we ran a […]

28 January 2013

Comprehension in Python

Python is a wonderful dynamic language offering various functional programming features, including standard library modules itertools and functools borrowed from Haskell and Standard ML. Some see it as the best of both worlds as not only can you perform complex tasks with these functional programming tools but you can do it using simple readable code […]

24 November 2012

Hack Manchester

Last month I attended Hack Manchester – a 24 coding event as part of the Manchester Science Festival, held at MOSI. Having only arranged to team up with Mike, we ended up joining two guys Shaf introduced us to, his colleagues from the BBC, by the names of Jack and Tom. The four of us formed […]

9 September 2012

Manchester Raspberry Jam Continued

I’ve now hosted four Raspberry Jams in Manchester. I posted about the first and second, here’s a summary of what went on at III & IV. The August Manchester Raspberry Jam kicked off when Kat opened up the Madlab and I gave an opening talk about what had been going on in the news in […]

18 July 2012

Manchester Raspberry Jam

I’ve now run two Raspberry Pi events in Manchester, affectionately known as the Raspberry Jam. The first in June, which was the first Raspberry Jam in the UK, and which featured on the Raspberry Pi Foundation’s website where we gained recognition for getting people together to share ideas, demonstrate what we’ve been doing with the […]

1 April 2012

ASCII Bar Charts for Quick & Easy Visualisation

So you have some data. Let’s say it’s a record of the number of instances of some things. Let’s say it’s the number of movies you own, grouped by the year they were released. Let’s say you have those data in the form of a dictionary in Python, like so: The following loop will print […]

7 March 2012

PHP 5.4 Released

So the other day, Rasmus tweeted that PHP 5.4 was fully released (following several release candidates): PHP 5.4.0 is out – go get it #php — Rasmus Lerdorf (@rasmus) March 1, 2012   There are some great additions, the highlights (other than a huge increase in speed, apparently) being square bracket notation for arrays, array […]

Tags: php, python
5 February 2012

Ternary Operator and Other Shorthand Code

The ternary operator is a shorthand way of writing an if/else statement where a particular action occurs in both cases, but the value associated with that action depends on the condition stated. For example, the traditional if/else construct (C/Java/JavScript syntax): can be rewitten as: This in itself is a huge benefit to clean, concise code. […]