Skip to main content

Treasure Hunt
Lesson 3: Claw With Sensor


In this Lesson you will learn about the Optical Sensor, and how it can be used with [If then] and [Repeat] blocks in a project to make your Clawbot collect a Buckyball based on its color. Then you will apply what you have learned to compete in the Treasure Mover Challenge, where your robot will need to collect only the red Treasure Buckyball.

Add an Optical Sensor

In this Lesson, you learn about sensor feedback and how you can code your robot using that feedback.

Add an Optical Sensor to your Clawbot as shown in this image.

  • Connect a 1x2x1x4 C-Channel to an Optical Sensor.
  • Mount the C-Channel to an angled gusset, then attach this to the claw.

clawbot with optical sensor

Select Next > to learn about the Optical Sensor and the blocks you can use to build a project to collect a red Buckyball.