Ethernet Arduino PLC. How to connect M-duino PLC to Ethernet

Ethernet Arduino PLC. How to connect M-duino PLC to Ethernet

M-duino PLC is using an ENC28J60 chip in order to connect to Ethernet. You can choose two libraries in order to connect all M-duino family products

  1. UIPEthernet: you can find in Gitub. It uses the same functions as the Official Arduino Ethernet Shield.
  2. EtherCard: You can find this documentation and libraries in the Jeelabs website. You need to import all libraries:
 Sketch / Import Library / Add Library.

And then restart Arduino IDE. It’s important to take into account:

/////
static byte mymac[] = {0xFF,...,0xFF}; // Valor de la MAC del ethernet.

if (ether.begin(sizeof Ethernet::buffer, mymac, 53) == 0)
    Serial.println("Failed to access Ethernet controller");
////
Comments are closed.