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.
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.
Keys to numbers
A keypad scanned by hand and a parser that turns text into an answer.
| Lesson | Time | What 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 |
|
| 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 |
|
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".
Variables and graphs
Values that stay, and a function drawn across the screen.
| Lesson | Time | What 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 |
|
| 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 |
|
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".
Explore
Zoom, trace and solve, then a pocket grapher of your own.
| Lesson | Time | What 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 |
|
| 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 |
|
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".
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.