DIY Coding Projects
Screen-Free Activities for Ages 9-12
Introduction
Welcome to the world of screen-free coding! This guide provides hands-on activities that teach fundamental programming concepts without using computers. These projects help children develop computational thinking skills—like breaking down problems, recognizing patterns, and creating step-by-step solutions—while having fun with tangible materials.
Activity 1: Human Robot Navigation
Concept: Algorithms, Sequential Instructions
Materials:
- Masking tape
- Index cards
- Markers
- Small objects (toys, cones, etc.)
Setup:
- Create a grid on the floor using masking tape (5×5 or larger)
- Place obstacles and destination points on the grid
Instructions:
- One child acts as the programmer, the other as the robot
- The programmer writes commands on index cards:
- FORWARD (move one space ahead)
- TURN LEFT
- TURN RIGHT
- PICK UP
- DROP
- The robot must follow the commands exactly as written
- Challenge: Get the robot from start to finish while collecting items along the way
Extension: Add loops by creating “REPEAT 3 TIMES: [commands]” cards to introduce the concept of iteration.
Activity 2: Sorting Network
Concept: Algorithms, Parallel Processing
Materials:
- Chalk (for outdoors) or masking tape (for indoors)
- Number cards or items of different weights
Setup:
- Draw a “sorting network” on the ground with paths that split and rejoin
- Mark comparison points with circles where two paths meet
Instructions:
- Give each child a number card or weighted item
- Children walk the paths simultaneously
- When two children meet at a comparison point, they compare values
- The higher value goes to the right path, lower to the left
- If done correctly, when children exit the network, they’ll be in sorted order
Extension: Try sorting by different criteria or design your own sorting network.
Activity 3: Binary Bead Bracelets
Concept: Binary Number System, Data Representation
Materials:
- String or elastic cord
- Beads in two different colors
- Alphabet binary code chart (provided below)
- Small containers for beads
Binary Alphabet Chart:
A: 01000001 J: 01001010 S: 01010011
B: 01000010 K: 01001011 T: 01010100
C: 01000011 L: 01001100 U: 01010101
D: 01000100 M: 01001101 V: 01010110
E: 01000101 N: 01001110 W: 01010111
F: 01000110 O: 01001111 X: 01011000
G: 01000111 P: 01010000 Y: 01011001
H: 01001000 Q: 01010001 Z: 01011010
I: 01001001 R: 01010010
Instructions:
- Choose a word or name to encode
- Use the chart to find the binary code for each letter
- Use one color bead for “1” and another color for “0”
- String the beads in the correct order to represent your word in binary
- Tie off the ends to make a bracelet
Extension: Learn to count in binary using your fingers.
Activity 4: Conditional Card Game
Concept: Conditional Statements (IF-THEN-ELSE)
Materials:
- Index cards
- Markers
- Dice (optional)
Setup:
- Create condition cards with statements like:
- IF card is red, THEN clap twice
- IF card shows even number, THEN spin around
- IF card is a face card, THEN hop on one foot
- ELSE do jumping jacks
Instructions:
- Players take turns drawing a card from a standard deck
- Player must follow the conditional instruction based on the card drawn
- For added complexity, combine conditions with AND/OR statements:
- IF card is red AND greater than 5, THEN…
- IF card is a heart OR a spade, THEN…
Extension: Create your own branching story where different conditions lead to different story paths.
Activity 5: Function Machines
Concept: Functions, Input/Output
Materials:
- Large cardboard box
- Scissors
- Decorative supplies
- Small objects or number cards
- Paper and pen
Setup:
- Create a “function machine” from a cardboard box with an input slot and output slot
- Child sits inside the box with a secret “function rule”
Instructions:
- Children take turns being the function machine
- The machine operator creates a rule (e.g., “add 3” or “multiply by 2”)
- Other players pass in number cards or objects through the input slot
- The machine operator applies the rule and returns the result through the output slot
- Players must guess the rule based on input/output pairs
Extension: Create more complex functions with multiple operations or conditional results.
Activity 6: Debugging Scavenger Hunt
Concept: Debugging, Error Detection
Materials:
- Index cards with “buggy” instructions
- Small prizes or treasures to find
Setup:
- Hide several small prizes around your space
- Create instruction cards with intentional errors to find each prize
Instructions:
- Give children the buggy instructions
- Children must identify the bugs in the instructions
- After fixing the bugs, they follow the corrected instructions to find the prizes
- Example bugs:
- Incorrect directions (turn right instead of left)
- Missing steps
- Ambiguous instructions
- Infinite loops
Extension: Have children create their own buggy instructions for others to debug.
Activity 7: Pattern Block Programming
Concept: Algorithms, Pattern Recognition
Materials:
- Geometric pattern blocks
- Grid paper
- Colored pencils
Instructions:
- One child creates a simple pattern with blocks
- They then write instructions for recreating the pattern without showing the final design
- Another child follows the instructions to recreate the pattern
- Compare the results to the original
- Discuss what made instructions clear or unclear
Extension: Create more complex patterns or challenge students to write the most efficient instructions (fewest steps).
Activity 8: Sandwich Algorithm
Concept: Precise Instructions, Algorithms
Materials:
- Bread, spreads, and fillings for sandwiches
- Paper and pencils
- Plastic knives, plates, napkins
Instructions:
- Children write detailed algorithms for making a sandwich
- Another person follows the instructions EXACTLY as written
- Highlight the importance of precision – if instructions say “put peanut butter on bread” without specifying to use a knife, the follower might use their hands!
- Enjoy eating the results (even the imperfect ones)
Extension: Try more complex recipes with multiple decision points.
Activity 9: Loop Tag
Concept: Loops, Iteration
Materials:
- Open play space
- Index cards
- Timer (optional)
Setup:
- Create loop cards with instructions like:
- REPEAT 3 TIMES: Hop forward
- WHILE not tagged: Run in a circle
- FOR each player: High five them
Instructions:
- One player is “It” and draws a loop card
- They must follow the looping instruction
- Other players try to tag them during this time
- If tagged, the new “It” draws a different loop card
Extension: Create nested loops where one action contains another repeating action.
Activity 10: Pixel Art Communication
Concept: Data Representation, Coordinates
Materials:
- Grid paper
- Colored pencils
- Blank paper for writing coordinates
Instructions:
- One child creates a simple pixel art image on grid paper, coloring in squares
- Instead of showing the image, they write out coordinates and colors:
- (2,3): Blue
- (2,4): Blue
- (3,3): Red
- Another child recreates the image following only the coordinates
- Compare the results to see if the communication was successful
Extension: Try encoding the image using run-length encoding: “3 blue, 2 white, 4 red” instead of individual coordinates.
Resources for Further Learning
- Unplugged coding activity books
- Card games that teach logic (like Chocolate Fix or Robot Turtles)
- Physical coding toys like Cubetto or Code & Go Robot Mouse
- Local library coding clubs and workshops
Remember, the goal is to develop computational thinking skills—not just to learn coding syntax. These activities build the fundamental mental models needed for programming success when children eventually move to screen-based coding.
Happy coding!