Mega R3 + Micro SD + POE W5500 Active

  • Brand: Robotdyn
  • Product Code: 6970622937111
  • Stock

    Warehouse Stock Status Location
    Centurion In Stock Front Shelf
    Stellenbosch New Product Arriving Soon
  • R858.00 (price excl. VAT)


Mega R3 + Micro SD + POE W5500 Active

The MEGA 2560 ETH R3 is a fully featured Ethernet-connected device via LAN or Wi-Fi. Depending on your preferred usage, it can act as a server or a net member. In a server role, it will receive requests from other devices and services in local network and internet, and respond or react accordingly. In a net member role, the MEGA 2560 ETH R3 can collect data from different devices or industrial equipment and send it through the local network or Internet. It can also receive data from local network and internet, and control connected devices and equipment. The MEGA 2560 ETH R3 can also act as stand-alone unit, providing autonomous reaction based on the defined algorithm in response to network changes or other triggers.

6970622937111-002

The MEGA 2560 ETH R3 features 5 devices on one board:

  • Mega 2560 based on an ATmega2560 with 70 I/O
  • Ethernet controller based on WizNet W5500 TCP/IP
  • Optional PoE function (receiving power directly through the Ethernet cable). Can select passive PoE or active (intellect) PoE
  • Micro SD card module
  • Additional Wi-Fi module ESP-01, based on ESP8266 microcontroller

Quick Spec

  • Input Voltage (VIN/DCВ jack): 7~12V
  • PowerВ IN (USB): 5V-limit 500mAВ
  • PoE Type: No PoE/Active PoE/Passive PoE
  • PowerВ IN (PoE): Optional module, 48V(Input), 9V(Output)Digital I/O: 54PWM Output: 12
  • Analog I/O: 16
  • Reserved Pins:
    • D4В is used forВ SD card select;
    • D10В is used for W5500 CS;
    • *Optional: D8В is used for W5500В interrupting, D7В is used for W5500 initialization, D9В is used forВ SD card detect
  • USB socket: Micro-USB
  • Ethernet socket: RJ45
  • PCB Size: 53.35Г—101.61mm
  • Card Reader: Micro SDВ card, with logic level converter
  • Weight: 63g

Sample Code



#include  
#include 
 
#include 
#include 
#define SS 10    //W5500 CS
#define RST 7    //W5500 RST
#define CS 4     //SD CS pin
 
// enter MAC-address and IP-address of your controller below;
// IP-address depends on your local network:
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
char macstr[18];
IPAddress ip(192,168,1,111);
 
// initialize Ethernet Server library by designating a port
// (default port for HTTP is «80»):
EthernetServer server(80);
 
// specifying a contact and default state for LED:
String LED1State = "Off";
const int LED = 13;
 
// specifying variables for the client:
char linebuf[80];
int charcount=0;
 
void eeprom_read()
{
  if (EEPROM.read(1) == '#') 
  {
    for (int i = 2; i < 6; i++) 
    {
       mac[i] = EEPROM.read(i);
    }
  }
}
 
void eeprom_write()
{
   EEPROM.write(1, '#');
   snprintf(macstr, 18, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
}
 
void setup() {
  // preparing LED-module:
 
  pinMode(LED_BUILTIN, OUTPUT);
  digitalWrite(LED_BUILTIN, HIGH);
  pinMode(SS, OUTPUT);
  pinMode(RST, OUTPUT);
  pinMode(CS, OUTPUT);
  digitalWrite(SS, LOW);
  digitalWrite(CS, HIGH);
  /* If you want to control Reset function of W5500 Ethernet controller */
  digitalWrite(RST,HIGH);
 
  pinMode(LED, OUTPUT);
  digitalWrite(LED, HIGH);
 
  // opening a  sequential communication with 9600 baud speed:
  Serial.begin(9600);
 
  eeprom_read();
  eeprom_write();
 
  // initialising Ethernet-communication and server:
  Ethernet.begin(mac, ip);
  server.begin();
  Serial.print("server is at ");  //  "server at "
  Serial.println(Ethernet.localIP());
  Serial.println(Ethernet.macAddressReport());
}
 
// Displaying a webpage with a «ON/OFF» button for LED:
void dashboardPage(EthernetClient &client) {
  client.println("");
  client.println("");                                                            
  client.println("

Arduino Web Server - Refresh

"); client.println("

local IP

"); client.println(Ethernet.localIP()); client.println("

"); client.println("

mac Address

"); client.println(Ethernet.macAddressReport()); client.println("

"); client.println("

TEXT

"); client.println("
"); // generating a button to control LED: client.println("

LED 13 - State: " + LED1State + "

"); // if LED is off, Displaying an «ON» button: if(LED1State == "Off"){ client.println(""); } // if LED is on, Displaying an «OFF» button: else if(LED1State == "On"){ client.println(""); } client.println(""); } void loop() { // reading the incoming clients: EthernetClient client = server.available(); if (client) { //Serial.print (client.read()); //Serial.println("new client"); // "new client" memset(linebuf,0,sizeof(linebuf)); charcount=0; // HTTP-request is ending with blank line: boolean currentLineIsBlank = true; while (client.connected()) { if (client.available()) { char c = client.read(); // reading a HTTP-request, one symbol at a time: linebuf[charcount]=c; if (charcount 0){ digitalWrite(LED, HIGH); LED1State = "Off"; } else if (strstr(linebuf,"GET /LED13on") > 0){ digitalWrite(LED, LOW); LED1State = "On"; } // if you recieved a symbol form a new line currentLineIsBlank = true; memset(linebuf,0,sizeof(linebuf)); charcount=0; } else if (c != '\r') { // if you recieved any other symbol currentLineIsBlank = false; } } } // providing a time for a borwser to recieve the data: delay(1); // closing the connection: client.stop(); //Serial.println("client disonnected"); // "Client is disconnected" } }

Resources

Shipping List

  • 1 X Mega R3 + Micro SD + POE W5500 Active


Related Products

Mega ADK R3 Board - Compatible with Arduino®

Mega ADK R3 Board - Compatible with Arduino®

Mega ADK R3 Board - Compatible with Arduino® The Arduino ADK is a microcontroller board based on the ATmega2560. It has a USB host interface to connect with Android based phones. It is compatible wit..

R585.00

Compact Mega Pro 2560 5V 16MHz

Compact Mega Pro 2560 5V 16MHz

Compact Mega Mini Pro 2560 5V - Size 38mm x 55 mm This is compact Arduino Mega 2560. It only measures 38x55mm. We aim to keep the standard for at least 3-5years for most customers to standardize pr..

R228.00

Mega 2560 Industrial - Logic level 3.3V or 5V

Mega 2560 Industrial - Logic level 3.3V or 5V

Mega 2560 Pro Industrial - Logic level 3.3V or 5V The MCU-PRO MEGA 2560 is tiny, which is convenient to use for creating embed projects or the final product. With 86 I/O - 69 digital I/O pins, 17 a..

R228.00

MCU-PRO Mega 2560 CH350 2.54mm Pitch

MCU-PRO Mega 2560 CH350 2.54mm Pitch

MCU-PRO Mega 2560 CH350 2.54mm Pitch The MCU-PRO MEGA 2560 is tiny, which is convenient to use for creating embed projects or the final product. With 86 I/O - 69 digital I/O pins, 17 analog inputs (Y..

R228.00

Leonardo ETH W5500 POE - Active

Leonardo ETH W5500 POE - Active

Leonardo ETH W5500 POE - Active The Leonardo ETH is a fully featured Ethernet-connected device. Depending on your use case, it can act as a server or a net member. In a server role, it will receive r..

R615.00

Tags: mega, r3, micro sd, sd, poe, w5500, ethernet, lan, wifi, iot