MISSION OBJECTIVE
Learn how to use technology to control LEDs and sound. Students will build a game controller that they will use in this lesson.
Back on Earth, our scientists have noticed a ship heading towards their lighthouse! In this mission, you will build and code a Traffic Light-like series of LEDs that your button presses can control as a simple introduction to the buttons on the Printed Circuit Board Assembly.
View student interface at make.playpiper.comMISSION CHARACTERS
MISSION MATERIALS
Computer with USB port and Chrome or Edge browser
Piper Make Base Station or Starter Kit
Piper Make Game Controller
MISSION RESOURCES
Learning Goals
- Students learn about shift registers and how they read inputs.
- Students will learn how a controller outputs information into the system, including latch, clock, and data.
- Students will gain an understanding of bits and bytes.
- Students reinforce learning about conditionals, like if-do statements, in programming.
Career Connections
Software Quality Assurance Analyst: Salary $99,620/yr
Web and Digital Interface Designer: Salary $83,240/yr
Computer User Support Specialist: Salary $71,530/yr
Video Game Designer: Salary $83,240/yr
Hardware Diagram
Code Diagram
Tutorial Steps
LighthouseClick NEXT.
Use an if else block from Logic to listen for a button press, and if the Left (1) controller button was pressed, turn on the LED connected to pin GP15. Otherwise, turn it off:
Click CONNECT, select your Pico, and then click START. Try pressing the buttons on the left side of your controller to control the 3 LEDs on your Breadboard!
When you are done testing it out, click STOP, then click NEXT.
Click the Variables menu and then click Create variable...
Name your new variable "pitch value". Then using blocks from the Variable and Values menus, set the initial value of the pitch value variable to 0 (zero):
Then, all we have to do is play a sound using our pitch value for the pitch:
Blueprint
OPEN IN BLUEPRINT VIEWER DOWNLOAD
Have an different version? Look for more information on the Support Page.
Troubleshooting Tips
Our customer support specialists are on hand to ensure your implementation of Piper runs seamlessly.
View Support Docs or Contact Support
EXPANDED RESOURCES
Term Glossary
Console Personal computers built for gaming (e.g., PlayStation, Xbox, Nintendo Switch).
Modding Making "modifications" to how a game sounds, plays, looks, or functions, usually by users.
Graphic User Interface (GUI) A way to display information on the computer screen where the user can use a mouse or touchscreen to click various buttons. (CAT)
Playtesting Playing through new inventions or builds to find bugs, test their ease of use, and get new ideas to build on.
Virtual Reality (VR) Computer technology that makes someone feel like they are elsewhere. It requires a player to wear a headset and use input devices to play games.
Standards Alignment
ISTE Framework Game Controller Standards Alignment

