All paths

Charts on small screens

Build a space capsule's life-support screen in C++ on an ESP32-C3: scales and axes, line charts, bars, sparklines, gauges and a live dashboard on a 320 x 240 TFT.

ESP32-C3-DevKitM-1Free7 lessons5 h4 chapters1,796 XPCoding · Intermediate+150 XP

0 of 7 done

What you will build

2 projects, built step by step

7 lessons in 4 chapters, about 5 hours on a simulated ESP32-C3-DevKitM-1. Free, in your browser, every step checked by the simulator.

Chapter 1 project

Line charts

Sixteen hours of cabin CO2, 960 samples in 240 columns: joining points into lines, decimation that hides a spike, min and max columns that keep it, and an alarm line.

Open it in the simulator
Chapter 2 project

Gauges

The BME280's cabin pressure on a round dial: a value mapped onto an angle, sine and cosine for the needle's tip, ticks around the rim, a red zone, and redrawing only the needle.

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

Scales and lines

The function from data to pixels, and a line chart that hides nothing.

  1. Open205 XP

    Scales and axes

    Map a day of cabin temperatures onto 320 x 240 pixels: a linear scale, a y axis that has to flip, and tick marks on nice 1, 2, 5 steps.

    0 of 5 steps

  2. ProjectLocked410 XP

    Line charts

    Sixteen hours of cabin CO2, 960 samples in 240 columns: joining points into lines, decimation that hides a spike, min and max columns that keep it, and an alarm line.

    0 of 5 steps

4 questions, graded as you go.
Chapter 2

Bars, sparks and dials

Three more ways to show a number, and when each one is honest.

  1. Locked174 XP

    Bar charts

    Six oxygen tanks as a bar chart: bars that start at zero, widths and gaps shared out in whole pixels, sorting so the eye finds the emptiest tank, and color for the ones running low.

    0 of 4 steps

  2. Locked174 XP

    Sparklines

    Four charts the size of a word for oxygen, CO2, temperature and humidity: a scale each, the latest value in big digits, a shaded normal band, and a minimum span so noise stays flat.

    0 of 4 steps

  3. ProjectLocked410 XP

    Gauges

    The BME280's cabin pressure on a round dial: a value mapped onto an angle, sine and cosine for the needle's tip, ticks around the rim, a red zone, and redrawing only the needle.

    0 of 5 steps

5 questions, graded as you go.
Chapter 3

Live data

A ring buffer and a chart that keeps up ten times a second.

  1. Locked205 XP

    Scrolling real time

    The cabin temperature ten times a second into a ring buffer, an auto scale that forgets, and two ways to draw it: a scrolling chart that redraws everything and a scope sweep that redraws one column.

    0 of 5 steps

3 questions, graded as you go.
Chapter 4

Boss

The whole life-support dashboard from one sensor.

  1. Locked218 XP

    Boss: a sensor dashboard

    The capsule's life-support screen from one BME280: a sweeping temperature trace, a pressure dial, a humidity bar and an alarm banner, all drawn inside a 250 ms frame budget.

    0 of 6 steps

3 questions, graded as you go.
Syllabus

Every lesson in the course

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

Chapter 1

Scales and lines

  1. Scales and axesMap a day of cabin temperatures onto 320 x 240 pixels: a linear scale, a y axis that has to flip, and tick marks on nice 1, 2, 5 steps.
  2. Line chartsSixteen hours of cabin CO2, 960 samples in 240 columns: joining points into lines, decimation that hides a spike, min and max columns that keep it, and an alarm line.
Chapter 2

Bars, sparks and dials

  1. Bar chartsSix oxygen tanks as a bar chart: bars that start at zero, widths and gaps shared out in whole pixels, sorting so the eye finds the emptiest tank, and color for the ones running low.
  2. SparklinesFour charts the size of a word for oxygen, CO2, temperature and humidity: a scale each, the latest value in big digits, a shaded normal band, and a minimum span so noise stays flat.
  3. GaugesThe BME280's cabin pressure on a round dial: a value mapped onto an angle, sine and cosine for the needle's tip, ticks around the rim, a red zone, and redrawing only the needle.
Chapter 3

Live data

  1. Scrolling real timeThe cabin temperature ten times a second into a ring buffer, an auto scale that forgets, and two ways to draw it: a scrolling chart that redraws everything and a scope sweep that redraws one column.
Chapter 4

Boss

  1. Boss: a sensor dashboardThe capsule's life-support screen from one BME280: a sweeping temperature trace, a pressure dial, a humidity bar and an alarm banner, all drawn inside a 250 ms frame budget.
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 Charts on small screens

Is Charts on small screens free?

Yes. All 7 lessons of Charts on small screens are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real ESP32-C3-DevKitM-1?

No. Every lesson runs on a simulated ESP32-C3-DevKitM-1 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 Charts on small screens take?

About 5 hours: 7 lessons in 4 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: Line charts and Gauges.

Where do I start?

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