Lesson plan

Build a graphing calculator lesson plan

Scan a keypad, write a real expression parser, add variables, and plot, zoom, trace and solve on a TFT.

3 chapters, 6 lessons, about 6 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

The unit

Objectives and materials

By the end, students can

  • A keypad scanned by hand and a parser that turns text into an answer.
  • Values that stay, and a function drawn across the screen.
  • Zoom, trace and solve, then a pocket grapher of your own.

Materials for the whole unit

  • Arduino Uno R3
  • Full-size breadboard
  • Keypad, 5x4 calculator
  • TFT display, 240x320

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 2 h 5 min

Keys to numbers

A keypad scanned by hand and a parser that turns text into an answer.

LessonTimeWhat students do
Keypad inputScan a 5x4 keypad by hand: one row low at a time, columns read with pull-ups, a 2nd key that doubles what twenty keys can do, and the ghost three keys make.55 min
  1. Twenty keys, nine wires
  2. Find a key
  3. The 2nd key
  4. A ghost
  5. How keyboards beat ghosts
An expression parserTurn text into an answer: tokens, then the shunting-yard algorithm to reverse Polish notation, then a stack. Precedence, brackets, powers from the right, a unary minus and honest errors.70 min
  1. From text to RPN
  2. Brackets
  3. Powers group from the right
  4. The other minus
  5. Saying what went wrong
  6. On the keypad

Materials

  • Arduino Uno R3
  • Full-size breadboard
  • Keypad, 5x4 calculator
  • TFT display, 240x320

Check for understanding

Each student finishes "An expression parser" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "On the keypad".

Chapter 2. About 2 h 5 min

Variables and graphs

Values that stay, and a function drawn across the screen.

LessonTimeWhat students do
VariablesStore values in a to z, use ans and pi, call sin, cos and sqrt, and get honest answers for the square root of a negative, a division by zero and a name with no value.70 min
  1. Store a value
  2. Use it
  3. ans
  4. Functions
  5. Honest answers
  6. A name with no value
PlottingPlot y= anything: compile once, evaluate once per column, join the points with vertical runs, and leave gaps at asymptotes and where the function has no value.55 min
  1. The window
  2. y=x^2
  3. Compile once
  4. An asymptote
  5. Where it has no value

Materials

  • Arduino Uno R3
  • Full-size breadboard
  • Keypad, 5x4 calculator
  • TFT display, 240x320

Check for understanding

Each student finishes "Plotting" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Where it has no value".

Chapter 3. About 1 h 50 min

Explore

Zoom, trace and solve, then a pocket grapher of your own.

LessonTimeWhat students do
Zoom and traceDrive the graph from the keypad: a trace cursor that reads off values, a root finder that halves its way to the answer, zoom and pan.55 min
  1. A graph to explore
  2. Trace
  3. Find a root
  4. Zoom in
  5. Pan
Project: a pocket grapherUse the finished grapher on a cubic: find all three roots, read a table of values, and share the curve you explore next.55 min
  1. A cubic
  2. The easy root
  3. The hard root
  4. A table of values
  5. Share a curve

Materials

  • Arduino Uno R3
  • Full-size breadboard
  • Keypad, 5x4 calculator
  • TFT display, 240x320

Check for understanding

Each student finishes "Project: a pocket grapher" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Share a curve".

Your class

Teach this unit as a class

Start a class from this course and its 6 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.