How to use the Color Sensor event block in LEGO SPIKE Prime Word Blocks software Pro Preview

Here's one way to program using a color sensor!

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #2313
  • 30 Jul 2024

The block is located in the Events section. This means it serves as the starting point of the program, so no blocks can be placed before it.

content picture

By default, this block triggers the blocks that follow it when the sensor detects red. This means that the program will not start until the color sensor detects the specified color.


The first setting is the port, where you must select the port to which your sensor is connected. By default, this is port A.


The second setting allows you to change the color that activates the block. You can choose between 8 colors and a no-color option!

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Level B2 - Introduction to Robotics Competitions   - Robotics with LEGO SPIKE Prime
  • 21
  • 1:03
  • 60
Image for Lesson 1 - Color Sensor
  • 6
  • 4
  • 11
  • 3d_rotation 2