Third party cookies may be stored when visiting this site. Please see the cookie information.

Projects

Pygame Zero for Makers

Creating novel computer interfaces for controlling electronic projects

Pygame Zero for Makers is a collection of resources to demonstrate how Pygame Zero can be used for Maker projects. This includes using Pygame Zero as an alternative front end to electronic circuits, as well as how touch screens can be integrated into a maker project.

The overriding philosophy is that interfaces do not need to be boring.

Workshop Worksheet

The Pygame Zero for Makers worksheet was created for the UK 3D Printer meet-up 2019.

It is a hands on workshop that creates a graphical interface to control some simple electronics. This is used to create the electronics.py demonstration.

Screenshot of the Pygame Zero for Makers electronic GUI

Other demos / resources

The rest of the code is not documented, but shows examples of how Pygame Zero can be used to make novel interfaces.

pgzero-demo.py - Provides a demonstration of creating buttons and LEDs which doesn't need any external electronics.

Demonstration of pygame zero Button and LED

pgzero-demo-sml.py - Is a smaller version of the pgzero-demo. It is designed to fit onto the official Raspberry Pi 7inch touch screen.

bargraph.py - Shows a simple bargraph display similar to one you may use on a volume control display

Bargraph created using Pygame Zero

bargraph-speed.py - Shows the bargraph alongside a speedometer type display. These show the same value, but damping is used on the speedometer to make if feel more natural.

Pygame Zero interface providing bargraph and speedometer

house.py - provides a very different look to most other interfaces. In this case used to control the Raspberry Pi Christmas House that I used in an earlier project [Raspberry Pi Christmas House project](http://www.penguintutor.com/news/raspberrypi/christmas-house)

Pygame Zero House novel interface with GPIO Zero electonics, NeoPixel and smoke generator

Download Pygame Zero Makers Worksheet and code

Future projects

I'm always working on new projects
To find out about the updates please:
Subscribe to the PenguinTutor YouTube Channel
and
Follow @penguintutor on Twitter

Previous Memory Card Game
Memory Card Game
Next 3D Design and printing
3D Design and printing