Advice needed! Uno vs Mega + NFC + Wifi

Hello everyone.



Any advice would be appreciated. I’m running out of time for my project and my hardware skills are lacking (this was supposed to be a focus on software more than anything).



I own an Arduino Mega, Arduino Uno, Seeed NFC shield v2 and an Arduino Wifi Shield.



I’m trying to figure out why the compatibility table shows an Arduino Uno as compatible with Seeed Wifi Shield v2 but an Arduino Mega is not even though it contains the same pins and the board is pretty much the same?



Does anyone have any tips how I can get the current equipment I have working?

Hi there,



it works with mega. please refer to below info.



The examples is based on Arduino UNO and we take D2/D3 as the SoftwareSerial pins. If you are using an Arduino Mega, D2 is not available anymore. More details please refer to Arduino Software Serial(<LINK_TEXT text=“https://www.arduino.cc/en/Tutorial/Soft … ialExample”>https://www.arduino.cc/en/Tutorial/SoftwareSerialExample</LINK_TEXT>) Here’s an example.







here is the matched code.



#include <SoftwareSerial.h>

#include “WiFly.h”



SoftwareSerial uart(10, 3); // create a serial connection to the WiFi shield TX and RX pins.

WiFly wifly(&uart); // create a WiFly library object using the serial connection to the WiFi shield we created above.



void setup()

{

uart.begin(9600); // start the serial connection to the shield

Serial.begin(9600); // start the Arduino serial monitor window connection

wifly.reset(); // reset the shield

while(wifly.join(“mySSID”,“mySSIDpassword”,WIFLY_AUTH_WPA2_PSK) == false)

{

Serial.println(“Failed to connect to accesspoint. Will try again.”);

}

Serial.println(“Connected to access point!”);

}



void loop()

{



}



thanks.