The Secret Language of Barcodes
Chapter Field Guide
- Pattern of dark/light
- SCANNER
- Reads the pattern
- COMPUTER
- Looks up the product
Measurable Learning Outcomes
- Compute the EAN-13 check digit using alternating weights of 1 and 3.
- Explain how 7-module L, G, and R encodings let scanners read barcodes upside-down.
- Trace how the first digit of EAN-13 is encoded in the L/G parity pattern of the left six digits.
Core Scientific Intuition
An EAN-13 barcode divides its width into 95 equal narrow units called modules. Guard bars at the start (101), center (01010), and end (101) let the scanner calibrate width and speed. Each digit occupies 7 modules, and the choice between L (odd parity) and G (even parity) on the left half secretly encodes the 13th leading digit while also telling the scanner which way is right-side up.
Units & assumptions: Positions counted 1 to 12 from the left; all symbols are decimal digits 0–9.
Worked Example
For prefix 400638133393, odd positions sum to 4+0+3+1+3+9 = 20 and even positions sum to 0+6+8+3+3+3 = 23. Weighted sum = 20 + 3(23) = 89. Check digit = (10 - 9) mod 10 = 1.
Hands-On Exploration
Interactive Laboratory
Test the concepts directly with 4 interactive panels, live controls, and visual feedback.
Open Interactive Lab →Three Guided Projects
Structured experiments with hypotheses, boundary tests, hints, and reflection prompts.
View 3 Projects →Source Code (6 Snippets)
Inspect byte-identical printed JavaScript blocks, download `.js` files, or test runnable blocks in the isolated sandbox.
Browse Code →Self-Check Quiz (5 Questions)
Immediate explanations for every choice, unlimited retries, and local-only score tracking.
Take Self-Check Quiz →Book Chapter Outline (Reference Guide)
Section headings from Volume 1 for cross-referencing with the printed book.
Show all 35 book section headings
- A guide to reading information with light.
- The Secret Language of Barcodes
- How a single beep leads to a product name and price.
- A secret alphabet of light and dark
- Try it with a pencil
- Meet the barcode pioneers
- Bernard Silver (1924 to 1963)
- Norman Joseph Woodland (1921 to 2012)
- From an idea to the supermarket
- George Joseph Laurer (1925 to 2019)
- Three dates that changed shopping
- What happens between the light and the beep?
- The 95-module secret
- Three alphabets for ten digits
- How a missing digit is hidden in plain sight
- The last digit is a guardian
- Sum = 83; Check digit = 7; Total = 90
- Build your own barcode encoder
- Turn bits into a picture
- Teach your machine to read the code
- Read a real picture, one row at a time
- Invent a checkout that knows your products
- Expected result
- Three experiments, one browser
- A: Build and print a pattern
- B: Become the scanner
- C: Run your miniature supermarket
- The mystery of the missing first digit
- 08 / When the machine gets it wrong
- Your own science-fair shop
- Extension challenges
- What you now know
- Answers to the detective mission
- Words every barcode detective should know
- 11. Further reading and references
Primary Sources & Further Reading
External links are provided for independent verification and deeper study. Link availability can change over time; see the Resources page for verification notes.