Latest / Kidcast Daily / Ep396: How do QR codes and Barcodes work?
Transcript
- 0:08Spin the wheel, let's take a ride.
- 0:11Sports and science bursting from inside a world of wonder.
- 0:17Open wide. Come on kids, let's amplify kid
- 0:22cats. Daily starts your day, Fun and
- 0:26laughter come your way. Sports and Trinia games galore.
- 0:33Greetings curious explorers. This is Kickass Daily, your
- 0:37daily adventure through science, sports, world history, cool
- 0:42inventions and everything in between.
- 0:45Today we are unlocking the secrets behind those black and
- 0:48white lines on packages and the square pixel patterns you see on
- 0:52posters, tickets and screens. So let's get on with today's
- 0:57episode. First up, barcodes.
- 1:11A barcode is a set of black bars and white spaces printed on
- 1:15items like cereal boxes, books, and toys.
- 1:19Those bars are not random. They're a way to write numbers
- 1:23using different widths of bars and spaces.
- 1:26When a cashier slides a product over the scanner, the scanner
- 1:30shines light on the bars and measures how much light bounces
- 1:33back from the white gaps versus the black lines.
- 1:37That pattern of light and dark turns into numbers in a
- 1:40computer. Those numbers match a product in
- 1:43the store's database, like chocolate chip cookies 300
- 1:47grams. The screen shows the price and
- 1:50the store updates its inventory count.
- 1:53A common type in the United States and Canada is called
- 1:57UPCA. It usually holds 12 digits.
- 2:00Most of those digits identify the brand and the item.
- 2:04One special digit at the end is the check digit.
- 2:08The check digit is calculated from the other digits using
- 2:11simple math. If the scanner reads the bars
- 2:14incorrectly, the math will not work out and the system knows
- 2:18something is wrong. This helps avoid mistakes at
- 2:21checkout. Barcodes are called 1
- 2:23dimensional or 1D because the data runs in One Direction left
- 2:28to right. You can only fit a small amount
- 2:31of information that way, usually just a set of numbers.
- 2:35That is actually good enough for a lot of tasks in a store.
- 2:39The barcode does not need to say the product name or price
- 2:42itself, it only needs to hold the ID number.
- 2:46The computer in the store looks up the rest.
- 2:49How does the scanner actually read it?
- 2:52Early scanners used a tiny red laser that sweeps across the
- 2:56lines. The sensor sees bright
- 2:58reflections from white spaces and dark from black bars.
- 3:02Newer scanners and phone apps use camera images and software
- 3:06to find the bars and decode the widths.
- 3:09The software also checks for quiet zones, which are blank
- 3:13spaces on the left and right sides that mark where the
- 3:16barcode starts and ends. Did you know many barcodes can
- 3:19be read even if they're on curved surfaces like a bottle
- 3:22label, as long as the bars are not too distorted and the quiet
- 3:26zones are clear? Now let's talk about QR codes.
- 3:30QR stands for a quick Response, a type of two-dimensional code
- 3:34that stores data in rows and columns of tiny squares instead
- 3:39of bars. Those squares are called
- 3:41modules. Because they go both across and
- 3:44down. QR codes can store much more
- 3:46data than a 1D barcode. They can hold website links,
- 3:50short messages, phone numbers, or even a small contact card.
- 3:55When you point your phone camera at a QR code, the app finds the
- 3:59big square markers in three corners.
- 4:02Those are called Finder patterns.
- 4:04They help the software locate the code, set the alignment and
- 4:08figure out the size. Then the app reads the pattern
- 4:11of black and white modules and turns it back into text or a web
- 4:15address. QR codes have built in error
- 4:23correction. This means the code includes
- 4:26extra math based data so the reader can fix some mistakes
- 4:29caused by dirt, scratches or folds.
- 4:32Depending on the error correction level, AQR code can
- 4:36often still be read even if part of it is damaged.
- 4:39Did you know some QR codes include alignment squares inside
- 4:43the grid to help the reader handle slight bending or camera
- 4:46angles? Here is a real life example you
- 4:49might have used at a museum. A sign might have a QR code next
- 4:54to a painting. You scan it and your phone opens
- 4:57a page with the artist's name, the year it was painted, and a
- 5:01short audio guide at a sports stadium.
- 5:04Your ticket might be AQR code on your phone screen.
- 5:07The gate scanner checks the pattern to match your seat and
- 5:10game time. In both cases, the code is just
- 5:14a fast way to pass data from paper or a screen to a computer.
- 5:18Time for a quick trivia challenge.
- 5:21What does the QR and QR code stand for?
- 5:27It stands for Quick Response. The code was designed to be
- 5:30scanned quickly and to hold more information than older 1D
- 5:34barcodes. Here is another neat detail.
- 5:38QR codes come in versions that control how many modules are in
- 5:42the grid. Version one is 21 by 21 modules
- 5:46and the size grows by 4 modules per side each version.
- 5:50Higher versions can hold more characters.
- 5:53The more data you try to store, the denser the pattern becomes
- 5:57and the smaller the modules need to be if you want to keep the
- 6:00code the same physical size on the page.
- 6:03That is why very busy QR codes can be hard to scan if they are
- 6:07printed too small. Let's check your observation
- 6:15skills with a yes or no question.
- 6:17Can a QR code be scanned even if you hold your phone at an angle
- 6:22or upside down? Yes.
- 6:27The Finder patterns in the corners let the software figure
- 6:30out the orientation. The reader rotates and corrects
- 6:34the image before decoding. Barcodes and QR codes are often
- 6:39used together in the same places.
- 6:41A shipping box might have a 1D barcode for quick, rugged
- 6:45scanning in a warehouse and a QR code that links to a web page
- 6:49with detailed instructions. Barcodes are great for speed
- 6:52when you only need an ID number. QR codes are great when you need
- 6:57to pack more data into a small space or when people will scan
- 7:01with smartphones. Let's add some safety and
- 7:04etiquette tips. You should only skin codes from
- 7:07sources you trust. If a QR code is stuck over
- 7:10another code on a public sign, that could be misleading.
- 7:14On phones, you can often preview the web link before opening it.
- 7:18At school events and libraries, staff usually provide official
- 7:22codes on printed signs or screens.
- 7:25Did you know many camera apps show the website address on
- 7:28screen before you tap so you can confirm it looks right?
- 7:31Want a cool historical nugget? Did you know the very first
- 7:35product ever scanned with a barcode at a checkout in 1974
- 7:40was a pack of Wrigley's Juicy Fruit chewing gum in Ohio?
- 7:44That moment showed stores that machine reading could speed up
- 7:47lines and track inventory more accurately.
- 7:55Here comes a yes or no tech question that might surprise
- 7:58you. Does a QR code always need the
- 8:01Internet to work? No, the code itself stores the
- 8:08data. If the data is just text or a
- 8:11phone number, your device can show it without Internet.
- 8:14You only need Internet if the code points to a web page or
- 8:18needs to fetch something online. You can even make your own
- 8:21codes. Many websites let you type text
- 8:24or a link and download a printable QR code.
- 8:28If you do this for a school project, make the printed code
- 8:31at least a couple of centimeters wide and leave a quiet zone of
- 8:35blank space around it. High contrast matters.
- 8:39Black modules on white paper are easiest to scan.
- 8:43If you must use color, choose a dark color for modules and a
- 8:47very light background. Now a final trivia question to
- 8:51round out your knowledge. Which country was the birth
- 8:54place of the QR code? Japan.
- 9:00It was created in 1994 by a company called Denso Wave to
- 9:04track parts and factories, and later it spread to many other
- 9:08uses around the world. Here is a quick experiment you
- 9:12can try at home with an adult's permission.
- 9:14Find a cereal box with a barcode and try scanning it with a free
- 9:18barcode app. You will likely see a number
- 9:21called a GTN, which stands for Global Trade Item Number.
- 9:26Now print a simple QR code that shows a short message like Hello
- 9:30from Science Club. Tape it on a notebook and scan
- 9:34it with your phone camera. You will notice that the barcode
- 9:37connects you to a database entry, while the QR code reveals
- 9:41the actual message directly. Did you know some supermarket
- 9:45scanners can read barcodes from any direction because they use
- 9:48multiple laser lines or camera sensors that crisscross the
- 9:52code? This helps items get faster
- 9:55without having to line them up perfectly.
- 9:57Before we wrap up, here is one more question to test a fresh
- 10:01detail you have not heard yet. Could a store use a barcode that
- 10:06encodes letters instead of only numbers?
- 10:11Yes. Some barcode types like code 128
- 10:15and code 39 can encode letters and symbols, not just digits.
- 10:20UPC is mainly numeric, but other formats are more flexible.
- 10:30Let's recap what we learned today.
- 10:33Bar codes are 1D patterns of bars and spaces that usually
- 10:37hold numbers with a check digit to catch errors.
- 10:40Scanners use light or cameras to read them quickly, making
- 10:44checkout and inventory fast and accurate.
- 10:48QR codes are 2D grids of modules with Finder patterns for
- 10:52alignment and error correction to handle some damage.
- 10:55They can store more information like links or text, and
- 10:59smartphone cameras can read them from different angles.
- 11:03We talked about real uses like tickets, museum signs, and
- 11:06shipping. We shared that QR stands for
- 11:09Quick Response started in Japan, and that QR codes do not always
- 11:14need the Internet. We also learned that some
- 11:17barcode types can include letters.
- 11:19Next time you see lines on a box or a square of tiny squares on a
- 11:23poster, you will know exactly how your device turns those
- 11:27patterns into useful information.
- 11:30Thanks for exploring with me, and keep your curiosity switched
- 11:33on for tomorrow's adventure grab.
- 11:37Your breakfast feelings, fine adventures waiting.
- 11:41Don't be late. Today's.
- 11:43The day we celebrate.