Sensing#

Brain Sensing#

Reset Timer#

The Reset Timer block is used to reset the IQ Brain’s timer.

Reset Timer block for IQ Brain, used to reset the timer back to 0 seconds in programming.

The Brain’s timer begins at the beginning of each project. The reset timer block is used to reset the timer back to 0 seconds.

In this example, the Brain will print the current time after waiting 2 seconds before resetting its timer.

Illustration of the Reset Timer block used to reset the IQ Brain's timer to 0 seconds after a 2-second wait.

Timer Value#

The Timer Value block is used to report the value of the IQ Brain’s timer in seconds.

Reset Timer block for IQ Brain, used to reset the timer back to 0 seconds in programming.

The timer starts at 0 seconds when the program starts, and reports the timer’s value as a decimal value.

In this example, the Brain will print the current time after waiting 2 seconds before resetting its timer.

Illustration of the Reset Timer block used to reset the IQ Brain's timer to 0 seconds after a 2-second wait.

Drivetrain Sensing#

Drive is Done?#

The Drive is Done? block is used to report if the 123 Robot is not moving.

Drive is Done? block indicating if the 123 Robot is moving, showing True when stationary and False when in motion.

The Drive is Done? block reports True when the 123 Robot is not moving.

The Drive is Done? block reports False when the 123 Robot is moving.

In this example, the Forever block is used to continuously check if the Sound button has been pressed as the 123 Robot drives forward.

Diagram illustrating the IQ Brain's timer reset and reporting functions for the 123 Robot's sensors and controls.

Drive Heading#

The Drive Heading block is used to report the heading that the 123 Robot is facing.

Image depicting the Drive Heading block used to report the 123 Robot's current heading in a programming context.

In this example, the the 123 Robot will print its current heading to the Print Console.

Diagram illustrating the Drive Heading block used to report the robot's current heading in a programming context.

Button Sensing#

Button Pressed?#

The Button Pressed? block is used to report if the specified button is pressed.

Button pressed block illustration for IQ Brain's button sensing functionality.

The Button Pressed? block reports True when the specified button is pressed.

The Button Pressed? block reports False when the specified button is not pressed.

Choose which button to use:

  • Left turn

  • Right turn

  • Forward

  • Sound

Button pressed indicator for the 123 Robot's Button Pressed? sensing block in a programming environment.

In this example, the 123 Robot will only start moving when the Sound button is pressed.

Image illustrating the Reset Timer block for the IQ Brain, showing a timer reset after a 2-second wait.

Gyro Sensing#

Detected Crash?#

The Detected Crash? block is used to report if the 123 Robot has come in contact with a wall or other object.

Diagram illustrating the Detected Crash?" block for the 123 Robot's sensing capabilities in programming.

The Detected Crash? block reports True when the 123 Robot is in contact with a wall or other object.

The Detected Crash? block reports False when the 123 Robot is not in contact with a wall or other object.

In this example, the 123 Robot drive forward and wait until it detects a crash to stop moving.

Image showing a detected crash alert from the 123 Robot's sensing system indicating contact with an object.

Acceleration of#

The Acceleration of block is used to report the acceleration value from one of the axes (x, y, or z) of the 123 Robot’s Gyro Sensor.

Diagram illustrating the Acceleration block for reporting gyro sensor acceleration on the 123 Robot.

The Acceleration of block reports a range from -4.0 to 4.0 Gs.

Choose which axis to use:

  • x - The X-axis reports acceleration when the Gyro Sensor moves forward to backward.

  • y - The Y-axis reports acceleration when the Gyro Sensor moves side to side.

  • z - The Z-axis reports acceleration when the Gyro Sensor moves up to down.

Diagram illustrating the acceleration axes (x, y, z) of the 123 Robot's Gyro Sensor for sensing movement.

In this example, the 123 Robot will move forward for one second before printing its current X-axis acceleration while moving.

Diagram illustrating the acceleration measurement from the 123 Robot's Gyro Sensor on the X-axis during movement.

Eye Sensing#

Set Eye Light#

The Set Eye Light block is used to set the light on the Eye Sensor to on or off.

Set Eye Light block interface for controlling the Eye Sensor's light power and status in robotics programming.

The default power of the Set Eye Light block is 100% when turned on and 0% when turned off.

Choose whether to set the Eye Sensor’s light on or off.

Icon for setting the Eye Sensor light power, used to adjust brightness from 0% to 100%.

In this example, the Eye Sensor’s light will be turned on, then turn off after 2 seconds.

Image showing the Set Eye Light block for controlling the Eye Sensor's light power in a robotics project.

Set Eye Light Power#

The Set Eye Light Power block is used to set the light power of Optical sensor

Diagram of the Set Eye Light Power block for controlling the brightness of the Eye Sensor's light.

The The Set Eye Light Power block block accepts a range of 0% to 100%. This will change the brightness of the light on the Eye Sensor. If the light is off, this block will turn the light on.

In this example, the Eye Sensor’s light is set to 75% before it waits to detect an object to print a message.

Diagram illustrating the Set Eye Light Power block for adjusting the brightness of the Eye Sensor's light.

Eye Sensor Found Object#

The Eye Sensor Found Object block is used to report if the Eye Sensor detects an object close to it.

Diagram illustrating the optical sensor detecting an object, with relevant blocks for object detection and color sensing.

The Eye Sensor Found Object block reports True when the Eye Sensor detects an object close to it.

The Eye Sensor Found Object block reports False when an object is not within range of the Eye Sensor.

In this example, the Eye Sensor’s power light is set to 75% before it waits to detect an object to print a message.

Diagram illustrating the Set Eye Light Power block for adjusting the brightness of the Eye Sensor's light.

Eye Sensor Detects Color#

The Eye Sensor Detects Color block is used to report if the Eye Sensor detects the specified color.

Diagram illustrating the Eye Sensor's ability to detect colors and brightness in an interactive robotics context.

The Eye Sensor Detects Color block reports True when the Optical Sensor detects the specified color.

The Eye Sensor Detects Color block reports False when the Optical Sensor doesn’t detect the specified color.

Choose which color the Eye Sensor will check for:

  • red

  • green

  • blue

Illustration of an optical sensor detecting various colors in a robotics context.

In this example, the Eye Sensor will wait until it detects a red color before printing a message.

Optical sensor detecting color, displaying hue value on screen, with a focus on color recognition capabilities.

Eye Hue#

The Eye Hue block is used to report the hue of the color of an object.

Optical hue block displaying color hue value from Eye Sensor, ranging from 0 to 359 degrees on a color wheel.

The Eye Hue block reports a number value that is the hue of the color of an object. It returns a number between 0 and 359.

The value can be thought of as the location of the color on a color wheel in degrees.

In this example, the Eye Sensor will print the currently seen hue to the Brain’s screen.

Color wheel representation showing different hues for optical sensing in robotics applications.

Eye Detects Bright Object?#

The Eye Detects Bright Object? block is used to report if the Eye Sensor detects an object close to it.

Eye sensor block illustration showing detection of a bright object with a brightness value above 70%.

The Eye Detects Bright Object? block reports True when the Eye Sensor detects a brightness value greater than 70%.

The Eye Detects Bright Object? block reports False when the Eye Sensor detects a brightness value less than or equal to 70%.

In this example, the Eye Sensor waits until it detects a bright object to print a message.

Eye sensor detecting a bright object, indicating brightness value exceeds 70%.

Eye Brightness#

The Eye Brightness block is used to report the amount of light detected by the Eye Sensor.

Diagram illustrating the Optical Brightness block used for detecting light intensity with the Eye Sensor in robotics.

The Eye Brightness block reports a number value from 0% to 100%.

A large amount of light detected will report a high brightness value.

A small amount of light detected will report a low brightness value.

In this example, the Eye Sensor will print the current brightness value to the Brain’s screen.

Graph illustrating the relationship between optical brightness and detected light levels by the Eye Sensor.