Coding Colors: Sprite‑Interactive RGB LED with PictoBlox and Arduino ! Paint with Light
Автор: Weekend STEM Robotics
Загружено: 2025-09-19
Просмотров: 34
Описание:
Overview
Build a Sprite‑Interactive Primary and Secondary Colors project using Arduino Uno and PictoBlox. The on‑screen sprite touches a color, announces its name, and the real RGB LED instantly lights the same color using PWM on pins 11, 10, and 9.
What you’ll learn
Additive color mixing with red, green, and blue
PWM brightness control (0–255) for smooth fades
Block coding in PictoBlox (stage mode + upload mode)
Basic circuit assembly and debugging
Components
Arduino Uno + USB cable
RGB LED (common cathode recommended)
3 × 220 Ω resistors (strongly recommended)
Breadboard and jumper wires
Circuit connections
Cathode (long leg) → GND
Red anode → pin 11 (PWM) through 220 Ω
Green anode → pin 10 (PWM) through 220 Ω
Blue anode → pin 9 (PWM) through 220 Ω
PictoBlox steps
Add the Arduino extension and select the board.
In stage mode, add color spots: Red, Green, Blue, Yellow, Cyan, Magenta, White.
Program: when green flag clicked → forever → if sprite touching [color] then say “This is [COLOR]” and set PWM values:
Red: (11=255, 10=0, 9=0)
Green: (11=0, 10=255, 9=0)
Blue: (11=0, 10=0, 9=255)
Yellow: (11=255, 10=255, 9=0)
Cyan: (11=0, 10=255, 9=255)
Magenta: (11=255, 10=0, 9=255)
White: (11=255, 10=255, 9=255)
Classroom extensions
Add a potentiometer to fade each channel.
Log selected colors to the Serial Monitor.
Create a “rainbow sweep” using loops and timing.
Safety and notes
Using resistors prevents over‑current and protects the LED and Arduino. If testing without resistors, keep PWM values low and test briefly only; add resistors for regular use.
Keywords
Arduino RGB LED, PictoBlox, PWM, block coding, STEM robotics, color mixing, primary colors, secondary colors, stage mode, education
Hashtags
#Arduino #PictoBlox #STEM #RGBLED #BlockCoding #PWM #Robotics #ColorMixing #Education #KidsCoding
Call to action: Like, share, and subscribe for more STEM robotics lessons. Add questions in the comments and try the challenge tasks!
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: