Hi I have uploaded the RFID/NFC sketch to my Yun. I have modified the sketch to use Dig pin 6 for the IRQ and verified that pin 2 is no longer connected (used DMM). Jumper wire is connected underneath the board; pic only shows solder joint from top view.
When I open the serial monitor (which is set to 115kbaud), no text from the Yun shows up. Is there something special I am supposed to do in order for this to start the serial comms?
PN532 - no verbose when opening Serial Monitor
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- bobbycee70
- Posts: 7
- Joined: Wed May 21, 2014 5:14 pm
PN532 - no verbose when opening Serial Monitor
- Attachments
-
- Photo of shield soldered pins.
- IMG_3300_resized.jpg (756.46 KiB) Viewed 296 times
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: PN532 - no verbose when opening Serial Monitor
Which sketch would that be?I have uploaded the RFID/NFC sketch
- bobbycee70
- Posts: 7
- Joined: Wed May 21, 2014 5:14 pm
Re: PN532 - no verbose when opening Serial Monitor
Good question, sorry about that...
The 'mifareclassic_formatndef' sketch was the one that I uploaded.
Regards,
Bob
The 'mifareclassic_formatndef' sketch was the one that I uploaded.
Regards,
Bob
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: PN532 - no verbose when opening Serial Monitor
Try moving your Serial.begin() above the declaration of the nfc and see if you can print something there. I don't have a yun so I can't test this here.
- bobbycee70
- Posts: 7
- Joined: Wed May 21, 2014 5:14 pm
Re: PN532 - no verbose when opening Serial Monitor
I believe, by default that Serial.begin() is called before the NFC declaration:
-------------------------------------------
void setup(void) {
Serial.begin(115200);
Serial.println("Looking for PN532...");
nfc.begin();
-------------------------------------------
-------------------------------------------
void setup(void) {
Serial.begin(115200);
Serial.println("Looking for PN532...");
nfc.begin();
-------------------------------------------
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: PN532 - no verbose when opening Serial Monitor
Put it above this line. and try to print something or failing that move that line down to the bottom of setup
Code: Select all
Adafruit_NFCShield_I2C nfc(IRQ, RESET);
- bobbycee70
- Posts: 7
- Joined: Wed May 21, 2014 5:14 pm
Re: PN532 - no verbose when opening Serial Monitor
Thanks for the tips, but I believe that moving the Serial.begin(115200) would cause a type-definition error and moving the Adafruit_NFC_I2C nfc(IRQ, RESET); down would cause the device not to be properly defined.
I'll keep searching...just keep thinking that something may be wrong with the NFC definition and it's halting the code.
I'll keep searching...just keep thinking that something may be wrong with the NFC definition and it's halting the code.
- bobbycee70
- Posts: 7
- Joined: Wed May 21, 2014 5:14 pm
Re: PN532 - no verbose when opening Serial Monitor
Solved my problem by putting a Serial Wait State in the code!
Code: Select all
Serial.begin(115200);
while (!Serial); {
;
}
Serial.println("Looking for PN532...");
Please be positive and constructive with your questions and comments.