So i bought an Ethernet Shield 2 for my Arduino Uno R3, when i try to set it up using the DhcpAdressPrinter sketch, nothing comes on the Serial Monitor.
-I put in the Mac Adress that was on the sticker when i got it.
So i bought an Ethernet Shield 2 for my Arduino Uno R3, when i try to set it up using the DhcpAdressPrinter sketch, nothing comes on the Serial Monitor.
-I put in the Mac Adress that was on the sticker when i got it.
Which library are you using? The Ethernet library included with the Arduino IDE doesn't support the Ethernet Shield 2.
#include <SPI.h>
#include <Ethernet.h>
(im kinda new to programming and such so bare with me here)
Yes, that's your problem. The Ethernet library only supports the W5100 Ethernet controller but the Ethernet Shield 2 uses the W5500 Ethernet Controller so you need to install a library that supports the W5500.
There are a few different options. Since you're "kinda new" I think the one with the easiest installation(Ethernet2) will be best, although the other options may actually be superior in other ways.
Note that if you're using the arduino.org IDE you already have the Ethernet2 installed and you can skip the following installation process and just change the #include line as shown below. The arduino.cc(this website) IDE does not include the Ethernet2 library so you do need to install it if you're using that IDE.
Ethernet2 library installation:
Now that the library is installed you just need to change the line:
#include <Ethernet.h>
To:
#include <Ethernet2.h>
in your sketch.
Other libraries that support W5500:
The installation process for these libraries is more complex so if you decide you want to use one of them I'm happy to provide instructions.