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.comMISSION CHARACTERS
MISSION MATERIALS
Computer with USB port and Chrome or Edge browser
Piper Make Base Station or Starter Kit
MISSION RESOURCES
Learning Goals
- Students will determine potential solutions to solve simple hardware and software problems using common troubleshooting strategies.
- 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).
- Students will understand how to break down a problem into smaller, manageable steps to create automated solutions through coding.
- 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.
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.
- “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
BlinkThese parts are then attached to a Printed Circuit Board (PCB).
Once you've got it, click NEXT.
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.
When your LED is blinking, click NEXT to head back to our explore tab.
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.
Our customer support specialists are on hand to ensure your implementation of Piper runs seamlessly.
View Support Docs or Contact Support
EXPANDED RESOURCES
Helpful Links
How To: The Basics of Breadboarding
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.
Material Library
BreadboardStandards Alignment

