Library for fingerprint R503 Adaptation from Arduino Library
This a library and demo for fingerprint R503
For datasheet, see here -> https://cdn-shop.adafruit.com/product-files/4651/4651_R503%20fingerprint%20module%20user%20manual.pdf
This is an adaptation of Adafruit library (Arduino) to ARM MBED, tested on NUCLEO L073RZ
For this exemple default connexions on NUCLEOL073RZ are :
TX <-> PC_0
RX <-> PC_1
WAKEUP <-> PB_0 , this is an Interrupt , you must connect a pull-up resistor (4K to 15k) between WAKEUP and DC3.3v
Power Supply 3.3v on Arduino connector
3.3VT : 5v on Arduino connector
IMPORTANT !!! There ara yet some bugs with communications UART
main.cpp
- Committer:
- WilliamMarshQMUL
- Date:
- 2018-01-13
- Revision:
- 2:e92d97ac59e4
- Parent:
- 1:961580c296da
- Child:
- 3:5b27b27e68ab
File content as of revision 2:e92d97ac59e4:
// Serial demo using mbed 5 #include "mbed.h" DigitalOut myled(LED1); Serial pc(USBTX, USBRX); // tx, rx int main() { char c ; pc.printf("Enter a character>"); while(1) { myled = 0; // turn on c = pc.getc(); myled = 1; // turn off pc.putc(c); pc.putc('\r'); pc.putc('\n'); Thread::wait(500); pc.printf("Enter a character>"); } }