Lesson plan

Build a thermal camera lesson plan

Build a thermal camera on an Uno: sixty-four heat pixels, color maps, bilinear upscaling, a hot spot finder and snapshots to microSD.

3 chapters, 6 lessons, about 5 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

  • Sixty-four temperatures, turned into a picture and made smooth.
  • Find the hot spot to better than a pixel, and save what you see.
  • Put it all together into a tool that finds where a house leaks.

Materials for the whole unit

  • Arduino Uno R3
  • microSD card module
  • Pushbutton
  • TFT display, 240x320
  • Thermal camera, AMG8833

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 30 min

Seeing heat

Sixty-four temperatures, turned into a picture and made smooth.

LessonTimeWhat students do
64 heat pixelsRead an AMG8833 Grid-EYE: sixty-four temperatures ten times a second, laid out row by row, with the hottest and coldest found in one pass.50 min
  1. A camera for heat
  2. Read the grid
  3. Move the warm spot
  4. Hotter
  5. Nothing there
Color mapsTurn temperatures into colors: a palette of our own, a gray one, and the choice every thermal camera makes between an automatic and a fixed range.50 min
  1. Numbers into colors
  2. Gray is honest
  3. A fixed range
  4. Warm the room
  5. Read a color
InterpolationUpscale 8x8 to 29x29 with bilinear interpolation: three blends of four pixels, and what it can and cannot show you.50 min
  1. Smoother
  2. On a real pixel
  3. Halfway between
  4. Bilinear
  5. Smooth is not sharp

Materials

  • Arduino Uno R3
  • microSD card module
  • Pushbutton
  • TFT display, 240x320
  • Thermal camera, AMG8833

Check for understanding

Each student finishes "Interpolation" 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: "Smooth is not sharp".

Chapter 2. About 1 h 40 min

Measuring and keeping

Find the hot spot to better than a pixel, and save what you see.

LessonTimeWhat students do
Hot spotFind the hot spot to better than a pixel with a weighted centroid, see how the frame edge pulls it, and raise an alarm over 50 C.50 min
  1. Better than a pixel
  2. Follow it
  3. The edge pulls
  4. Too hot to touch
  5. Cold spots too
SnapshotsSave frames to a microSD card as CSV with names that never collide, list them, and handle a missing card without a crash.50 min
  1. A card on SPI
  2. Take a snapshot
  3. Names that do not collide
  4. What is on the card
  5. No card

Materials

  • Arduino Uno R3
  • microSD card module
  • Pushbutton
  • TFT display, 240x320
  • Thermal camera, AMG8833

Check for understanding

Each student finishes "Snapshots" 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: "No card".

Chapter 3. About 1 h

Find the drafts

Put it all together into a tool that finds where a house leaks.

LessonTimeWhat students do
Project: find the draftsTurn the camera into a draft finder: the room from the median, cold leaks and warm spots marked on a smooth picture, and snapshots for the record.60 min
  1. A draft finder
  2. What normal is
  3. A cold draft
  4. Under the door
  5. Keep the evidence
  6. Make it yours

Materials

  • Arduino Uno R3
  • microSD card module
  • Pushbutton
  • TFT display, 240x320
  • Thermal camera, AMG8833

Check for understanding

Each student finishes "Project: find the drafts" 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: "Make it yours".

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.