Go Down

Topic: Wifi101 will only work with Uno / Zero?? (Read 4097 times) previous topic - next topic

super_lazy

Oct 04, 2015, 02:45 am Last Edit: Oct 04, 2015, 06:03 pm by super_lazy
I just received one the new Wifi101 shields and it will not work with a Mega 2560. after a closer read of "Requires an Arduino / Genuino Zero or Uno (*) board (not included)" I understood why. is that accurate? only works with those two boards? Can any offer suggestions as to how to get this to work with a Due or Mega? will there be updates / new versions that would let this work with other boards?

Can I just edit the SPI.h file to use the correct pins for the MEGA?

Thanks

a_guadalupi

@super_lazy At the moment unfortunately yes, bu t very soon it will work with all the boards

super_lazy


cmaglie

@super_lazy, there is an update the to the library (0.5.1), may you give it a try with the Mega?

Please note also that there is a known bug in the UDP read when using the shield on AVR:
https://github.com/arduino-libraries/WiFi101/issues/2

This should be a bug in the library and not in the firmware (since it works as expected on the Arduino Zero and the Arduino Due) and it should be solved in a next release.
C.

super_lazy

#4
Oct 24, 2015, 12:49 am Last Edit: Oct 24, 2015, 06:33 pm by super_lazy
@cmaglie Tried the new libraries with both Mega and Due. worked perfect, thanks very much. By the way, this shield works very well, nice work!!

charliesixpack

#5
Nov 17, 2015, 09:20 pm Last Edit: Dec 08, 2015, 07:37 pm by charliesixpack
Please note also that there is a known bug in the UDP read when using the shield on AVR:
https://github.com/arduino-libraries/WiFi101/issues/2

This should be a bug in the library and not in the firmware (since it works as expected on the Arduino Zero and the Arduino Due) and it should be solved in a next release.
Just found this info after spending three hours trying to fix my Mega after my Zero worked fine.  This fix cannot come fast enough for me.  I will be super grateful for any solution.

I traced the problem to the Mega returning 0 seconds since Jan. 1, 1900.

Postscript:  Modified my sketch and the shield works fine with the Mega now.  The example sketch has code that does not work with the Mega so some modification is necessary.

soundanalogous

Should the old Mega 2560 board (without IOREF pin above RESET and SDA and SCL pins above AREF pin) work with the WiFi 101 shield? I'm not having any luck and am suspecting it may be these pins are not broken out. I'm using the latest version of the WiFi101 lib (cloned directly from the arduino-libraries/WiFi101 repo on github). Works fine with Arduino Zero and Arduino Due.

udan

I am planning to do some projects on my new board mega adk R3 using the WiFi101 shield, will it be able to use it against my board?

thorathome

I don't know, udan, if your project will work!  But I am having delightful success with the WiFi 101 shield on both Uno R3 and Mega 2560.  I'm using UDP and TCP connections in the same sketch.  (I did find that stopping the UDP connection after an NTP query, for example, makes the TCP communication run more smoothly.  Not sure if this is just good practice, but leaving the UDP connection open/unstopped did cause some disruption on the TCP communications.) 

All in all, I am very pleased with the new WiFi 101 shield and library - much more stable than any other WiFi shield I've worked with.  Thanks, library makers. 

david-

I have the latest WiFi101 shield.
It works very well on my Arduino 2560 megas.

I have written and tested the following applications:
  • http server
  • smtp mail upload with attachment, with ntp support
  • ftp client with ntp support
  • flycam image capture with ftp support

The libraries used are:
  • #include <SPI.h>
  • #include <SdFat.h>
  • #include <Time.h>
  • #include <WiFi101.h>
  • #include <WiFiUdp.h>
  • #include <Servo.h>


All the applications use a cheap micro sd breakout board  from Hobby ElecTronics
http://www.hobbytronics.co.uk/microsd-card-regulated-v2?keyword=3v3%20sd
 The sd uses port 53 as the chip select. This does not caused an issue with the wifi101 which has port 10 as the chip select. I do not need to disable the chip selects to favour a device.

The latest library is quite fast. My server app responds quickly (multiple images on a page) and upload applications are fast. There is an issue with ftp download, where I had to create a work-round to a stallout at 1418 bytes:
https://github.com/arduino-libraries/WiFi101/issues/32
There is a known issue with the board detection routine not returning when the WiFi101 hardware is undetected. The fix for this is simple and is coming soon....?
https://github.com/arduino-libraries/WiFi101/issues/22

David

Go Up