Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't get it works with Arduino Mega 2560 #7
I found your library which is the one that could works with my setup (Arduino Mega 2560 + Arduino Wireless Shield (official) + RN-XV module)
I read a lot of topics on various forums that said that I needed to wire correctly the board to get it works (pins 10, 11, 12, 13 of the shield with 50, 51, 52, 53) however I can't get the WiFly to connect to my network... always the same error message in the Arduino IDE's serial monitor :
I tried to unplug the pins D0, D1 of the shield and route them to Serial1 of the board (pins 18, 19) which was unsuccessfull... I'm a little bit disappointed that I can't get it works.
It would be great if you could help me !
Thanks for taking the time to read me and please forgive my english,
The Arduino Wireless Shield is pretty restricted in terms in how in connects the module's serial to the Arduino. It only connects it to the main hardware serial port (pins 0 and 1), so you would have to use that with the WiFlyHQ library. It also means you can't use the Serial Monitor for debugging since it is being used to communicate with the WiFly modules.
E.g. In your sketch do the following:
If you'd like to use another serial interface on the Mega for the WiFly and use the main one for debug output, you could cut off pins 0 and 1 on the Arduino Wireless Shield and use jumper wires to connect pin 0 on the shield to pin 19 on the Mega and pin 1 on the shield to pin 18 on the Mega and use the following code to setup the WiFly connection: