As with the two sensors we have covered so far, the color sensor can be used as a condition for the wait block, the switch block or the loop block. The color sensor, as well as the ultrasonic sensor, has several modes, but today we will be looking at the color mode.
To access the full video please subscribe to FLLCasts.com
- #812
- 30 Mar 2018
If you put a wait block on the canvas, then from the drop-down menu select Color Sensor and then "Compare", you will see the three available modes:
-
Color - If you choose that mode, the sensor will evaluate the color of an object. We use that mode for solving the Rubik's cube, for sorting balls, for programming color code, etc. The diode of the sensor emits red, green and blue light. Depending on the intensity of the reflected light in each of the three light spectrums, the robot can differentiate 8 colors. Each color is encoded as a number:
0
= No color;1
= Black;2
= Blue;3
= Green;4
= Yellow;5
= Red;6
= White;7
= Brown;
As with every other sensor, we start with the port number the sensor is connected to. This is shown by the number in the upper right corner of the block and by default the port is 3. Afterwards, from the first (and only) field we choose upon which color to wait. Note that you can choose more than one color, hence wait for more than one color. So, for instance, if we want to go forward until we detect a red or black line, we just need to select 1 and 5.
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons
Instructors Remote Training
If you are working with students and you want to introduce Robotics to your class or you want to mentor a FLL team, but you are insecure about your technical knowledge in the Robotics field, then this is the right place for you. Having in mind teachers' busy schedule, we have design two different schedules and added an option to design one just for you. FLLCasts's Mindstorms EV3 Robotics Online Training is the perfect match for any teacher.
After the completion of each task the participant has to upload his solution for verification.
- 136
- 280:11
- 156
Color Sensor
What is color?
If I ask you what the color of the ball on the picture below is, you will surely answer red without hesitation. All of you know what is meant when we talk about the color of an object, but what is actually color? This is one of the most natural concepts whose meaning and origin people often fail to realize.
- 9
- 0
- 4
- 3d_rotation 0
Level B2. "Military Technologies". Robotics with LEGO
The firfth level of the Robotics with LEGO curriculum for students in second, third or fourth grades.
The students build many robots with chain-treads. The Color Sensor is introduced and robots use it to recognize the colors of the objects around them. Students learn about gears, basic gear constructions, and their application. Robots now can stop on a black line and can follow a line using their sensor.
- 37
- 6:37
- 111
Lesson 1 - Color Sensor
Introduction
In this course, we will construct different military vehicles and constructions.
Have you seen, probably in movies, how people use small light sticks to help airplanes land. These sticks are use to help drivers of heavy vehicles navigate in traffic without accidents.
In today's' lesson we will build an Ammo Truck. We will attach to it a new sensor - color sensor. We will learn more about it, how it works and how to program it. Later, we will use it to give different commands to the truck.
- 11
- 3
- 5
- 3d_rotation 2
Robotics with LEGO - Level 1.5 - Spy games
The second level of the Robotics with LEGO curriculum for students from fifth to twelfth grades.
Students build multiple robots with thread chains and become familiar with the physical concepts of momentum and center of gravity. The concept of gears, their use and basic constructions involving gears are studied.
The new concept of "condition" is introduced in programming. Robots are becoming smarter as they can make complex decisions on their own. "Spy robots" follow their targets and avoid being noticed. This level introduces the light sensor which the robots use to recognize the colors of the objects they are looking for. Robots can stop on a black line and follow a route marked with a colored line on the floor.
The spy's most complex mission in the end of the level is to turn into a sumo wrestler and defeat any other robot in the ring.
- 56
- 12:47
- 135