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
Revision 3:1d5c2956f415, committed 2018-06-13
- Comitter:
- PixArtVY
- Date:
- Wed Jun 13 20:28:20 2018 +0000
- Parent:
- 2:045cc9f995ae
- Child:
- 4:234a8616c0a6
- Commit message:
- Fixed SPI frequency.
Changed in this revision
| commHeaders/SPIcommFunctions.h | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/commHeaders/SPIcommFunctions.h Fri Jun 01 21:37:39 2018 +0000
+++ b/commHeaders/SPIcommFunctions.h Wed Jun 13 20:28:20 2018 +0000
@@ -84,8 +84,6 @@
//pc.printf("B:%2X, R:%2X, D:%2X\n\r", currentBank, (addr & 0x7F), readRegister(addr));
//Uncomment this line and the other print line above for debugging. Prints every register write operation.
}
-
- wait_ms(2);
}
--- a/main.cpp Fri Jun 01 21:37:39 2018 +0000
+++ b/main.cpp Wed Jun 13 20:28:20 2018 +0000
@@ -21,7 +21,7 @@
pc.baud(115200); // Set baud rate to 115200. Remember to sync serial terminal baud rate to the same value.
spi.format(8,3); // Set SPI to 8 bits with inverted polarity and phase-shifted to second edge.
- spi.frequency(10000000); // Set frequency for SPI communication.
+ spi.frequency(2000000); // Set frequency for SPI communication.
cs = 1; // Initialize chip-select pin to be HIGH (inactive).
pc.printf("Program START\n\r");
PAA5101 | Floor Tracking Sensor with Wide Surface Variety Coverage