Source: https://mokxi.com/teachers/plans/build-light-painting-stick
Updated: 2026-11-19

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.

Start a class from this course

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.

Lesson | Time | What students do

LED columns Treat 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

- A stick of light
- Lamp test
- A column as a number
- Count them

Images to columns Store 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

- A picture, sideways
- Paint it
- How long
- Words

SD bitmaps Read 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

- Pictures from a card
- Make one
- Read the header
- Padding and upside down
- 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.

Lesson | Time | What students do

Timing Set 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

- How wide is a column?
- Fast
- Slow
- Paint at that speed

Long exposures Set 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

- Camera settings
- How long to expose
- Countdown
- Close the shutter

Project: write your name in light Type 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

- Your name
- Type it
- Paint it
- 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.

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.
