Reference firmware for PixArt's PAT9125EL sensor and evaluation board. "Hello World" and "Library" contain the exact same files. Please import just one of the two into your mBed compiler as a new program and not as a library.

You are viewing an older revision! See the latest version

Guides

This Wiki page provides a detailed guide on how to setup and operate PixArt's PAT9125EL sensor with the Nordic nRF52 (recommended) as well as any other microcontroller.

Setup for the Nordic nRF52:

Hardware

500

  • 1. PC with Windows Operating System
  • 2. Nordic nRF52 Microcontroller
  • 3. PAT9125EL Evaluation Board
  • 4. USB Cable (USB-A Male to USB-B Male)
  • 5. Standard Male Pin Headers
  • 6. Jumper Cables
  • 7. Soldering Station
    • NOTE: PC and soldering station not included in image.
      • You will need to solder the pin headers to the evaluation board similar to the following image:
        300

Connection

Please refer to the image and notes below for pinout details.
700

  • VDD and VLD on the PAT9125EL evaluation board connect to any VDD pin on the Nordic nRF52 microcontroller.
  • GND on the PAT9125EL evaluation board connect to any GND pin on the Nordic nRF52 microcontroller.
  • NC = No connection.
    • NOTE: For the SPI version, you will need a 2-to-1 connection because this sensor uses 3-Wire SPI (data pin "SDA" on the evaluation board is bi-directional). The SDA pin on the evaluation board needs to connect to pin 23 AND pin 24 on the Nordic nRF52 microcontroller.
    • NOTE: For the I2C version, the "ID" pin on the evaluation board determines the slave ID depending on what it is connected to. (High = 0x73, Low = 0x75, NC = 0x79). By default, please connect this pin to GND (Low) unless you have altered the firmware.

Importing Code

With the sensor connected to the microcontroller, we can now import code into the microcontroller to start talking to the sensor. For the firmware code, please visit this product's components page here: https://os.mbed.com/components/PAT9125EL-Evaluation-Board/


Functional Test


All wikipages