Top of page

Primary Sources in Science Classrooms: Computer Science and Programming with Punched Cards (Part 1)

Share this post:

This post was written by Trey Smith, the Library of Congress 2015-16 Science Teacher in Residence. It is part one of a two-part series written for Computer Science Education Week, December 7-13.

In the early 1800s, English inventor Charles Babbage derived inspiration for a mechanical computer from a system for weaving fabrics using punched cards. Babbage’s ideas from two centuries ago form the foundation of today’s ideas about computing. Studying primary sources showing a modern version of the weaving systems that Babbage observed can help students learn about key principles in computer science.

Weaver Maria Atiles at her loom on the second floor. Martha Cooper, 1994
Weaver Maria Atiles at her loom on the second floor. Martha Cooper, 1994

Detail of Weaver Maria Atiles at her loom on the second floor. Martha Cooper, 1994
Detail of Weaver Maria Atiles at her loom on the second floor. Martha Cooper, 1994

Items from the Working in Paterson collection provide a glimpse into the manufacturing process that inspired Babbage. Encourage students to analyze two photographs of a weaver.

  • What stands out about what the person is doing?
  • What might the machine do? How might it work?

Analysis may eventually focus on the set of folded cards at the top of each photo. A closer look reveals a series of holes in the cards. Study the system from another perspective.

  • What are the cards and holes for?
  • What might the cards have to do with weaving?

    View of punched "cards" that control pattern of jacquard loom. Martha Cooper, 1994
    View of punched “cards” that control pattern of jacquard loom. Martha Cooper, 1994

Add an additional layer to the investigation by playing a recording in which another Paterson plant employee describes the process of developing fabric with a customer. The interviewee explains how punched cards are part of a larger system.

At this point, students may conduct background research on looms using punched cards. After some digging, students will discover that Jacquard looms, named after French merchant Joseph Marie Jacquard, employ a series of punched cards to lay down patterns of silk string to form the designs in a fabric. In the early 19th century, anxiety about machines replacing humans emerged as use of Jacquard’s looms boomed.

Adding Machines. The Ocala evening star. (Ocala, Fla.), 27 Oct. 1914
Adding Machines. The Ocala evening star. (Ocala, Fla.), 27 Oct. 1914

The looms influenced Babbage, who envisioned that punched cards would allow him to build a programmable, general-purpose computer. Previously, Babbage had imagined a difference engine that could perform mathematical calculations. His difference engine followed in the tradition of Morland’s 1673 calculating device, Leibniz’s 1727 calculator, and Pascal’s 1819 calculating machine.

Babbage’s ground-breaking contribution to computer science, however, was the idea that a machine could be built such that its function could change based on instructions provided by a programmer using punched cards. Ada Lovelace, another important figure in computer science history, devised programs for Babbage’s imagined analytical engine.

Although Babbage never built his analytical engine, others took up his ideas, and I’ll explore an example in a future blog post.

Students might compare the history of using punched cards in computing with the development of physical switches, vacuum tubes, magnetic tape, transistors, and integrated circuits. Students might also think about the nature of punched cards, with their opened and closed holes, as a precursor to the “on” and “off” nature of binary code with its ones and zeros. What other principles might Jacquard’s looms inspire students to consider in their study of computer science?

Comments (2)

  1. Pam and Nikki, some ideas you can have your students do with these cards:* Students can spell words with matengic letters* Students can spell words with pipe cleaners* Students can rainbow write words (always a favorite in my class)* Students can cut letters out of a magazine to spell words* Students can stamp words* Students can use bingo dabbers to spell words* Students can form letters with play dough to spell words (or cut them out of play dough with letter cookie cutters)If you have students that can put these words into sentences that would be wonderful. They can even use the words to write a story! It all depends on their level :)Caitlin

Add a Comment

This blog is governed by the general rules of respectful civil discourse. You are fully responsible for everything that you post. The content of all comments is released into the public domain unless clearly stated otherwise. The Library of Congress does not control the content posted. Nevertheless, the Library of Congress may monitor any user-generated content as it chooses and reserves the right to remove content for any reason whatever, without consent. Gratuitous links to sites are viewed as spam and may result in removed comments. We further reserve the right, in our sole discretion, to remove a user's privilege to post content on the Library site. Read our Comment and Posting Policy.


Required fields are indicated with an * asterisk.