Grade Six

QR Codes Explained: Amazing STEM Activity to Discover the Science Behind Every Scan

QR Codes Explained: Amazing STEM Activity to Discover the Science Behind Every Scan

What’s Hidden Inside a QR Code? The Science Behind Every Scan

Introduction

Think about the last time you scanned a QR code. Maybe it was to open a restaurant menu, download notes from your teacher, or make a quick online payment. You simply pointed your phone at a small black-and-white square, and within a second, the information appeared on your screen. It almost feels like magic!

But here’s something interesting—there’s no magic involved at all.

Behind every QR code is an incredible combination of Science, Technology, Engineering, and Mathematics (STEM) working together. Those tiny black and white squares aren’t randomly placed. They’re carefully arranged to store information in a way that computers and smartphones can understand.

As a STEM educator, one of my favourite ways to explain QR codes is through an activity rather than a lecture. Students are always surprised when they discover that changing just one word completely changes the entire QR code pattern. That’s when curiosity takes over, and learning becomes exciting.

So, are you ready to become a QR Code Detective? In this activity, you’ll create your own QR codes, compare different patterns, test how they work, and uncover the science hidden inside every scan.

Let’s get started!

Did You Know?
QR codes were invented in 1994 by the Japanese company Denso Wave to track automobile parts. Today, they are used worldwide for payments, education, transportation, healthcare, and much more.

STEM Activity: Become a QR Code Detective!

Objective

To investigate how QR codes store information and understand why even a tiny change in the data creates a completely different QR code.

Materials Required

Before we begin, gather these simple materials:

  • A smartphone with a camera or QR code scanner 
  • A laptop or tablet 
  • Internet connection 
  • White paper (optional) 
  • Printer (optional) 
  • Pencil and notebook for recording observations 

The best part? You probably already have everything you need at home or in your classroom!

Step 1: Create Your First QR Code

QR Codes Explained: Amazing STEM Activity to Discover the Science Behind Every Scan

Now it’s time to create your very first QR code.

Visit any free QR code generator website.

In the text box, type a simple message like:

Hello STEM!

Click the Generate QR Code button.

Within seconds, a brand-new QR code will appear on your screen.

Take a moment to observe it carefully instead of rushing to scan it.

QR Codes Explained: Amazing STEM Activity to Discover the Science Behind Every Scan

What Do You Notice?

At first, it might look like a collection of random black-and-white squares.

But if you look closely, you’ll notice three large squares placed in three corners of the QR code.

These are called Finder Patterns.

Think of them as road signs for your smartphone.

When you point your camera at the QR code, your phone first looks for these three large squares. They help the scanner recognise that it is looking at a QR code, identify which way it is facing, and determine where to begin reading the information.

Without these finder patterns, your phone would struggle to understand the QR code correctly.

Think Like a Scientist

Before moving to the next step, write down your prediction.

Do you think every QR code has exactly the same pattern? Why or why not?

Don’t worry about getting the answer right. In science, making predictions is just as important as finding the answer!

Step 2: Change Just One Word

Now let’s perform a simple experiment.

Go back to the QR code generator.

Instead of typing:

Hello STEM!

Change it to:

Hello Science!

Click Generate once again.

QR Codes Explained: Amazing STEM Activity to Discover the Science Behind Every Scan

You’ll now have two QR codes.

Place them side by side and compare them carefully.

QR Codes Explained: Amazing STEM Activity to Discover the Science Behind Every Scan

Time to Observe

You only changed one word, but look at the QR codes.

They don’t look the same anymore!

In fact, the entire pattern has changed.

Why does this happen?

Every letter you type is first converted into binary code, which is the language computers understand.

Instead of using the alphabet, computers work with only two numbers:

0 and 1

The QR code generator converts your message into thousands of these binary digits and then arranges them into the familiar black-and-white pattern.

That’s why even a tiny change in your message creates a completely different QR code.

A great way to think about it is this:

Just like every person’s fingerprint is unique, every QR code has its own unique pattern because it stores different information.

Mini Challenge

Try creating QR codes with:

  • Your name 
  • Your favourite hobby 
  • A short science fact 

Compare all three.

Which one has the most black squares?

Do you think longer messages create more detailed QR codes?

Write down your observations—you’ll use them later like a real scientist!

Step 3: Scan Your QR Code and Discover the Magic

QR Codes Explained: Amazing STEM Activity to Discover the Science Behind Every Scan

Now comes the exciting part!

Open the Camera app on your smartphone and point it towards the QR code you created.

Within a second or two, you’ll notice something amazing. Your phone instantly recognizes the code and displays the hidden information. If you created a website QR code, it will ask whether you’d like to open the webpage. If it’s a text message, the message will appear right on your screen.

Pretty cool, isn’t it?

But here’s the question…

How did your phone understand all those tiny black and white squares?

Your phone isn’t actually reading words. Instead, it’s reading a pattern.

The camera first searches for the three large finder patterns that you observed earlier. Once it finds them, it understands the QR code’s position—even if you’re holding your phone at an angle.

Next, the scanner reads thousands of tiny squares, called modules, one by one. Every black square represents 1, and every white square represents 0. Together, these binary numbers are converted back into letters, numbers, or website links.

All of this happens so quickly that we hardly notice the incredible technology working behind the scenes.

Observe

Try scanning the same QR code from different angles.

  • Does it still work? 
  • Can your phone read it upside down? 
  • What happens if you move the phone farther away? 

Write down what you observe. You might be surprised by how smart QR code scanners really are!

Step 4: Test the QR Code’s Superpower

QR Codes Explained: Amazing STEM Activity to Discover the Science Behind Every Scan

Now let’s try a challenge that surprises almost every student.

Take your printed QR code (or cover part of the screen with your finger).

Cover a small corner of the QR code—but don’t cover all three large finder patterns.

Now try scanning it again.

What Happened?

Did it still scan successfully?

For most QR codes, the answer is Yes!

This is because QR codes are designed with something called Error Correction.

Imagine you’re putting together a jigsaw puzzle. Even if one or two pieces are missing, you can often guess what the complete picture looks like.

QR codes work in a similar way. They store some extra information that helps your phone fill in missing parts if the code is slightly damaged.

That’s why you may have seen company logos printed in the middle of QR codes. Even though part of the pattern is covered, the code still works because the missing information can be reconstructed.

Try This

Cover different parts of the QR code and see when it stops working.

Can you figure out which parts are most important?

Step 5: Become a STEM Investigator

Scientists don’t stop after one experiment—they compare results.

Let’s do the same!

Create three different QR codes using the following information:

  • A website link 
  • A short message 
  • A Wi-Fi password (or a longer sentence if you prefer) 

Place all three QR codes side by side.

Now become a detective.

Look carefully at each pattern.

Observation Questions

  • Which QR code has the most black squares? 
  • Which pattern looks more crowded? 
  • Which QR code scans the fastest? 
  • Why do you think they all look different? 

You may notice that longer messages often produce more detailed QR codes because they need to store more information.

Record your findings in the table below.

QR Code Information Stored Pattern Changed? Scanned Successfully?
QR Code 1 Hello STEM Yes Yes
QR Code 2 Website Link    
QR Code 3 Longer Message    

Congratulations!

You’ve just completed your own STEM investigation by making predictions, testing ideas, observing results, and drawing conclusions—exactly what scientists and engineers do every day.

The Science Behind the Experiment

This simple activity may seem like fun, but it demonstrates all four areas of STEM working together.

Science

Your smartphone camera doesn’t actually “see” a QR code the way we do. It detects the light reflected from the black and white squares. The camera sensor converts this light into digital signals that the phone can process.

Technology

Special software inside your smartphone identifies the QR code, reads its unique pattern, and converts the binary data into useful information such as a website, message, or contact details.

Engineering

Engineers designed QR codes to be fast, reliable, and durable. Thanks to Error Correction, they can still be scanned even if they’re scratched, slightly torn, or partially covered.

Mathematics

Mathematics is the foundation of every QR code. The information you enter is converted into binary numbers (0s and 1s). Mathematical algorithms organize these numbers into the familiar square pattern, while geometry helps the scanner recognize the code from different angles.

Without mathematics, QR codes simply wouldn’t exist.

Safety Tips

Technology is useful, but it’s always important to use it wisely.

  • Scan QR codes only from trusted sources. 
  • Avoid scanning unknown QR codes found in public places. 
  • Never enter personal information on websites you don’t recognize. 
  • Ask an adult before downloading apps or files through a QR code. 
  • Keep your phone camera lens clean for accurate scanning.

Conclusion

It’s amazing how something so small can do something so powerful.

At first, a QR code may look like nothing more than a collection of black-and-white squares. But now you know there’s much more hidden inside. Every pattern is carefully designed to store information using binary numbers, mathematical algorithms, engineering principles, and smart technology.

Through this activity, you became more than just a learner—you became an investigator. You made predictions, observed patterns, tested your ideas, and discovered how your smartphone reads information in just a fraction of a second.

The next time you scan a QR code to pay for something, download a worksheet, or open a website, take a moment to think about what’s happening behind the scenes. Those tiny squares are silently carrying information from one device to another, making everyday tasks faster and easier.

Who knew that such a simple-looking square could hide so much science?

STEM isn’t always found in laboratories or space missions. Sometimes, it’s right there in the palm of your hand, waiting to be scanned!

Frequently Asked Questions (FAQs)

1. What does QR stand for?

QR stands for Quick Response. It was named this because the information stored inside the code can be read almost instantly by a scanner or smartphone camera.

2. Why do all QR codes look different?

Every QR code stores different information. Even changing a single letter or number changes the binary data, creating a completely new pattern of black-and-white squares.

3. Why can a QR code still work even if part of it is damaged?

QR codes include Error Correction, which stores extra information. This allows the scanner to recover missing data even if part of the QR code is scratched, folded, or covered by a logo.

4. Where do we use QR codes in everyday life?

QR codes are used almost everywhere today! You can find them on restaurant menus, digital payment apps, event tickets, product packaging, museums, classrooms, business cards, advertisements, and even public transport systems. They make sharing information quick, easy, and contactless.

 

Real Projects, Real Results

From hands-on learning to competition wins—see what Chitti students achieve

Find a class near you

Pick your city, district or county. Each page has local class times, kit shipping notes, and a trial button for families in that place.

India & US cities

India states

United States states