Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MKR1000 with Fingerprint Sensor #17

Closed
chinmoyrick opened this issue Nov 2, 2016 · 2 comments
Closed

MKR1000 with Fingerprint Sensor #17

chinmoyrick opened this issue Nov 2, 2016 · 2 comments

Comments

@chinmoyrick
Copy link

I want to connect my fingerprint device with MKR1000. with hardware serial pin13-RX and 14-TX

As I connect this fingerprint device with arduino MICRO .With this sketch, It working with Hardware serial. In this sketch some instruction how to connect with micro hardware serial its working fine .

Then i try to upload this sketch with my new MKR1000 module . i remove some line from main sketch those are.
#include <SoftwareSerial.h> // pin #2 is IN from sensor (GREEN wire) // pin #3 is OUT from arduino (WHITE wire) SoftwareSerial mySerial(2, 3); Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);
and enter those line for micro and also MKR1000
//On Leonardo/Micro or others with hardware serial, use those! #0 is green wire, #1 is white Adafruit_Fingerprint finger = Adafruit_Fingerprint(&Serial1);

Doing those step its successfully upload to micro .. but its return some error with MKR100

Adafruit_Fingerprint.h file and Adafruit_Fingerprint.cpp file have this softwareserial #include <SoftwareSerial.h>
and more related file for connecting software serial connection , for this there is uploading error.

Build options changed, rebuilding all
In file included from C:\Users\sony\Documents\Arduino\Adafruit-Fingerprint-Sensor-Library-master\examples\fingerprint\fingerprint.ino:18:0:
C:\Users\sony\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library/Adafruit_Fingerprint.h:18:28: fatal error: SoftwareSerial.h: No such file or directory
#include <SoftwareSerial.h>
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino MKR1000.

those error come at compile time ..
Thank u

@chinmoyrick
Copy link
Author

After changing , remove some line from .cpp and .h file
related code with software serial and along with #include <SoftwareSerial.h>
then i compile and run with my arduino micro ,its working without any error
and when upload the same code with micro error is
C:\Users\sony\Documents\Arduino\Adafruit-Fingerprint-Sensor-Library-master\examples\fingerprint\fingerprint.ino:20:24: fatal error: util/delay.h: No such file or directory
#include <util/delay.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino MKR1000.

Same issue like adafruit/MAX6675-library#9

@ladyada
Copy link
Member

ladyada commented Nov 25, 2017

hiya you may want to try the latest version we just committed. it fixes many bugs - use hardware serial rather than software. we just tested it with a feather m0 successfully :)

@ladyada ladyada closed this as completed Nov 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants