RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
acosicdm
 
Posts: 12
Joined: Sat Apr 19, 2014 10:54 pm

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by acosicdm »

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!

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by adafruit_support_bill »

Adafruit_Fingerprint does not name a type
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-use

acosicdm
 
Posts: 12
Joined: Sat Apr 19, 2014 10:54 pm

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by acosicdm »

Thank you sir. It help a lot. BTW. Can I cascade 2 arduino mega?

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by adafruit_support_bill »

Can I cascade 2 arduino mega?
Not sure what you mean by 'cascade'. Can you elaborate?

acosicdm
 
Posts: 12
Joined: Sat Apr 19, 2014 10:54 pm

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by acosicdm »

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.

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by adafruit_support_bill »

Yes, you can communicate between 2 Megas. The simplest way is probably via one of the serial ports.

acosicdm
 
Posts: 12
Joined: Sat Apr 19, 2014 10:54 pm

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by acosicdm »

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.

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by adafruit_support_bill »

There is an excellent library from Bill Porter for doing this here: http://www.billporter.info/2011/05/30/e ... o-library/

acosicdm
 
Posts: 12
Joined: Sat Apr 19, 2014 10:54 pm

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by acosicdm »

Sir. Do you ship products here in Philippines?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by adafruit_support_mike »

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

User avatar
saasier
 
Posts: 3
Joined: Sun Sep 14, 2014 4:35 pm

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by saasier »

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.

User avatar
saasier
 
Posts: 3
Joined: Sun Sep 14, 2014 4:35 pm

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by saasier »

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.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by adafruit_support_mike »

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.

User avatar
saasier
 
Posts: 3
Joined: Sun Sep 14, 2014 4:35 pm

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by saasier »

Yes, 1.0.5 worked. Thanks for the tip.

User avatar
reemohamed52
 
Posts: 1
Joined: Thu Mar 03, 2016 8:02 am

Re: RE: Fingerprint Sensor, Arduino MEGA 2560 and Mac OS X

Post by reemohamed52 »

please anyone code help me to post the delete code for using hardware Rx and Tx not softserial pins?

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”