Pmw3901 Optical Flow Sensor Module Optical Flow Xy Translation Optical Flow Sensor
Rs. 767.00 Rs. 875.00
- Brand: https://www.pixart.com/products-detail/44/PMW3901MB-TXQT
- Product Code: SEN-TOF
- SKU -
- Availability: 2-3 Days
- Price in reward points: 22
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
Features: | |
Supply Voltage | 1.8-3.6 |
Working range | 80 to infinity |
Interface | 4-wire SPI@2MHz |
SPECIFICATIONS: | |
Package Type | 28-pin QFN |
Package Size (mm) | 6x6x3.08 |
Power Consumption @run mode | 6mA |
Working Range (mm) | 80 up to infinity |
Low Light Performance (lux) | >60 |
Max. Speed | 7.4 rad/s |
View Angle | 42 degrees |
OVERVIEW:
-Provides X-Y motion information of sensor movement
-Wide working range from 80mm up to infinity
-Tracks under low light condition of >60lux
-Low power consumption of 6mA at run mode
-No lens focusing required during lens mounting process
-High speed of up to 7.4 rad/s
-Built-in oscillator, with no clock input needed
-To be used with PixArt’s L214-ZSZ lens for optimum performance
PACKAGE INCLUDES:
1 PCS x Pmw3901 Optical Flow Sensor Module Optical Flow Xy Translation Optical Flow Sensor
https://www.pixart.com/products-detail/44/PMW3901MB-TXQT
//SOURCE CODE TAKEN FROM BELOW LINK
//https://github.com/bitcraze/Bitcraze_PMW3901/blob/master/examples/PMW3901_Framebuffer_test/PMW3901_Framebuffer_test.ino
/"THE BEER-WARE LICENSE" (Revision 42): Arsenio Dev wrote this file. As long as you retain this notice you can do whatever you want with this stuff.
//If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.
#include "Bitcraze_PMW3901.h"
// Using digital pin 10 for chip select
Bitcraze_PMW3901 flow(10);
char frame[35*35]; //array to hold the framebuffer
void setup() {
Serial.begin(115200);
if (!flow.begin()) {
Serial.println("Initialization of the flow sensor failed");
while(1) { }
}
flow.enableFrameBuffer();
Serial.println("framebuffer init");
}
void loop() {
flow.readFrameBuffer(frame);
Serial.println("framebuffer read");
int i,j,k;
for(i=0, k=0; i<35; i++){ //i is Y pixel pos
for(j=0; j<35; j++, k++){ //j is X pixel pos
Serial.print(asciiart(frame[k]));
Serial.print(' ');
}
Serial.println();
}
Serial.println();
}
char asciiart(int k){ //converter magic? Higher value shunts more right in char array
static char foo[] = "WX86*3I>!;~:,`. ";
return foo[k>>4]; //return shunted from array value character
}
15 days