Legacy edition, no longer supported: SharpShot Vision units shipped before 2026-10 (School and WRO editions) are no longer supported; their guides and examples stay here for reference. To upgrade to the current SharpShot Vision, contact the distributor you bought it from and send it back: the firmware update is free, and the buyer pays shipping both ways. Looking for the current SharpShot Vision? →
MBC SharpShot Vision School edition × EV3 Classroom

Read the camera with EV3 Classroom in three steps

In EV3 Classroom, the SharpShot Vision School edition shows up as a LEGO Infrared Sensor. So you do not import a library or add an extension: you read it with the Infrared Sensor blocks. Work through the steps on the left and the blocks on the right grow with you. These block pictures were built in EV3 Classroom 1.5.3 and exported straight from the software, so they look exactly like it.

1

Start: program start + repeat forever

You need to read the sensor again and again. A new project already has the yellow "when program starts" block. Attach "forever" under it and put "wait 0.1 seconds" inside, so it reads every 0.1 seconds.

  1. Open EV3 Classroom and press "New Project".
  2. Drag "forever" from "Control" and attach it under "when program starts".
  3. Drag a "wait 1 seconds" block into forever and change the number to 0.1.
2

Meet the reading blocks (Infrared Sensor)

On the EV3, the SharpShot Vision School edition shows up as a LEGO Infrared Sensor. So you read it with the Infrared Sensor blocks in "Sensors"; no extension needed. The number at the front of each block is the port: choose 1 (the sensor is in port 1). The product puts different values in different blocks:

BlockWhat you getRange
proximityColour (hue)0 to 100, -1 = black / white / grey
proximity to beacon 1Colour vividness0 to 100
heading to beacon 2Brightness0 to 100
proximity to beacon 2Motion0 to 100
heading to beacon 3Blob X position0 to 100 (left → right), 0 = not found
proximity to beacon 3Blob Y position0 to 75 (bottom → top), 0 = not found
heading to beacon 4Blob width0 to 100, 0 = not found
proximity to beacon 4Blob height (bigger when closer)0 to 75, 0 = not found

Use blocks of only one mode in a program (Proximity, Beacon or Remote). Every mode change makes the EV3 pause for about 1.1 seconds.

3

Show it on the EV3 screen

Put the reading block into "write … at line …" from "Display", use "join" from "Operators" to put a name in front (for example POS), and start the program with "clear display". Click a function and the blocks and result change to its example.

Pretend sensor (what the camera sees): drag the blob and watch the output on the right

The simulator is only a sketch: drag the blob to move it and use the sliders for size and colour. The conversion is simplified; it is not the camera's own method.

Block example for each function

Every value EV3 Classroom can read has a small program you can copy (sensor in port 1). Press "Try it" to jump to step 3.

What EV3 Classroom cannot read: blob area and "blob found" (check width greater than 0 instead). The modes 3 to 6 added in firmware v4.0 (for example millimetre distances, bitmaps, connection state, device ID) cannot be read with EV3 Classroom blocks either. For these, use Pybricks (the EV3 needs a different microSD card) or clev3r.

Things to know

  1. Plug the sensor into port 1. If you use another port, change the port number on the block. Switch the EV3 on first, then plug in the sensor; if the number never changes, unplug it and plug it in again.
  2. Use one mode per program. Each change between Proximity, Beacon and Remote makes the EV3 pause for about 1.1 seconds, and a racing robot can lose control.
  3. When the sensor is unplugged: the EV3 cannot read it, the number becomes "not a number" and the screen shows ----. Each reading also waits about 1.2 seconds. The program does not stop, and it works again when you plug the sensor back in.
  4. Set the sample point and the colour to find first: press the side button on the camera to open its menu (see the product page). The EV3 only reads the numbers.
  5. When no blob is found, X, Y, width and height are all 0. Use "width greater than 0" to check for a blob.
  6. English blocks: EV3 Classroom has only English and Simplified Chinese interfaces; this page uses English.
  7. For complete projects (line following, avoiding obstacles, driving …) see the EV3 examples page; most examples have an EV3 Classroom file to download.