
Introducing fundamental computer science concepts to second graders works best when you relate abstract ideas to tangible actions. By having students create patterns to communicate messages, you meet California state standards for network communication while helping them visualize how computers interact. The following exercises help students grasp these principles through hands-on activities.
What your second grade computer science students will do
I remember sitting with a group of second graders while they tried to figure out why a code just would not work. One student kept trying to fix the sequence, but they were missing the fact that the pattern had to be consistent to send a clear message. This is exactly what Sending Messages with Patterns helps your class grasp. It starts with the familiar image of a lighthouse shining across the water, showing how a repeating sequence helps people share information when they cannot speak face-to-face.

The lesson moves from that big idea into concrete scenarios your students can actually picture. They look at how sailors use arm positions to signal letters between ships. It is a simple, effective example of how a repeatable set of movements functions as a language. From there, the second grade computer science lesson introduces the idea that weather reporters might use colored beads on a string to represent the forecast. By the time students get to the guided practice, they are ready to create their own patterns to send messages.
Aligning with standards and practical use
This lesson is built to address CA.CS.K-2.NI.6, which asks students to create patterns to communicate a message. In the context of the California computer science standards, this is about understanding how data is structured so it can be transmitted. Teachers in San Francisco Unified, San Juan Unified, Walnut Creek Elementary School District, and Travis Unified use this same standard to help students understand the mechanics behind how the internet actually functions. It is not just about the screen. It is about the logic beneath it.

The vocabulary here is straightforward: a pattern is a repeating sequence that helps send a clear message, and a sequence is the order in which things happen. It is worth emphasizing to your students that computers rely on these patterns of numbers to talk to each other across the internet. Without these structured arrangements, the whole system would just be static noise. That is the point where I usually see the lightbulb go on for kids. They stop seeing the computer as a magic box and start seeing it as a machine that follows a very specific set of rules.
I recommend using this for a whole-class introduction if you are looking to kick off a new unit on networking. It is also perfect for a student who missed the week or needs a quick independent study session during a science block. The lesson is meant to take about 45 minutes. If you have students who finish the practice quickly, push them to create a pattern that represents a complex idea like “it is raining and windy.” You will see who really understands the difference between a random choice and a repeatable code.
One caveat: watch for students who try to make their pattern too long or complicated. They often forget that if the receiver does not know the key, the message is lost. If they get stuck, ask them to teach their pattern to a neighbor. If the neighbor cannot decode it, the pattern is likely not as clear as they thought. This is a great way to reinforce the necessity of order and consistency in computing.

