PIPER MAKE

EDUCATOR GUIDES


YOU ARE HERE

Base expedition

Mission 3 of 13

Base expedition: Mission 3 of 14

Blink


Beginner

1 hour

Grades 3 - 8

MISSION OBJECTIVE

Students will build a simple circuit using a microcontroller, LED, jumper wire, and resistor, and program the LED to blink by creating and testing code that uses sequences and loops. Through this activity, students will understand how hardware and software work together to control electronic components and apply foundational programming concepts to achieve a desired outcome.

Piperbot made it to Mars but can’t see where to land. Help Pip signal to him by building a circuit with an LED and code it to blink. This mission walks through the basics of current, how it flows, and how you can use code to control it.

View student interface at make.playpiper.com
MISSION CHARACTERS

Piperbot

Pip
MISSION MATERIALS

Computer with USB port and Chrome or Edge browser
Piper Make Base Station or Starter Kit

MISSION RESOURCES

Learning Goals

  1. Students will determine potential solutions to solve simple hardware and software problems using common troubleshooting strategies.
  2. Students will learn the fundamental programming concepts of executing code in a specific order (sequence) and repeating a block of code based on a condition (loop).
  3. Students will understand how to break down a problem into smaller, manageable steps to create automated solutions through coding.
I WILL BE ABLE TO...
  • Write code to control a LED
  • Make my code repeat to blink my light using a loop

Learning Activities

ELA Extension: Robot Signal Narrative Students will write a 1-, 3-, or 5-paragraph story (based on grade-level standards) from the perspective of a robot sending its first blinking signal into space.

  • Introduce the idea that robots, like humans, can communicate through patterns and light signals.
  • Add creative constraints by randomly assigning students whether their message is received or lost in space.
  • Ensure students include:
    • The robot’s name
    • The destination of the signal
    • The reason for blinking (e.g., sending help, calling a friend, exploring a new planet)
    • A twist or emotional element (e.g., the robot is lonely, excited, or malfunctioning)
  • Encourage use of vivid descriptions and character voice.
  • Allow students who are inspired to go beyond one paragraph.
  • After drafting, ask students to share their story with two peers for feedback and revise based on suggestions.
  • Add a visual art option: students may draw a scene or comic panel that shows their robot blinking the message.
Bonus points if students incorporate each vocabulary word: output, signal, sequence, LED, transmit, pattern

ELD Extension: Draw & Retell – Robot Message Swap Pair students so that each English Learner (EL) works with a peer who is either a fluent speaker or a higher-level EL.
  • Each student begins by drawing a robot blinking a message into space.
  • Use visuals, sentence frames, and word banks to support ELs with key vocabulary: robot, signal, light, message, space, help, friend
  • Partners take turns describing their robot and the message it is blinking. Encourage full sentences and expressive tone.
  • Switch drawings. Each student writes a short “response” message from the perspective of the receiving robot.
  • Partners retell the full story of the robot’s original message and response.
  • Optional: Pairs can share their full story and artwork with the class to practice sequence and presentation skills.
Sentence Frames:
  • “My robot is blinking to say __ because __.”
  • “The message says __. I think it means __.”
  • “If I got this message, I would __.”

ELD Extension: Draw & Retell – Robot Message Swap
  • Pair students together or allow them to choose their partners.
  • Partner A will be the timekeeper; Partner B will observe and record when the LED turns on and off. Then they will switch roles.
  • Connect back to the Blink activity and ask students to describe the pattern they observe in their own words.
  • Collect these pattern descriptions on the board or a shared document to display.
  • Start students off with an easy blink pattern: LED on for 1 second, off for 1 second.
  • Ask students to count how many full blinks occur in 10 seconds.
  • Then, have them try new blink intervals (e.g., on for 0.5s, off for 0.5s) and predict the outcome.
  • Introduce a challenge pattern: ON 0.5s, OFF 0.5s, ON 0.5s, OFF 0.5s, ON 1.5s, OFF 1s.
  • Ask students to build a timeline or table showing when the LED is on vs. off, and explain how they know what the pattern is.
  • Finally, students decide which role they preferred—timekeeper or observer—and reflect on how math helped them understand the blinking pattern.

BONUS: Introduce Morse Code and let students attempt to create a blink pattern that "says" a message like "HI" or "SOS."

Career Connections

Software Developer: Salary $127,260/yr

Hardware Diagram




Code Diagram




Tutorial Steps

Blink

Help Pip set up a blinking light to show Piperbot where to land on Mars!

Hi there! I hear you learned about the Raspberry Pi Pico when you built your first circuit. Can you help me?
Remember there are several of parts on the microcontroller — a USB connector, a processor, memory, and a power regulator. And all of those little Pins on the sides are called GPIO Pins!

These parts are then attached to a Printed Circuit Board (PCB).
Click NEXT.

Hmm, I think we'll need some hardware to set up our blinking light. Let's grab our inventory!
Any color LED and any color Jumper Wire will work, so pick your favorite!

What's that white board with 830 holes the Pico is attached to? It looks like you could plug wires into it.
It's a Breadboard! Each of the holes connects to a metal strip under the holes, allowing electricity to flow through anything in the same row.
Oh, cool! So, the center section has a bunch of columns with 5 holes, connected by a piece of metal. The sides have long metal rails that connect the rows for POWER and GROUND connections.
Ooh, let's give it a shot! Let's try plugging one of my jumper wires into a hole. You might need to push the Pins deeper than you think to get them to touch the metal strips.
Click NEXT

Let's build our circuit! We need a complete path for electricity to flow from a POWER source (battery or one of the GPIO Pins) to GROUND, right? And just have the light somewhere in between?
Hold on! If we make a circuit with only conductors (like wires), the Pico tries to push too much electricity through the circuit, which can damage things. We have to reduce the current by using a Resistor.
Build this circuit. You can expand the image to get a better view by clicking the icon in the upper-right corner of the image.
Your Breadboard and Pico might look like this:
If it does, it works the same way. Find the holes in the blue card under your Pico that correspond with G and 15, and plug your Jumper Wire and Resistor into those holes.

Once you've got it, click NEXT.

Okay, if I was a lil' electron, I'd come out of Pin GP15, go through a Resistor, through the LED, and then to GROUND to make my circuit!
Hmm, now that you said it, I wonder if you could put the Resistor after the light instead of before. Or maybe not use it?
Where should the resistor be placed in the path of current?
After the LED
Anywhere along the path of current
Not in the circuit
Before the LED

Let's think about your circuit as a waterfall, where water represents the electricity. Water is made of many droplets, just like electricity is made of many electrons. Just as the water falls from the top of the waterfall to the river below, electrons flow from a high-energy spot, the POWER source, to a low-energy spot, the GROUND.

If you have a ton of water falling on you from a super high spot (think Niagara Falls), then you can get seriously hurt, right? But lower down, maybe that's more like a soothing shower. That's nice!

While the height of a waterfall can be measured in yards or meters (or other distance units), we measure the difference in electric potential between the power source and ground in our circuit in Volts (V). In our Pico, the voltage from POWER to GROUND is usually 3.3V. That won't change.

What can change are the other things involved in our waterfall—how fast the water's going (the CURRENT) and if there are rocks in the way to slow the water down (the RESISTANCE). If we put a bunch of rocks in the way of our water, then the CURRENT, or the speed of the water, will go down. Take them away, and suddenly our water is coming down our waterfall like a jet. In a circuit, we can add Resistors to limit the flow of electricity, just like rocks slow the water current.
In electricity, this concept is called Ohm's Law, which says that Voltage is equal to Current (I) × Resistance (R)
Oh, since a Pico always pushes 3.3V, if we want the current to go down (to avoid any damage to the LED), the resistance must go up. So we can put a Resistor anywhere in our circuit, and since resistance goes up, our current will come down, keeping our Pico and LEDs safe!
Click NEXT.

Hold up, am I crazy or is one of the wires of the LED longer than the other...? Is that important?
The long lead of the LED is called the anode and it represents the positive (+) side of the circuit. The short lead is the cathode and represents the negative (-) side.
I got it! I got it! I want electricity to flow into the anode and out of the cathode for my LED leads!
Once your circuit looks as above, click NEXT.

Let's make sure our Pico is connected! Plug your Pico into your computer and then click CONNECT in the bottom left.
Click CONNECT to communicate with your Pico, then click NEXT.

How do I get the computer to tell my Pico to do things? Ooh, I know! Code!
Let's build the code below with blocks from the Chip Menu.
Ooh wait, if I can turn on the light with that block, maybe I can add more to turn it off, then on, then off, then on, then off... Let me build that!
Click NEXT.

Hmm, our code is turning on Pin 0, but we plugged our circuit into Pin 15. What's up with these pins anyway?
GPIO stands for General Purpose Input/Output, meaning the pins can do either. They can output current like we want for our LED. Or they can detect inputs like when we touched our wires together in Getting Started!
Click the Digital View tab on the bottom of your screen to pull up a little map view of your Pico. You can see the Pin numbers on the Pico there.
Ooh ooh, I bet I can just change the Pin to 15 and it'll work. Let's try it!
Did you see the light come on? Click NEXT.

Cool! Hmm, how do I make the blinking repeat, though? Oh, hey, what about the enu over there that says Loops? There is a block in there that says repeat forever!
Add the repeat forever block to your code. Change the wait time to 1 second.
Let's click the START button to try out our code and mess with the times to see what we can do!
Troubleshooting is part of being an engineer: If it's not working, check your wiring to ensure you have plugged your LED into the same column on your breadboard as the Resistor and Jumper Wire. Then, double-check your code. Use the DIGITAL VIEW to make sure Pin GP15 is sending power to the LED.

When your LED is blinking, click NEXT to head back to our explore tab.

Pip Pip Hooray!! We did it!! Oh, here comes the ship!
Hi there! Can you help me figure out how to make this light blink faster, or maybe stay on for a while? Let's explore!
When you're done, click EXIT to return to the menu and start your next coding challenge.

Blueprint

OPEN IN BLUEPRINT VIEWER  DOWNLOAD

Have an different version? Look for more information on the Support Page.

Troubleshooting Tips

  • Check the START Button:
    To run your code, click the START button in the top-left corner of the screen. Be careful not to confuse this with the green START block in your code. The green START block is part of the code and shows where the program begins, but the START button in the corner is what actually runs the program.
  • Check Your ON and OFF Blocks:
    Make sure your code has a block to TURN PIN ON and another to TURN PIN OFF. If both blocks are set to TURN PIN ON, the LED will stay on and won’t turn off.
  • Check the LED Orientation:
    If your code is running correctly (you can see the correct GPIO pin blinking in the DIGITAL VIEW) but the LED isn’t lighting up, it may be inserted backwards.
    The LED has two legs:
    • The long leg (anode) is the positive side.
    • The short leg (cathode) is the negative side.
    LEDs only work when the current flows in the correct direction, so make sure the long leg is connected to the positive pin where the resistor is located.

Our customer support specialists are on hand to ensure your implementation of Piper runs seamlessly.
View Support Docs or Contact Support
EXPANDED RESOURCES

 How To: The Basics of Breadboarding

 How Does an LED Work?

Term Glossary


Breadboard A plastic board with many holes electrically connected by inner metal strips. Components and wires can be electrically connected by plugging them into the holes on the breadboard.

LED (Light Emitting Diode) A diode is like a one-way valve that only allows electricity to flow in one direction. All diodes give off some light (visible or invisible) when electricity passes through them, but LEDs give off lots of visible light in specific wavelengths (colors).

Loop A part of a computer program that repeats a chunk of code a specified number of times or while a condition is true.

Power The current or flow of electric charge and voltage.

Resistor An electrical component that limits the flow of electrical current in a circuit. It is often used in the circuit of a PED to prevent too much current from damaging the LED.

Current The measure of the flow of electricity. Specifically, how many electrons pass through a point in a conductor or wire in a given amount of time. Current is measured in units called Amperes, or Amps for short.

View Full Glossary

Material Library

Breadboard
Breadboards are temporary prototyping devices that allow you to test circuit designs with electronics. The components of the circuit are interconnected by inserting leads into the holes of the Breadboard and using Jumper wires to complete the circuit when needed.
The holes in the Breadboard are aligned with metal clips because metal conducts electricity and allows current to flow. The holes in the breadboard are connected by metal clips in the pattern shown by the green lines
Resistor
The Resistor's role in Piper Make's circuits is to decrease the current and voltage flowing through the loop. When wiring a LED, you include a Resistor in the circuit of an LED when it is connected to a power source or a microcontroller.
Small Resistors, like the one in the Piper kit, use colored painted bands to indicate both their resistive value and their tolerance with the physical size of the Resistor indicating its wattage rating. These colored painted bands produce a system of identification generally known as a Resistor's Color Code. The color stripes on your kit's Resistor represent a value of 330 ohms. We selected this Resistor by measuring the voltage and current needed for the LEDs provided in this kit by using the following formula; Resistor = (Circuit Voltage - LED voltage) / desired LED current.
LED
LED stands for "Light Emitting Diode". A diode is device that allows current to flow in only one direction. LEDs use current traveling through the circuit to release energy in the form of light. The LEDs in your kit emit light in the visible spectrum. You can find diodes in common household items like remote controls and RC cars.
Since LEDs are diodes, they must be wired in a particular direction on a Breadboard, in the loop of a circuit. The longer pin of the LED should be lined up with the + end of the circuit (connected by Jumper wire to a GPIO pin on a microcontroller) and the shorter pin of the LED with the - end (connected by Jumper wire to a ground pin on a microcontroller).

Standards Alignment