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

PenguinTutor YouTube Channel

Programming the Raspberry Pi GPIO using Python

This is a student worksheet and teacher guide for programming the Raspberry Pi GPIO ports using Python. It is based around a simple electronic circuit using LEDs. At the end the learners will have created a simple LED traffic light, with suggestions for how it could be turned into something more fun.

Breadboard circuit of the traffic light program

This guide was created for use in an after school Raspberry Pi club. It could also be used in school lessons with secondary school children.

Blog links and videos on programming

Previous Create animations in Pygame Zero
Create animations in Pygame Zero
Next Raspberry Pi LCD character display
Raspberry Pi LCD character display