Pixy2 Vision Sensor
Represent connected CMUcam5 Pixy2 vision sensor and tracks object (color blob)
Since R2023a
Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.
Libraries:
Simulink Support Package for Arduino Hardware /
Sensors
Description
Use the Pixy2 Vision Sensor block to read the coordinates of object (color blobs) detected by the Pixy2 vision sensor interfaced with an Arduino® board. You can use either SPI, I2C, or serial communication protocol to connect the Pixy2 vision sensor to an Arduino board.
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 Arduino hardware and followed the additional hardware setup as mentioned in Install Support for Arduino Hardware, the PixyMon utility will launch automatically.
Ports
Output
Parameters
Version History
Introduced in R2023a