{"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 for the Raspberry Pi.\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\u003cspan\u003e \u003c\/span\u003eBreakout Garden HAT with SPI!\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eCheck out our full range of Breakout's and Breakout Garden's \u003c\/span\u003ehere\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\u003ePython library\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\u003cspan\u003e \u003c\/span\u003ePython library\u003cspan\u003e \u003c\/span\u003eto 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\u003cspan\u003e \u003c\/span\u003eBreakout Garden HAT with SPI, 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\u003cul\u003e\n\u003cli\u003eDimensions: 24x24x5mm\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Pimoroni","offers":[{"title":"Default Title","offer_id":48624174432474,"sku":"pph1789685657244","price":19.81,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0824\/8318\/3834\/files\/pmw3901-optical-flow-sensor-breakout_1.jpg?v=1789685662","url":"https:\/\/memoryfoamwear.shop\/products\/pmw3901-optical-flow-sensor-breakout","provider":"My Store","version":"1.0","type":"link"}