Reference firmware for PixArt's PAA5101 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.
Welcome to the code repository for PixArt's PAA5101 sensor and evaluation board.
For general information about this product, please visit this product's components page here:
https://os.mbed.com/components/PAA5101-Floor-Tracking-Sensor-with-Wide-/
For guides and tips on how to setup and evaluate the PAA5101 sensor with the Nordic nRF52-DK microcontroller using this reference code, please visit this guide:
https://os.mbed.com/teams/PixArt/code/5101_referenceCode/wiki/Guide-for-nRF52-DK-Platform
For guides and tips on how to setup and evaluate the PAA5101 sensor with any microcontroller using this reference code, please visit this guide:
https://os.mbed.com/teams/PixArt/code/5101_referenceCode/wiki/Guide-for-Any-Platform
Diff: main.cpp
- Revision:
- 2:045cc9f995ae
- Parent:
- 0:2c144b6813d1
- Child:
- 3:1d5c2956f415
diff -r 469063631a05 -r 045cc9f995ae main.cpp
--- a/main.cpp Tue May 01 22:45:34 2018 +0000
+++ b/main.cpp Fri Jun 01 21:37:39 2018 +0000
@@ -66,7 +66,7 @@
{
checkMode(); //Checks image quality and switches to laser or LED mode accordingly.
- if(imageQualityOK && readRegister(0x02) & 0x80) //If motion bit (bit 7 of register 0x02) is 1, movement has been detected. Also checks if imageQuality is good enough.
+ if(readRegister(0x02) & 0x80) //If motion bit (bit 7 of register 0x02) is 1, movement has been detected.
{
grabData(); //Grabs data into variables deltaX and deltaY.
printData(); //Prints deltaX and deltaY, but only if they have changed from their previous values.
PAA5101 | Floor Tracking Sensor with Wide Surface Variety Coverage