Lesson plan

Build a light painting stick lesson plan

A strip of LEDs as one column of pixels: pictures as columns, BMPs from microSD, timing for your walk and your name in light on a long exposure.

2 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

  • One column of pixels, pictures stored sideways, and bitmaps from a card.
  • Timing for your walk, camera settings, and your name in light.

Materials for the whole unit

  • Addressable RGB LEDs
  • Arcade button
  • Arduino Uno R3
  • microSD card module
  • Potentiometer

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

Columns of light

One column of pixels, pictures stored sideways, and bitmaps from a card.

LessonTimeWhat students do
LED columnsTreat a 16-LED strip as one column of pixels: a lamp test, then any column typed as a 16-bit number lit on the stick.50 min
  1. A stick of light
  2. Lamp test
  3. A column as a number
  4. Count them
Images to columnsStore a picture sideways as columns in flash, build text from a 5x7 font doubled to the stick's height, and play them out on START.50 min
  1. A picture, sideways
  2. Paint it
  3. How long
  4. Words
SD bitmapsRead a 24-bit BMP from microSD by its real rules: a 54-byte header, rows stored bottom first, blue-green-red pixels and rows padded to four bytes.60 min
  1. Pictures from a card
  2. Make one
  3. Read the header
  4. Padding and upside down
  5. Paint the file

Materials

  • Addressable RGB LEDs
  • Arcade button
  • Arduino Uno R3
  • microSD card module
  • Potentiometer

Check for understanding

Each student finishes "SD bitmaps" 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: "Paint the file".

Chapter 2. About 2 h 30 min

In the dark

Timing for your walk, camera settings, and your name in light.

LessonTimeWhat students do
TimingSet the time per column with a knob and work out what it means at walking speed, so the picture comes out the right shape.50 min
  1. How wide is a column?
  2. Fast
  3. Slow
  4. Paint at that speed
Long exposuresSet up the camera for light painting, work out the exposure the picture needs, and sync it with a three-blink countdown on the stick.50 min
  1. Camera settings
  2. How long to expose
  3. Countdown
  4. Close the shutter
Project: write your name in lightType your name, set the speed, count down and paint it in rainbow light, then take the stick out at night with a camera.50 min
  1. Your name
  2. Type it
  3. Paint it
  4. Go out at night

Materials

  • Addressable RGB LEDs
  • Arcade button
  • Arduino Uno R3
  • microSD card module
  • Potentiometer

Check for understanding

Each student finishes "Project: write your name in light" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Go out at night".

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.