Lesson plan

Wearables and light-up clothing lesson plan

Build a jacket that reacts to claps and shakes: a tiny board, a LiPo, sewn circuits, motion and sound triggers, and clothes you can wash.

3 chapters, 7 lessons, about 6 hours, on the Arduino Nano. Every lesson runs in the browser, with nothing to install.

The unit

Objectives and materials

By the end, students can

  • A tiny board, a LiPo budget, and the resistance of a sewn circuit.
  • Make the lights react to a shake and to a clap.
  • Comfort, washing, and the finished jacket.

Materials for the whole unit

  • Accelerometer, ADXL345
  • Addressable RGB LEDs
  • Arduino Nano
  • Battery: AA, coin cell, LiPo
  • LED
  • Resistor x 2
  • Sound sensor, KY-038

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

Power and thread

A tiny board, a LiPo budget, and the resistance of a sewn circuit.

LessonTimeWhat students do
Tiny boardsMeet the Nano, an Uno small enough to sew into a sleeve, and drive a strip of eight WS2812 LEDs from one data pin.50 min
  1. A jacket that reacts
  2. An Uno, shrunk
  3. One wire, eight LEDs
  4. Any color
  5. Dark
LiPo powerA one-cell LiPo: 3.7 V, a mAh rating, a budget for the LEDs at full white and dim, and the rules for charging it safely.50 min
  1. A flat battery
  2. Full white
  3. Dim lasts longer
  4. Running low
  5. Charging safely
Sewn circuitsConductive thread is a resistor you sew. Measure the volts it drops, see why long runs limit the current, and plan the stitches.50 min
  1. Thread that conducts
  2. Light it
  3. Measure the thread
  4. A longer run
  5. Plan the stitches

Materials

  • Accelerometer, ADXL345
  • Addressable RGB LEDs
  • Arduino Nano
  • Battery: AA, coin cell, LiPo
  • LED
  • Resistor x 2
  • Sound sensor, KY-038

Check for understanding

Each student finishes "Sewn circuits" 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: "Plan the stitches".

Chapter 2. About 1 h 40 min

Triggers

Make the lights react to a shake and to a clap.

LessonTimeWhat students do
Motion triggersRead an ADXL345 accelerometer register by register, turn its counts into g, and make the strip sparkle when someone shakes.50 min
  1. An accelerometer
  2. Gravity
  3. Tilt it
  4. Shake
  5. Sparkle
Sound triggersA KY-038 sound sensor on an interrupt: catch the first edge of a clap, ignore the rest, and count double claps.50 min
  1. A loud-noise detector
  2. Clap
  3. One clap, many pulses
  4. Double clap
  5. Loud places

Materials

  • Accelerometer, ADXL345
  • Addressable RGB LEDs
  • Arduino Nano
  • Battery: AA, coin cell, LiPo
  • LED
  • Resistor x 2
  • Sound sensor, KY-038

Check for understanding

Each student finishes "Sound triggers" 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: "Loud places".

Chapter 3. About 1 h 50 min

A reactive jacket

Comfort, washing, and the finished jacket.

LessonTimeWhat students do
Comfort and washingClothes are worn for hours and washed: cap the brightness, sleep when still, and build in a wash mode that says to take the battery out.50 min
  1. Cool on skin
  2. Sleep when still
  3. Wake on a move
  4. Wash mode
  5. Seal and soften
Project: a reactive jacketPut it all together: a jacket that breathes, flashes on a clap, sparkles on a shake and saves its battery when it runs low.60 min
  1. Jacket on
  2. Clap
  3. Shake
  4. Low battery
  5. Status
  6. Make it yours

Materials

  • Accelerometer, ADXL345
  • Addressable RGB LEDs
  • Arduino Nano
  • Battery: AA, coin cell, LiPo
  • LED
  • Resistor x 2
  • Sound sensor, KY-038

Check for understanding

Each student finishes "Project: a reactive jacket" 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 7 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.