Close menu

Resources


PIPER COMPUTER

Everything you need to teach STEAM effectivly using the Piper Computer Kit.

Educator Guides StoryMode Project Guides PiperCode Project Guides
PIPER MAKE

Teach fundamental STEM skills while providing a bridge to career connected learning.

Educator Guides
Best Practices Standards Glossary FAQ Educator Forum

EDUCATOR PORTAL

Close menu

ALL GUIDES


StoryMode

  1. Mars
  2. Cheeseteroid
  3. Treasure Hunt
  4. Chain Reaction
  5. Power Plant
  6. Rainbow Bridge
  7. Funky Fungi
  8. Breadboard Bluffs
  9. Return to the Cheeseteroid

  1. Pip Hop
  2. Bot Builder

  1. Ring Race
  2. Snake Trap
  3. Dark Maze
  4. Explosive Escape
  5. Chest Quest

PiperCode

  1. Blink
  2. Stop Light
  3. Light Show
  4. Tally
  5. Siren
  6. Circuit Design
  7. Debug
  8. Frog Frenzy

  1. Color Coded
  2. Ther-Mood-Stat
  3. Security Zone

  1. Randomizer
  2. El Pangolin (Simon)
  3. Beat the Buzzer
  4. 5-Button Synthesizer

PIPER COMPUTER

PROJECT GUIDES


YOU ARE HERE

PiperCode

Project 1 of 8

PiperCode Project 1 of 11

Blink


Beginner

15 mins

Grades 3 - 8

Look for the graphic above
to launch the project
INTRODUCTION

Don't blink an eye! Learn the basics of the program editor

This is the introductory project to learn how to use the program editor and programming concepts. Students will build a simple circuit and write code to make an LED light blink on and off.

PROJECT MATERIALS

Piper Computer Kit
LED (Green)
2 Wires (any color)
Breadboard

PROJECT RESOURCES

Concepts

Students need to understand that each GPIO pin on the Raspberry Pi is assigned a specific number. They’ll learn to create PiperCode programs to control these GPIO pins connected to their breadboard, which will, in turn, control the LED light output. They’ll write a loop that runs continuously, with code blocks inside to turn the LED on, pause, and then turn it off, causing the LED to blink.

Troubleshooting Tips

  • The most common mistakes students make is to have the incorrect pin number in the code. Also make sure that they are first turning ON the pin, then turning it OFF.
  • The code ‘wait 2500 ms’ is in milliseconds where 1 second = 1000 ms. The light turns on, stays on for 2.5 seconds, then goes off. The puzzle piece where 1000 and 25000 are entered is called a ‘variable’.
  • The LED must be inserted properly into the breadboard to work, the short leg (called a Lead) lines up with the jumper wire that is connected to Pin 21. The longer leg connects to Pin 22 with a jumper wire and it provides power to the LED, and that is the one controlled with code.

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

Step 1 Get your stuff!

Take out the inventory you see in the image below.

Step 2 Get to know your GPIO's

The Raspberry Pi has GPIO pins. Look at the image to see how they are numbered.

Step 3 Wire Your LED

Connect your LED and jumper wires to the breadboard and Raspberry Pi as shown in the image below. Pay close attention when connecting the legs of the LED to ensure it is in the correct orientation.

Step 4 Pin On

Drag out a Pin On/Off block to turn pin 37 ON. Then start your code.

Step 5 Pin Off

Drag out a second Pin On/Off block to turn pin 37 OFF. The start your code.

Step 6 Repeat Forever

Put the two Pin On/Off blocks in a Repeat Forever block. Now start your code again.

Step 7 Wait

Add a Wait block to make the lights blink more slowly.

Step 8 Customize

Change the wait time and customize the blinking!

Completed!