Source: https://mokxi.com/teachers/plans/build-graphing-calculator
Updated: 2026-11-19

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.

Start a class from this course

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.

Lesson | Time | What students do

Keypad input Scan 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

- Twenty keys, nine wires
- Find a key
- The 2nd key
- A ghost
- How keyboards beat ghosts

An expression parser Turn 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

- From text to RPN
- Brackets
- Powers group from the right
- The other minus
- Saying what went wrong
- 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.

Lesson | Time | What students do

Variables Store 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

- Store a value
- Use it
- ans
- Functions
- Honest answers
- A name with no value

Plotting Plot 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

- The window
- y=x^2
- Compile once
- An asymptote
- 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.

Lesson | Time | What students do

Zoom and trace Drive 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

- A graph to explore
- Trace
- Find a root
- Zoom in
- Pan

Project: a pocket grapher Use the finished grapher on a cubic: find all three roots, read a table of values, and share the curve you explore next. | 55 min

- A cubic
- The easy root
- The hard root
- A table of values
- 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.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
