Want to keep learning?

This content is taken from the Raspberry Pi Foundation & National Centre for Computing Education's online course, Teaching Physical Computing with Raspberry Pi and Python. Join the course to learn more.

Skip to 0 minutes and 4 seconds Hello, and welcome to week three. Already in this course, you’ve learned about the Raspberry Pi computer, connected up a physical output in the form of an LED, and controlled it using Python. Controlling the physical world is a really powerful thing. And this week, you’re going to learn how to react to it. Through a series of activities, you will learn to connect a button to your Raspberry Pi and write code to respond to it being pressed. You’ll also learn about some of the many sensors that you could connect up in place of the humble button. And lastly, you’ll learn how to get your students to make their own buttons using craft materials.

Skip to 0 minutes and 43 seconds As always, remember to share your learning, in particular your button builds. We can’t wait to see what you make.

Week 3 welcome

Last week you learnt about controlling an output (LED) using a Raspberry Pi and some Python code, and considered how you can make this sort of activity accessible to your students.

This week you will:

  • Connect a button to a Raspberry Pi and write code to respond when it is pressed.
  • Learn about other sensors that could be used in place of a button.
  • Learn to make your own buttons using craft materials, and how this can challenge your students.

Completing this week’s exercises is really important, and will help you to identify gaps in your understanding. Don’t be discouraged if you don’t get everything right on your first try — that’s completely normal! If you do need help, a reminder that the discussions can be found throughout the course at the bottom of each learning step page. Last time we ran the course, over 300 people asked questions, made comments or participated in a discussion.

Share this video:

This video is from the free online course:

Teaching Physical Computing with Raspberry Pi and Python

Raspberry Pi Foundation