Menu

Archive: 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...

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:

Postgres on Raspberry Pi

Databases are a great way to add data persistence to your project or application. You can write data in one session and it'll be there the next time you want to look. A well-designed database can be efficient at looking up data in large datasets, and you won't have to worry about how it looks,...

Making Twitter bots with Python

Twitter is a wonderful communication and social media platform. It has everything: breaking news, political opinion, humor, celebrities, entertainment, special interest chat, and, well, anything. Individuals, companies, departments, projects, and more—really anyone or anything—can have a...

Prototyping a Raspberry Pi robot idea with two emulators

While preparing for a workshop last week, my colleague Marc and I started brainstorming ideas. One of the ideas I came up with was to use the mini joystick on a Sense HAT (a sensor board add-on for the Raspberry Pi) to remotely control a robot using GPIO Zero’s remote pins feature. I soon started...

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:...

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...

GitHub Driven Development

There's much more to managing a project with git beyond just committing code and working with branches. GitHub-Driven Development is a process that will help you organize and manage the progression of a project on GitHub, although much of this could be applied to other systems, such as GitLab, as...

Raspberry Pi at home

The Raspberry Pi computer can be used in all kinds of settings and for a variety of purposes. It obviously has a place in education for helping students with learning programming and maker skills in the classroom and the hackspace, and it has plenty of industrial applications in the workplace and...

Google OnHub: the best router I've ever owned

My review of the Google OnHub router, and some tips on setting up advanced options like port forwarding. While in the US for a trip in October, I decided to pick up a Google OnHub router, which is only available in America, and has since been superseded by Google WiFi, also only available in...

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...

Try Raspberry Pi's PIXEL OS on your PC

Over the last four years, the Raspberry Pi Foundation has put a great deal of effort into optimizing Raspbian, its port of Debian, for Pi hardware, including creating new educational software, programming tools, and a nicer looking desktop. In September, we released an update that introduced PIXEL...

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 over a few evenings...

Tags: code python tdd uno