Source: https://mokxi.com/learn/path/build-graphing-calculator
Updated: 2026-11-20

All paths

# Build a graphing calculator

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

Arduino Uno R3 Free 6 lessons 6 h 3 chapters 2,295 XP Maker · Advanced +250 XP

0 of 6 done

Start the course free Keypad input Lesson plan for teachers

What you will build

## 3 projects, built step by step

6 lessons in 3 chapters, about 6 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### 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.
Open it in the simulator

Chapter 2 project

### 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.
Open it in the simulator

Chapter 3 project

### 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.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Keys to numbers

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

Open 227 XP

### 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.

0 of 5 steps

Start What is in it

Project Locked 576 XP

### 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.

0 of 6 steps

5 questions, graded as you go.

Chapter 2

## Variables and graphs

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

Locked 288 XP

### 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.

0 of 6 steps

Project Locked 500 XP

### 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.

0 of 5 steps

5 questions, graded as you go.

Chapter 3

## Explore

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

Locked 250 XP

### 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.

0 of 5 steps

Project Locked 454 XP

### 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.

0 of 5 steps

3 questions, graded as you go.

Syllabus

## Every lesson in the course

All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Keys to numbers

- 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.
- 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.

Chapter 2

### Variables and graphs

- 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.
- 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.

Chapter 3

### Explore

- 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.
- 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.

Keep going

## The next course on your track

Build a graphing calculator is part of the maker track, a ladder of courses from zero to expert.

Next course

### Build a greenhouse controller

Build the controller that runs a greenhouse: climate and VPD, fans with hysteresis, safe watering, a photoperiod, schedules and a season log.
Open the next course

Track

### Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.
See every course on the track

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Build a graphing calculator

Is Build a graphing calculator free?

Yes. All 6 lessons of Build a graphing calculator are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a graphing calculator take?

About 6 hours: 6 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: An expression parser, Plotting and Project: a pocket grapher.

Where do I start?

With "Keypad input", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
