The Ethernet Pro is an Arduino-compatible shield designed to enable network connectivity for Arduino boards. By providing a standard RJ45 Ethernet jack, it allows Arduino projects to connect to wired networks, enabling functionalities such as network communication, remote control, and data logging. Common applications include home automation, IoT devices, and networked sensors.
Pin Number | Function | Description |
---|---|---|
1 | INT | Interrupt output, active low |
2 | RESET | Reset input, active low |
10 | SS | SPI Slave Select, active low |
11 | MOSI | SPI Master Out Slave In |
12 | MISO | SPI Master In Slave Out |
13 | SCK | SPI Serial Clock |
- | GND | Ground |
- | 5V | 5V Power supply from Arduino |
To use the Ethernet Pro with an Arduino, include the Ethernet library in your sketches:
#include <Ethernet.h>
Here's a simple example to initialize the Ethernet shield:
#include <SPI.h>
#include <Ethernet.h>
// MAC address for your Ethernet shield
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
void setup() {
// Open serial communications
Serial.begin(9600);
// Start the Ethernet connection
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
// No point in proceeding, loop forever
for (;;)
;
}
Serial.println("Ethernet configured via DHCP");
Serial.print("My IP address: ");
Serial.println(Ethernet.localIP());
}
void loop() {
// Main code would go here
}
Ethernet.begin()
parameters.ping
to test connectivity and ensure the network is configured correctly.Can the Ethernet Pro be used with Arduino Mega or Leonardo? Yes, the Ethernet Pro is compatible with any Arduino board that has an ICSP header and conforms to the shield form factor.
Does the Ethernet Pro support Power over Ethernet (PoE)? No, the Ethernet Pro does not support PoE natively. An external PoE module would be required.
Can I connect multiple Ethernet Pro shields to one Arduino? No, the SPI interface used by the Ethernet Pro does not support multiple Ethernet controllers on the same bus.
For further assistance, consult the Arduino Ethernet library documentation and the Ethernet Pro manufacturer's resources.