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.
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.
Columns of light
One column of pixels, pictures stored sideways, and bitmaps from a card.
| Lesson | Time | What 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 |
|
| 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 |
|
| 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 |
|
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".
In the dark
Timing for your walk, camera settings, and your name in light.
| Lesson | Time | What 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 |
|
| 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 |
|
| 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 |
|
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".
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.