Arduino Due compatible with Arduino Ethernet shield or Arduino Wifi shield ?

Hey guys,

I tested it yesterday and it is working. I had one small issue though. I started with a Sketch I was using with my UNO, it compiled well, but after uploading it to my DUE, the WiFi was not connecting. Furthermore I noticed that the board actually froze. After some trial-and-error I found out my includes where in the wrong order.

So I changed if from:

/* Includes */
#include <WiFi.h>
#include <WiFiUdp.h>
#include <SPI.h>

to:

/* Includes */
#include <SPI.h>
#include <WiFi.h>
#include <WiFiUdp.h>

The weird thing is that with my UNO this was not an issue. Anyway, good luck!

Pieter

RPieter:
Hi,

I have an Arduino DUE R3 and an official Arduino WiFi shield (one month old). Can I just plug my Shield in the DUE, will this work and not damage any hardware? What about the library, do I have to add a special library for the WiFi shield now it is connected to a DUE, or does the WiFi library in the 1.5.5 IDE handles everything?

Thanks in advance :slight_smile:

cmaglie:
They are both compatible.

For the Wifi shield, the library is still missing, so you can't still use it (unless you port the library by yourself). I'm working on it.