What is a color? How does our robot detect it? Learn that here!

To access the full video please subscribe to FLLCasts.com
- #2312
- 30 Jul 2024
- LEGO Education SPIKE Prime
- Light and Color Sensor, LEGO Education SPIKE App Word Blocks, Scratch, Sensors, Light and Color Sensor
Two things are responsible for the colors we perceive - light and our eyes.
The most common light sources, such as a lamp or the Sun, give us what we call white light. White light contains all the colors within it. Each color and shade corresponds to a different amount of energy in the light, from red to violet, which makes up the visible light spectrum. Light sources often emit more light than what our eyes can see; these are called infrared and ultraviolet lights. While humans can't see them, many animals can perceive ultraviolet light.
So, what color are these objects?

Red, right? Well, yes and no.
When we see something as red, it means that it reflects red light and absorbs all other colors of light. In a sense, the object is anything but red! The same principle applies to most colors. For example, a blue background reflects blue light and absorbs the other colors. Black and white are the two extremes - objects that appear black absorb almost all light, while objects that appear white reflect almost all light!
The SPIKE Prime Color Sensor lights up in white when connected, providing its own source of light. In the middle, it has an actual sensor that collects data from the light reflected off the surface below it, then calculates the color. For consistent detection, the sensor needs to be about 1 or 2 LEGO units away from its target. Here's how it looks:

Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Level B2 - Introduction to Robotics Competitions - Robotics with LEGO SPIKE Prime
This is the fourth level of the LEGO Robotics Curriculum for students in second, third, or fourth grades.
Competitive Introduction Level: Each lesson has a theme related to various LEGO robotics competitions. Students learn about FIRST LEGO League, Line Following, and Sumo Wrestling. A new color sensor is introduced, and students use forever loops, wait until commands, and if/else statements in new ways.
- 21
- 1:03
- 60

Lesson 1 - Color Sensor
Introduction
In this level, we will learn how to use a new sensor - the COLOR SENSOR! We will also explore various robotics competition disciplines, such as FLL, Line Following, and Sumo!
Have you heard of any of these competitions? Would you like to participate in any of them?
We will start with the namesake of this site - FLL. FLL stands for FIRST LEGO League. An FLL competition has four categories: Research Project, Core Values, Robot Design, and Robot Game.
We will focus on the Robot Game, which takes place on a special field, like the one in the picture. The field has multiple missions that the robot should accomplish to score points. The robot that scores the most points in 2 minutes and 30 seconds wins.
Every year, FLL has a new theme, which changes the entire Robot Game Field. Teams have a few months to prepare their robot before the actual competition begin.
- 6
- 4
- 11
- 3d_rotation 2