MISSION OBJECTIVE
Learn the basic principles of AI and build a program that responds to voice commands. Additionally, students will use the Pico to build a circuit that illuminates LEDs based on AI interaction.
Piperbot and Pip have recovered tools from their previous adventure in Speak Like a Machine. Now they are back at their ship, and Piperbot realizes that they can use the tools to repair the fabricator and get PAL, the ship's AI assistant, back up and running to make the final parts required to begin their exploration of Mars.
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 have a foundational understanding of Artificial Intelligence.
- Students will understand the basics of an AI model.
- Students will understand how the computer uses sensors to mimic senses.
-
Students will understand the concepts behind the ai4k12.org in the following sections of Big Idea 1 – Perception
- 1 – A - i Living Things
- 1 – A – ii Computer Sensors
- 1 – B- i Sensing vs Perception
- Compare how humans use our senses, and AI uses sensors to gather information
- Understand how intelligent agents turn that data into smart decisions
- Code an AI algorithm to recognize certain words
Learning Activities
The following sections will contain step by step instructions for ELA and ELD extensions directly related to this Mission. Adjust the directions to fit your ELA and ELD standards.
Grades 3-5
Learning Objective: Illustrate how computer sensing differs from human sensing.ELA Extension: Piperbot, How Do You see? Write a short story about Piperbot and Pip discussing how each senses the world around them. What senses does Pip, a mouse have? What senses does Piperbot, a robot have? How are they the same? How are they different? Students can choose 1 or more senses to write about from the table below.
| Sense | Pip (Mouse) | Piperbot (Robot) |
|---|---|---|
| Seeing | Eyes | Camera, Color Sensor |
| Hearing | Ears | Microphone |
| Tasting | Tongue | - |
| Smelling | Nose | - |
| Feeling | Skin, muscles | Buttons |
| Sensing Distance | none | Ultrasonic sensor |
ELA Extension: I, Robot, Spy Alternatively, students can roleplay “I Spy” in pairs where 1 student is Pip and 1 student is Piperbot.
Students should start the conversation with sentence stems similar to those below: I’m a mouse and I can see something blue (object in room) with my eyes (sensor or sense organ). Do you see it?
The second student looks for the object and responds.
I’m a robot and I found something blue (object in room) with my camera (sensor or sense organ)!
Students can repeat the process with other senses, such as hearing something in the room.
Adaptation for ELD activities: Pair an EL student with a higher level EL student or a non-EL student.
ELD Adaptation: Robot Vocabulary Quiz Game Use the completed build and program for Speech Command for this activity. Update the word “go” to “yes” and the word “stop” to “no” in the code.
Pair students up to quiz each other. Have 1 student read the parts of the Piper Make Kit from the table below. The second student points to the named part. The 1st student will say clearly “Yes” or “No” to indicate if the answer was correct or incorrect. The Green LED should flash on for correct answers and the Red LED for incorrect answers.
PIPER MAKE AND COMPUTER PARTS
- Red LED (light emitting diode)
- Green LED (light emitting diode)
- Breadboard
- Resistor
- Pico
- Jumper Wire
- USB cord
- Built-in LED
- Microphone
- Camera
Grades 6-8
Learning Objective: Give examples of how intelligent agents combine information from multiple sensors.ELA Extension: Sensor Presentation Choose from one of the following technologies and research what sensors it uses. Create a short slide presentation to highlight at least 5 types of sensors used. How do the sensors work together to perceive the robot’s environment? Describe the challenges and benefits of using sensors in this technology.
- Self-driving car
- Delivery drone
- Domino's delivery robot
- Roomba vacuum
- Firefighting robot
- Water rescue robot
- Pip and Piperbot’s Space shuttle
- DaVinci surgical robot
- Automower
ELD Adaptation: Self-driving Car or Robot Vacuum Presentation Have students create a slideshow presentation for either the Self-driving car or Robot Vacuum.
Give students the list of of sensors below and have them find pictures of each to put in their presentation. As language skills allow, students should add a short description of each sensor.
SELF-DRIVING CAR SENSORS AND PURPOSE
- Radar - monitor other vehicles’ positions
- Video camera - see traffic signals, signs, vehicles, people
- Lidar - detect light to measure distances and road edges
- GPS - sense position on Earth
- Accelerometer - sense speed and acceleration
ROBOT VACUUM
- Infrared - motion detection
- Photocell - light sensor
- Cliff sensor - detects if robot is at an edge where it will fall
- Accelerometer - sense speed and acceleration
Career Connections
Software Developer: Salary $127,260/yr
Electrical Engineer: Salary $127,260/yr
Data Scientist: Salary $103,500/yr
Hardware Diagram
Code Diagram
Tutorial Steps
Speech CommandAn example of this is a digital camera - all it can do it show you the pictures that it took.
Now, if your robot friend can use its knowledge to get information from what it sensed, then it has the ability to perceive. With perception, your robot friend can learn, think, and make decisions almost like a human. This friend doesn't become tired, can play games, and can even help you do things.
A robot or computer that uses perception shows Artificial Intelligence, or AI for short.
AI is everywhere - in video games, phones, and cars that can drive themselves! It's like magic, but science and technology are making it happen.
When we say one of the words it knows, the AI can respond, just like your pet might go get the ball when you say "fetch!"
Click NEXT.
First, add the start block from the Chip menu to your workspace. Then, in the Sensing menu, find the setup microphone block and connect it:
If you don't see a red microphone icon, try refreshing this page and then coming back to this tutorial.
But wait! How does the microphone know what I say?
The reason you understand a new person speaking to you who says the word "three" is because your brain hears the sounds and perceives what it thinks the word is even though your brain has never listened to the sounds for the word "three" exactly the same way the new person says them.
Your brain automatically applied a probability to think that what it heard is probably the word "three" because of how many other people it has heard say "three." If the person didn't say "three," they'll correct you and your brain will learn something new.
First, add a read microphone block from the Sensing menu:
Be sure the confidence on the microphone command block is set to 90%. This stores whatever command the AI model hears into the variable:
I think I'm getting this.
Grab the print block from the Chip menu and add it to your program. Then, add the my word block into the print block:
We want the if do block to compare the my word block to a specific word. Remember the 18 words in our model? We will use the word "go" as our keyword:
since that's where our LED is connected.
Since we want the Green LED to blink, use a wait block and another turn pin block. Finish building your code as shown below:
Next, we'll add a turn pin block from the Chip menu to turn GP14 on so that the red LED turns on to tell us that the fabricator has stopped.
As with our previous if do block, we'll also add a wait block and set it to one second, then add another turn pin block and set GP14 to off.
Now we have the complete code block to control our fabricator!
Remember to click on the CONSOLE tab to see the messages coming in from the AI and to see the fabricator!
Finally, click START to begin the program.
PAL is pretty smart. What happens if you start the fabricator and then suggest a particular number from the list of commands?
Click on the red microphone icon to see how the AI model is trying to match what it hears to one of its known 18 words.
Blueprint
OPEN IN BLUEPRINT VIEWER DOWNLOAD
Have an different version? Look for more information on the Support Page.
Troubleshooting Tips
If the microphone isn't working, here are a few suggestions to help!
- Refresh the page and try again to see if the microphone loads.
- Ensure the correct microphone is selected in your settings if more than one microphone is being used by the computer.
Activating microphones on a Chromebook:
Step 1: Locate the Command Panel First, find the clock on your screen, then click to see more options. This is like checking our spaceship's dashboard. Click on the settings gear, our control panel, to adjust our settings.
Step 2: Navigate to Sound Settings In the control panel's search bar, type "sound" to find our audio settings. It's like tuning into the right frequency. Select “Sound” from the options. This is where we control what we hear and how we speak to the computer.
Step 3: Connect to the Microphone Find "Input" to see our microphone options. It's important for PAL to hear us. Make sure the right microphone is selected. If there's more than one, pick the one you want to use.
Step 4: Test the Communication Line Look for a volume meter under "Input." This shows if our microphone is catching our voice. Say "Hello, PAL!" and watch the meter. If it moves, our microphone is working!
Step 5: If the microphone doesn't respond, check its connection. It might need a better link to our system. Make sure it's not on mute. We don't want to block our messages to PAL!
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
Circuit A conductive path for the flow of current or electricity.
Power The current or flow of electric charge and voltage.
Microcontroller An integrated circuit containing a microprocessor with memory and associated circuits.
Variables A value that can change depending on conditions or information passed to the program. A storage location with a symbolic name used to keep track of a value that can change while a program is running (similar concept to using X and Y in an algebraic equation). Variables are not only numbers; they can also hold text, including whole sentences (strings) or logical values (true or false).
Input Device A hardware device that sends data to a computer, allowing interaction and control.
Output Device A piece of hardware that converts information into a form humans can sense and understand.
Standards Alignment

