TALLY

PIPER MAKE EDUCATOR RESOURCES SERIES

STARTER EXPEDITION KIT

BUILD AND CODE A CIRCUIT TO COUNT YOUR BUTTON PRESSES

Beginner

1 hr

Ages 8+

You will need a Starter Kit to do this mission. Get yours here:

WATCH THE INTRO VIDEO:

LEARNING OBJECTIVES

  • Build a tactile button that completes a circuit when the button is pressed.
  • Use variables and loops to create a program that records the amount of times your button is pushed.
  • Integrate skills related to knowledge about variables, conditionals, and debugging in the same project.

EDUCATOR RESOURCES

  • You can share the mission directly to your Google Classroom after logging into your Google educator account in the top right corner of Piper Make.

Check out our easy assignment template that you can use to ask students to share their work by including pictures of their final circuits and code.

Check out our Python-focused assessment that you can copy and share directly to your Google Classroom.

  • Useful vocabulary terms to use in classroom: input, output, microcontroller, GPIO pins, circuit

TROUBLESHOOTING TIPS

Console numbers not changing when you click the button?

  • Ensure that your code includes the line to add one to the number you have in the console.

  • Ensure that you've plugged the wires into the right GPIO (take a look at the Digital View to see which pin you're affecting)

FINAL HARDWARE

In this lesson, students will build this button circuit.

FINAL CODE

This is the final code that is created. Download the embedded PNG and use the CREATIVE mode to import it to a new workspace:

OVERVIEW OF STEPS