Represent connected CMUcam5 Pixy2 vision sensor and tracks object (color blob) (2024)

Table of Contents
Description Functional Modes Launch PixyMon Ports Output X — x-location of the center of the detected objectpixels | scalar Y — y-location of the center of the detected objectpixels | scalar Width — Width of detected object pixels | scalar Height — Height of detected object pixels | scalar Object Count — Number of detected objects positive integer in the range [1, 255] Signature — Color or color code signature of detected objects positive integer in the range [1, 7] Angle — Angle of detected object integer in the range [-180, +180] Xstart — Start point of x-coordinate for detected linepixels | scalar Ystart — Start point of y-coordinate for detected linepixels | scalar Xend — End point of x-coordinate for detected linepixels | scalar Yend — End point of y-coordinate for detected linepixels | scalar Intersection Flag — Presence of intersecting lines 1 (true) or 0 (false) Parameters EV3 brick input port — Input port connected to Pixy2 vision sensor 4 (default) | positive integer in the range [1, 4] I2C address — I2C bus identifier 0x54 (default) | address in the range [0x54, 0x57] Tracking mode — Select tracking mode Color Signature (default) | Color Code Signature | Color and Color Code Signature (Mixed) | Line Color Signature — Color signature of object to be tracked 1 (default) | positive integer in the range [1, 7] | ALL Sample time — Time sample interval 0.1 (default) | positive scalar in the range [0.001, 1] Version History See Also Topics External Websites Comando de MATLAB Americas Europe Asia Pacific

Represent connected CMUcam5 Pixy2 vision sensor and tracks object (color blob)

Since R2020a

expand all in page

Add-On Required: This feature requires the Simulink Support Package for LEGO MINDSTORMS EV3 Hardware add-on.

  • Represent connected CMUcam5 Pixy2 vision sensor and tracks object (colorblob) (1)

Libraries:
Simulink Support Package for LEGO MINDSTORMS EV3 Hardware

Description

The Pixy2 Vision Sensor block allows you to extend the capabilities of the LEGO® MINDSTORMS® EV3 hardware and reads the coordinates of object (color blobs) detected by the Pixy2 vision sensor.

Note

This block supports Pixy2 LEGO firmware version 3.0.14.

Functional Modes

Pixy2 Vision Sensor block has four functional modes:

  • Color Signature: Detects object that matches the configured color signature in the PixyMon utility.

  • Color Code Signature: Detects object that matches the configured color-coded signature in the PixyMon utility.

  • Color and Color Code Signature (Mixed): Detects object that matches the configured color and color-coded signature in the PixyMon utility.

  • Line: Detects and tracks the line.

Launch PixyMon

If you have already installed the support package for LEGO MINDSTORMS EV3 hardware and followed the additional hardware setup as mentioned in Install Support for LEGO MINDSTORMS EV3 Hardware, the PixyMon utility will launch automatically.

Ports

Output

expand all

The x-location of the center of the most significant object (color blob) based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to either Color Signature, Color Code Signature, or Color and Color Code Signature (Mixed).

Data Types: uint16

The y-location of the center of the most significant object (color blob) based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to either Color Signature, Color Code Signature, or Color and Color Code Signature (Mixed).

Data Types: uint16

The width of the most significant object (color blob) based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to either Color Signature, Color Code Signature, or Color and Color Code Signature (Mixed).

Data Types: uint16

The height of the most significant object (color blob) based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to either Color Signature, Color Code Signature, or Color and Color Code Signature (Mixed).

Data Types: uint16

The number of objects (color blobs) based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to either Color Signature, Color Code Signature, or Color and Color Code Signature (Mixed).

Data Types: uint8

The signature of the color or color-coded objects (color blobs) based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to either Color Code Signature or Color and Color Code Signature (Mixed).

Data Types: uint16

The angle of the color or color-coded signature of objects (color blobs) based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to Color and Color Code Signature (Mixed).

Data Types: int16

The starting point of the x-coordinate of the most significant line based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to Line.

Data Types: uint16

The starting point of the y-coordinate of the most significant line based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to Line.

Data Types: uint16

The ending point of the x-coordinate of the most significant line based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to Line.

Data Types: uint16

The ending point of the y-coordinate of the most significant line based on the field of view, as detected by the Pixy2 vision sensor.

Dependencies

To enable this port , set the Tracking mode parameter to Line.

Data Types: uint16

The presence of intersecting lines in the field of view of the Pixy2 vision sensor. 1 indicates the presence of intersecting lines.

Dependencies

To enable this port , set the Tracking mode parameter to Line.

Data Types: uint8

Parameters

expand all

Select the input port on the LEGO MINDSTORMS EV3 hardware to which the Pixy2 vision sensor is connected. There are four ports on the hardware and you can select any one of the ports. Specify a unique input port for each Pixy2 Vision Sensor block in the model.

Enter the hexadecimal address of the I2C bus connected to the Pixy2 vision Sensor. Ensure that the same I2C address is configured in the PixyMon utility.

Select the tracking mode to detect the object that matches the configured color or color-coded signature in the PixyMon utility. The xy-coordinates, width, and height of the detected object remain the same for the Color Signature, Color Code Signature, and Color and Color Code Signature (Mixed) tracking modes.

Select the color signature of the object to be tracked as configured in the PixyMon utility. Select ALL to track all the configured color signatures.

Enter the time interval at which the block reads values from the Pixy2 vision sensor.

Version History

Introduced in R2020a

See Also

Open Block Library for LEGO MINDSTORMS EV3 Hardware

Topics

  • Track Colored Objects Using Pixy2 Vision Sensor
  • LEGO EV3 Object Tracking System Using Pixy2 Vision Sensor and PID Controller

Comando de MATLAB

Ha hecho clic en un enlace que corresponde a este comando de MATLAB:

 

Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.

Represent connected CMUcam5 Pixy2 vision sensor and tracks object (colorblob) (2)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

Contact your local office

Represent connected CMUcam5 Pixy2 vision sensor and tracks object (color
blob) (2024)
Top Articles
Latest Posts
Article information

Author: Jeremiah Abshire

Last Updated:

Views: 5624

Rating: 4.3 / 5 (54 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Jeremiah Abshire

Birthday: 1993-09-14

Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

Phone: +8096210939894

Job: Lead Healthcare Manager

Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.