{"product_id":"paa5100je-optical-tracking-spi-breakout","title":"PAA5100JE Near Optical Flow SPI Breakout","description":"\u003cp\u003eDetect motion of close-up surfaces with this Breakout Garden compatible optical navigation breakout - great for floor tracking for ground dwelling robots!\u003c\/p\u003e\n\u003cp\u003eThe PAA5100JE sensor is used in robot vacuum cleaners and uses a low-resolution camera and some clever algorithms to detect motion of surfaces. This sensor has a \u003cstrong\u003esuper close range of 15-35mm\u003c\/strong\u003e so it's suitable for use with a variety of different surfaces. If you're looking for a similar sensor with a bigger range (for attaching to something like a drone) check out our \u003ca href=\"\/en-eu\/products\/pmw3901-optical-flow-sensor-breakout\" target=\"_blank\"\u003ePMW3901 breakout\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003eYou can use this breakout completely solder-free with any \u003ca href=\"\/en-eu\/collections\/breakout-garden\" target=\"_blank\"\u003eBreakout Garden\u003c\/a\u003e with an SPI slot, for ease of prototyping.\u003c\/p\u003e\n\u003ch2\u003eFeatures\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003ePAA5100JE-Q optical tracking sensor (\u003ca href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/files\/PAA5100JE-Q-GDS-R1.00_25072018.pdf?v=1620146590\" target=\"_blank\"\u003edatasheet\u003c\/a\u003e)\u003c\/li\u003e\n\u003cli\u003eTwo white LEDs on-board for illumination\u003c\/li\u003e\n\u003cli\u003eFrame rate: 242 FPS (frames per second)\u003c\/li\u003e\n\u003cli\u003eRange: 15-35mm\u003c\/li\u003e\n\u003cli\u003eField of view: 42°\u003c\/li\u003e\n\u003cli\u003eMaximum speed: 1.14 metres per second (with sensor 25mm away from surface)\u003c\/li\u003e\n\u003cli\u003e6mA typical current draw\u003c\/li\u003e\n\u003cli\u003eSPI interface\u003c\/li\u003e\n\u003cli\u003e3.3V or 5V compatible\u003c\/li\u003e\n\u003cli\u003eReverse polarity protection\u003c\/li\u003e\n\u003cli\u003eCompatible with Raspberry Pi (\u003ca href=\"https:\/\/github.com\/pimoroni\/pmw3901-python\" target=\"_blank\"\u003ePython library\u003c\/a\u003e)\u003c\/li\u003e\n\u003cli\u003eCompatible with Raspberry Pi Pico (\u003ca href=\"https:\/\/github.com\/pimoroni\/pimoroni-pico\" target=\"_blank\"\u003eC++\/MicroPython libraries\u003c\/a\u003e)\u003c\/li\u003e\n\u003cli\u003e\n\u003ca href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/files\/39b9173de8970896f2eaa114ef5738eb993a06cc.png?v=1621246728\" target=\"_blank\"\u003eMechanical drawing\u003c\/a\u003e\u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/files\/PAA5100JE_PIM573_schematic.pdf?v=1621247278\" target=\"_blank\"\u003eSchematic\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eSoftware\u003c\/h2\u003e\n\u003cp\u003eWe've adapted our PWM3901 \u003ca href=\"https:\/\/github.com\/pimoroni\/pmw3901-python\" target=\"_blank\"\u003ePython library\u003c\/a\u003e to work with this sensor as well. It makes reading the x\/y motion values and their magnitude really straightforward. Use the following line at the beginning of your code to make sure it's set up correctly:\u003c\/p\u003e\n\u003cp\u003e\u003ccode\u003efrom pmw3901 import PAA5100\u003c\/code\u003e\u003c\/p\u003e\n\u003ch2\u003eConnecting to your Raspberry Pi\u003c\/h2\u003e\n\u003cp\u003eIf you're not using a Breakout Garden, this is how to connect your Near Optical Flow Sensor Breakout up to your Raspberry Pi.\u003c\/p\u003e\n\u003cp\u003eOur library is set up to use the front SPI slot by default: BCM 7 for CS, BCM 11 for SCK, BCM 10 for MOSI, BCM 9 for MISO, and BCM 19 for the INT pin.\u003c\/p\u003e\n\u003cp\u003eHere's which pins to connect between your Near Optical Flow Sensor Breakout and your Pi's GPIO (\u003cstrong\u003enote that it's BCM pin numbering\u003c\/strong\u003e):\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e3-5V to any 5V or 3V pin\u003c\/li\u003e\n\u003cli\u003eCS to BCM 7\u003c\/li\u003e\n\u003cli\u003eSCK to BCM 11\u003c\/li\u003e\n\u003cli\u003eMOSI to BCM 10\u003c\/li\u003e\n\u003cli\u003eMISO to BCM 9\u003c\/li\u003e\n\u003cli\u003eINT to BCM 19\u003c\/li\u003e\n\u003cli\u003eGND to any ground pin\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eYou can of course use other pins but you'll have to change them accordingly when you instantiate the sensor in your code.\u003c\/p\u003e\n\u003ch2\u003eNotes\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eMeasurements: approx 24mm x 24.5mm x 5mm (L x W x H, including components)\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Pimoroni","offers":[{"title":"Default Title","offer_id":39315330170963,"sku":"PIM573","price":20.95,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/products\/PAA5100JEopticaltrackingSPIbreakout_3of3.jpg?v=1620401509","url":"https:\/\/shop.pimoroni.com\/en-eu\/products\/paa5100je-optical-tracking-spi-breakout","provider":"Pimoroni Ltd","version":"1.0","type":"link"}