Information
Item weight
Barcode
Created time
Last updated on
Item description

Ethernet W5100 R3 network expansion shield สำหรับ MEGA module UNO

The Ethernet expansion board allows the controller to connect to the network. It is an expansion board with built-in WizNet W5100 TCP/IP microprocessor. This board is connected to the board by a long pin header (wire-wrap header). You can easily use this expansion board to connect to the network using the Ethernet library program in the IDE. This expansion board supports simultaneous connection of 4 sockets.

And the R3 version of this expansion board also adds a standard version 1.0 output port composed of 4 additional ports: 2 are located on the side of ARFF, and 2 are located on the side of RESET. Two ports on the side of RESET, one is IOREF, which is used to adapt the expansion board to the main board. Another empty port is reserved for future expansion.

This version of this version adds a micro-SD card slot and has a network storage function. In addition, it is fully compatible with Duemilanove and Mega series. It also has an independent PoE (power-over-Ethernet) module. The module can be soldered to the motherboard to transmit power through twisted-pair cables. This is in line with the IEEE802.3af standard and is compatible with existing PoE modules.

Technical specifications

Compatible with Mega2560/Uno rev3 standard output port

PoEreset controller for micro-SD card connector with active voltage converter function

Compatible with MEGA board


ตัวอย่างโค้ด UNO ทดสอบเรียกวันที่และเวลาจากเซิฟร์เวอร์ NTP 

 

  1. #include <Arduino.h> 
  2. #include <SPI.h>
  3. #include <Ethernet.h>
  4. #include <EthernetUdp.h>
  5.  
  6. byte mac[] = {
  7.   0xDE0xAD0xBE0xEF0xFE0xED
  8. };
  9.  
  10. unsigned int localPort = 8888;  
  11.  
  12. const char timeServer[] = "time.nist.gov"
  13.  
  14. const int NTP_PACKET_SIZE = 48;  
  15.  
  16. byte packetBuffer[NTP_PACKET_SIZE]
  17.  
  18. EthernetUDP Udp;
  19. void sendNTPpacket(const char * address);
  20.  
  21. void setup() 
  22.   Ethernet.init(10);  
  23.   Serial.begin(9600)
  24.   Serial.println("Start");
  25.  
  26.   if (Ethernet.begin(mac) == 0) {
  27.     Serial.println("Failed to configure Ethernet using DHCP")
  28.     if (Ethernet.hardwareStatus() == EthernetNoHardware) {
  29.       Serial.println("Ethernet shield was not found.  Sorry, can't run without hardware. :(");
  30.     } else if (Ethernet.linkStatus() == LinkOFF) {
  31.       Serial.println("Ethernet cable is not connected.");
  32.     
  33.   }
  34.   Udp.begin(localPort);
  35. }
  36.  
  37. void loop() {
  38.   sendNTPpacket(timeServer);  
  39.  
  40.   delay(1000);
  41.   if (Udp.parsePacket()) 
  42.     Udp.read(packetBuffer, NTP_PACKET_SIZE); // read the packet into the buffer
  43.  
  44.  
  45.     unsigned long highWord = word(packetBuffer[40], packetBuffer[41]);
  46.     unsigned long lowWord = word(packetBuffer[42], packetBuffer[43])
  47.     unsigned long secsSince1900 = highWord << 16 | lowWord;
  48.     Serial.print("Seconds since Jan 1 1900 = ");
  49.     Serial.println(secsSince1900);
  50.  
  51.     Serial.print("Unix time = ")
  52.     const unsigned long seventyYears = 2208988800UL
  53.     unsigned long epoch = secsSince1900 - seventyYears
  54.     Serial.println(epoch);
  55.  
  56.     Serial.print("The UTC time is ");       // UTC is the time at Greenwich Meridian (GMT)
  57.     Serial.print((epoch  % 86400L) / 3600); // print the hour (86400 equals secs per day)
  58.     Serial.print(':');
  59.     if (((epoch % 3600) / 60) < 10) {
  60.       // In the first 10 minutes of each hour, we'll want a leading '0'
  61.       Serial.print('0');
  62.     }
  63.     Serial.print((epoch  % 3600) / 60); // print the minute (3600 equals secs per minute)
  64.     Serial.print(':');
  65.     if ((epoch % 60) < 10) {
  66.       // In the first 10 seconds of each minute, we'll want a leading '0'
  67.       Serial.print('0');
  68.     }
  69.     Serial.println(epoch % 60); // print the second
  70.   }
  71.   // wait ten seconds before asking for the time again
  72.   delay(1000);
  73.   Ethernet.maintain();
  74. }
  75.  
  76. void sendNTPpacket(const char * address) {
  77.   // set all bytes in the buffer to 0
  78.   memset(packetBuffer, 0, NTP_PACKET_SIZE)
  79.   packetBuffer[0] = 0b11100011;   // LI, Version, Mode
  80.   packetBuffer[1] = 0;     
  81.   packetBuffer[2] = 6;    
  82.   packetBuffer[3] = 0xEC;   
  83.   packetBuffer[12]  = 49;
  84.   packetBuffer[13]  = 0x4E;
  85.   packetBuffer[14]  = 49;
  86.   packetBuffer[15]  = 52
  87.   Udp.beginPacket(address, 123); // NTP requests are to port 123
  88.   Udp.write(packetBuffer, NTP_PACKET_SIZE);
  89.   Udp.endPacket();
  90. }
Conditions
Tags

Exchange or return policy



Every item comes with a 30-day warranty. However, there are certain conditions that apply:

  1. The customer should not be responsible for any self-inflicted damage, such as incorrect power connections (for example, supplying 5V instead of the required 3.3V for a sensor).

  2. The product must be in perfect condition, without any breakage or damage caused by electricity (e.g., short circuits leading to electrical fires).

  3. The store does not accept product exchanges due to customer misunderstandings, such as purchasing the wrong size for their project or buying something without eventually using it. Customers can inquire about the product details and ensure compatibility before making a purchase by contacting us through our Line account @modulemore during business hours. Please note that there may be delays in response between 12:00 PM and 2:00 PM.

Return Policy: To initiate a product return, customers must provide the original receipt or a copy for quick verification. Returns can be sent to our store address by following these guidelines:

  1. Provide a detailed description of the damaged item(s).
  2. Mention any tests or experiments conducted by the customer.

Please note that the store reserves the right to make the final decision regarding product replacement or refund.

English

Categories

TRACK & TRACE

*Enter your order ID or email used in placing an order

OVERVIEW

Pageviews2,072,435 view(s)
Visitors1,333,161 time(s)
Last updatedSep 6, 2025

JOIN US

ร้านModuleMore
ร้านModuleMore
/www.modulemore.com/en
Join as a Member
600
Become a member of this store to receive special offers and promotions
Choose your language
Language
Currency
Change
Modify language
My orders
This seller's information
ร้านModuleMore
ModuleMore
Arduino compatible board, Iot, ESP32, ESP8266, Nodemcu, Raspberry pi, micro:bit and etc.
Mobile number : 0831710868
E-mail : paheyisoicus@gmail.com
Send message to seller
About this seller
Recently viewed items
Favourite this seller
Join as a Member
Share this page
Share this page

TOP Back to top
Contact me