read MiFare card not working

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
wallas77
 
Posts: 8
Joined: Fri Sep 26, 2014 1:29 pm

read MiFare card not working

Post by wallas77 »

I used the /dev/ttyusbmodem1431 and the readMifare sketch doesn't display anything in the serial monitor, if I use another sketch like TimeCheck the println in the serial monitor works correctly.

I include an image of the TimeCheck sketch

thanks in advance
Attachments
Arduino2.gif
Arduino2.gif (520.36 KiB) Viewed 191 times

User avatar
Franklin97355
 
Posts: 23940
Joined: Mon Apr 21, 2008 2:33 pm

Re: Duplicating MiFare card

Post by Franklin97355 »

Wallas77 could we get some more information. Are you using the shield and on what Arduino? how is it powered and what are the cards you are using?

User avatar
ktownsend
 
Posts: 1447
Joined: Thu Nov 05, 2009 2:18 am

Re: Duplicating MiFare card

Post by ktownsend »

Please post new questions in new threads, thanks.

User avatar
wallas77
 
Posts: 8
Joined: Fri Sep 26, 2014 1:29 pm

Re: read MiFare card not working

Post by wallas77 »

I'm using an arduino yun with the NFC + RFID shield, the power supply is with a USB to mini USB cable directly to the computer

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: read MiFare card not working

Post by adafruit_support_rick »

This is a Yun thing - it has nothing to do with the NFC shield. Sometimes with Yun and Leonardo the serial monitor doesn't want to connect properly. One thing you can do is wait for it to connect. Try changing the beginning of the setup() function:

Code: Select all

void setup(void) {
  while (!Serial);    //wait for a serial connection
  Serial.begin(115200);

  Serial.println("Hello!");

...etc...


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

Return to “Arduino Shields from Adafruit”