I2C comunication PIXY ADAPTER
 NXT and EV3   Started by Angel Perez   2017-07-04 06:46:08 -04:00   Comments: 3    Viewed: 156

  1. Angel Perez
    Angel Perez Member
    HI everyone!

    I am using lego ev3-dev to communicate with pixy camera to get coordinates of an especific object. However I am using PIxy Adapter to keep this communication.
    It is written in datasheet of PIxy Adapter diferent registers and their own funtionalities.

    Before I used NXTCAM to get coordinates for example and I did some steps to do it.
    1º Initialize the camera
    2º send command start tracking (command E)
    3º Read directly registers of NXTCAM.

    But now using Pixy Adapter, it seems the same. The first stuff I did, it was to read IdVendor for example, and it worked fine. (So i discard that is a problem of reading)
    The problem comes when I try to get coordinates of an object (I always get 0 in all points)
    To update the colormap i use PixyMon.

    I suspect that the problem is that camera is not tracking (notice that I did this in NXTCAM sending command E as I said before)
    How can I make Pixy to start tracking????

    Should I send any specific command to "command register" of Pixy Adapter or do it in another way?

    Thanks for your attention.
    Angel Perez, 2017-07-04 06:46:08 -04:00
  2. Mindsensors Support
    Mindsensors Support Member Richmond
    It is likely that Pixy Camera is not configured, it needs to be configured specifically as follows:
    can you confirm it's configured as per this -> (more info is in user Guide on page 4)
    /pdfs/PixyAdapter-User-Guide.pdf

    Configuring PixyCam
    To configure the PixyCam for communication with the PixyAdapter:
        Open the PixyMon viewer and configuration software.
        Select 'Configure' from 'File' Menu.
        Select the 'Interface' tab under the 'Pixy Parameters' tab.
        Make sure the 'Data out Port' is 3 (or UART),
        'UART baudrate' is 115200
        Click 'OK'.


    Mindsensors Support, 2017-07-05 09:48:45 -04:00
  3. Nitin Patil
    Nitin Patil Member Staff Member
    Configuring PixyCam
    To configure the PixyCam for communication with the PixyAdapter:
        Open the PixyMon viewer and configuration software.
        Select 'Configure' from 'File' Menu.
        Select the 'Interface' tab under the 'Pixy Parameters' tab.
        Make sure the 'Data out Port' is 3 (or UART),
        'UART baudrate' is 115200
        Click 'OK'.
    Nitin Patil, 2020-01-24 18:42:51 -05:00
  4. (You must log in or sign up to post here)

Log in | Sign up
Tems & Conditions!
Help!