{"product_id":"pmw3901-optical-flow-sensor-breakout","title":"PMW3901 Optical Flow Sensor Breakout","description":"\u003cp\u003eThis fancy optical flow sensor detects motion of surfaces in front of it, from ~80mm to infinity! It's great for DIY drone builds, and it's compatible with our new Breakout Garden HAT with SPI.\u003c\/p\u003e\n\u003cp\u003eThe PMW3901 is a crafty little sensor that uses a low-resolution camera and some clever algorithms to detect motion of surfaces. A great use for it is detecting and correcting for drift of a drone by looking for x\/y motion of the ground below.\u003c\/p\u003e\n\u003cp\u003eYou can use this breakout completely solder-free with our new \u003ca href=\"\/en-eu\/products\/breakout-garden-hat-i2c-spi\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eBreakout Garden HAT with SPI\u003c\/a\u003e!\u003c\/p\u003e\n\u003ch2\u003eFeatures\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003ePMW3901 optical flow sensor\u003c\/li\u003e\n\u003cli\u003eTwo white LEDs on-board for illumination\u003c\/li\u003e\n\u003cli\u003eFrame rate: 121 FPS (frames per second)\u003c\/li\u003e\n\u003cli\u003eSpeed: 7.4 rad\/s (radians per second)\u003c\/li\u003e\n\u003cli\u003eField of view: 42°\u003c\/li\u003e\n\u003cli\u003eRange: ~80mm to infinity \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 all models of Raspberry Pi and Arduino\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/github.com\/pimoroni\/pmw3901-python\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePython library\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\u003c\/ul\u003e\n\u003ch2\u003eSoftware\u003c\/h2\u003e\n\u003cp\u003eWe've put together a \u003ca href=\"https:\/\/github.com\/pimoroni\/pmw3901-python\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePython library\u003c\/a\u003e to use with your Optical Flow Sensor Breakout. It makes reading the x\/y motion values and their magnitude really straightforward.\u003c\/p\u003e\n\u003ch2\u003eConnecting to your Raspberry Pi\u003c\/h2\u003e\n\u003cp\u003eIf you're not using our \u003ca href=\"\/en-eu\/products\/breakout-garden-hat-i2c-spi\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eBreakout Garden HAT with SPI\u003c\/a\u003e, then this is how to connect your 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 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\u003cp\u003eDimensions: 24x24x5mm\u003c\/p\u003e","brand":"Pimoroni","offers":[{"title":"Default Title","offer_id":27869870358611,"sku":"PIM453","price":20.95,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/products\/PMW3901_4_of_4.JPG?v=1562084535","url":"https:\/\/shop.pimoroni.com\/en-eu\/products\/pmw3901-optical-flow-sensor-breakout","provider":"Pimoroni Ltd","version":"1.0","type":"link"}