Hi sir.
I just tried the codes of adafruit. There is an error. It says Adafruit_Fingerprint does not name a type. What should I do? Thanks in advance. God bless!
RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 12
- Joined: Sat Apr 19, 2014 10:54 pm
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
This means that the compiler could not locate the library. Make sure it is installed in the correct location: http://learn.adafruit.com/adafruit-all- ... nstall-useAdafruit_Fingerprint does not name a type
-
- Posts: 12
- Joined: Sat Apr 19, 2014 10:54 pm
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
Thank you sir. It help a lot. BTW. Can I cascade 2 arduino mega?
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
Not sure what you mean by 'cascade'. Can you elaborate?Can I cascade 2 arduino mega?
-
- Posts: 12
- Joined: Sat Apr 19, 2014 10:54 pm
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
Cascade, I mean can 2 arduino mega communicate with each other? Because I'm having a thesis and I used arduino mega instead of PIC. I'm just worrying if I need to program a lot of modules one arduino mega is not enough.
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
Yes, you can communicate between 2 Megas. The simplest way is probably via one of the serial ports.
-
- Posts: 12
- Joined: Sat Apr 19, 2014 10:54 pm
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
Nice. Thank you sir. Can you show me the setup? Arduino mega as my master device and arduino uno as the sub device. I will really appreciate it so much. God Bless.
- adafruit_support_bill
- Posts: 88096
- Joined: Sat Feb 07, 2009 10:11 am
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
There is an excellent library from Bill Porter for doing this here: http://www.billporter.info/2011/05/30/e ... o-library/
-
- Posts: 12
- Joined: Sat Apr 19, 2014 10:54 pm
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
Sir. Do you ship products here in Philippines?
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
We ship anywhere UPS delivers, and you can check our distributors page to see if there's a local outlet near you:
https://www.adafruit.com/distributors
https://www.adafruit.com/distributors
- saasier
- Posts: 3
- Joined: Sun Sep 14, 2014 4:35 pm
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
I've tested the sensor on 2 different Arduino 2560s, an Arduino Yun and a PCduino. I soldered header pins to the wires and verify that the red light flashes once when I power it. On a 2560 I have the red wire going to 5V, black to GND, green to D10 and white to D11. I've tried reversing the wires and also tried pins D12 and D13.
Same thing every time. "Did not find fingerprint sensor :(" when I run the enroll sketch.
I also tried to connect white to pin 0 and green to 1 and run the Windows software using the Com port for the Mega that's in Arduino. I get the error "Open Device fail, please check the password and the device address!"
I also used a test probe and verified a connection from the PCB connectors for the connector on the sensor all the way to the bottom of the header on the Arduino. From sensor PCB to Arduino PCB it looks as though I have a good connection.
I'm out of ideas. Do I have a bad unit? It's been weeks of trying everything and I'm about to return it. This isn't my first Arduino project by a long shot.
Same thing every time. "Did not find fingerprint sensor :(" when I run the enroll sketch.
I also tried to connect white to pin 0 and green to 1 and run the Windows software using the Com port for the Mega that's in Arduino. I get the error "Open Device fail, please check the password and the device address!"
I also used a test probe and verified a connection from the PCB connectors for the connector on the sensor all the way to the bottom of the header on the Arduino. From sensor PCB to Arduino PCB it looks as though I have a good connection.
I'm out of ideas. Do I have a bad unit? It's been weeks of trying everything and I'm about to return it. This isn't my first Arduino project by a long shot.
- saasier
- Posts: 3
- Joined: Sun Sep 14, 2014 4:35 pm
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
I tried a different PC and got the PC software to work using hardware serial pins 0 and 1. Now I know the unit isn't bad. Moved back to pins 10 and 11 and still no luck, still saying the sensor can't be found. I also re-installed the library and re-installed the latest Arduino 1.5.7. I also tried pins 52 and 53.
The problem is either the sensor or the arduino library and since I got the sensor to work with the PC software it leads me to believe it's the Arduino library.
The problem is either the sensor or the arduino library and since I got the sensor to work with the PC software it leads me to believe it's the Arduino library.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
The 1.5 branch of the Arduino IDE is experimental and known to have several bugs/quirks. The latest stable version is 1.0.5.
Try that and see if it works.
Try that and see if it works.
- saasier
- Posts: 3
- Joined: Sun Sep 14, 2014 4:35 pm
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
Yes, 1.0.5 worked. Thanks for the tip.
- reemohamed52
- Posts: 1
- Joined: Thu Mar 03, 2016 8:02 am
Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X
please anyone code help me to post the delete code for using hardware Rx and Tx not softserial pins?
Please be positive and constructive with your questions and comments.