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

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.

Previous Scratch for Primary School Teachers
Scratch for Primary School Teachers
Next Raspberry Pi LCD character display
Raspberry Pi LCD character display