Lesson Details
How to program individual LEDs in an RGB LED strip to make custom patterns?
Activities:
- Creating a script to glow all the LEDs to different colors.
- Creating a script to simulate the traffic signal rules using 3 LEDs.
Curriculum:
Physical Computing for Kids – Level 1
Classroom Bundle Used: STEM Classroom Bundle, STEM Mini Classroom Bundle
Prerequisites:
Displaying Patterns on RGB LED Strip
Download Resources
Lesson Overview
The students will learn the following things:
- Blocks to control the individual color of the RGB LED strip.
- Activity 1: Controlling individual LEDs.
- Activity 2: Making a custom pattern.
Material Required
1 set of the following material per group of 3-5 students:
Component | Image | Quantity | Available in Bundle |
---|---|---|---|
evive | 1 | ||
USB A-B Cable | 1 | ||
Multi Colour RGB Lights | 10 |
Lesson Outline
Revision of last session - 10 minutes
- What is the RGB LED strip?
- Digital RGB LED strip.
Circuitry - 5 minutes
- Connect RGB LED strip to evive
Blocks - 10 minutes
PictoBlox Lighting Extension blocks to control the individual RGB LED:
- Initialise RGB strip () with () LED pixels on pin () block
- Set RGB strip () LED pixel () color () block
- Show RGB strip ()
Activity 1 - 15 minutes
- Make a script to give a different color each LED.
Activity 2 - 20 minutes
- Make a pattern where LEDs will glow one by one from 1 to 10. So, for 1 second first LED will glow, then it will be white and the second LED will glow the color for another 1 second. This will go till the last LED and then repeat.