ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า

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. }
เงื่อนไขอื่นๆ
Tags

นโยบายการเปลี่ยนหรือคืนสินค้า


สินค้าทุกชิ้นมีการรับประกัน 30 วันครับ

โดยมีเงื่อนไขต่างๆดังนี้

1. ลูกค้าไม่ได้เป็นผู้ทำเสียหายเอง อาธิเช่น การต่อไฟเลี้ยงไม่ถูกต้อง (เซนเซอร์รับ 3.3v เราใส่ 5v อันนี้ไม่ได้เนอะ)
2. สินค้าต้องอยู่ในสภาพสมบูรณ์ ไม่แตกหักหรือเสียหายจากไฟ (เช่นไฟฟ้าลัดวงจรจนไฟไหม้)
3. ทางร้านไม่รับเปลี่ยนสินค้าจากความเข้าใจผิดของลูกค้าเอง เช่น ขนาดไม่ตรงกับงานที่ใช้, หรือซื้อไว้แต่ไม่ได้ใช้งาน เป็นต้น ลูกค้าสามารถสอบถามข้อมูลสินค้าหากมีความคลุมเครือก่อนสั่งซื้อได้ในไลน์ร้าน @modulemore ตลอดวันทำการ ยกเว้นเวลา 12.00-14.00 ที่อาจมีการตอบช้าในช่วงนี้ 

การส่งคืนสินค้า
การส่งคืนสินค้าจำเป็น ต้องมีใบเสร็จหรือสำเนา เพื่อความรวดเร็วในการตรวจสอบครับ
สามารถส่งคืนได้ผ่านที่อยู่ของร้าน คลิ๊ก โดยเขียนเป็นลายลักษณ์อักษรกำกับดังนี้
1. รายละเอียดรายการเสียหาย
2. ลูกค้าได้ทดสอบอะไรไปบ้าง

ทางร้านขอสงวนสิทธิ์ในการตัดสินใจเปลี่ยนสินค้าหรือคืนเงินครับ

 
ไทย

สินค้าของเรา

เซนเซอร์/ โมดูล [323]

MEMBER ZONE

TRACK & TRACE

*ใส่ เบอร์มือถือ หรือ email ที่ใช้ในการสั่งซื้อ

OVERVIEW

หน้าที่เข้าชม2,072,024 ครั้ง
ผู้ชมทั้งหมด1,332,750 ครั้ง
ร้านค้าอัพเดท5 ก.ย. 2568

JOIN US

ร้านโมดูลมอร์
ร้านโมดูลมอร์
/www.modulemore.com/
Join เป็นสมาชิกร้าน
600
สมัครสมาชิกร้านนี้ เพื่อรับสิทธิพิเศษ
Choose your language
Language
Currency
Change
เปลี่ยนภาษา
รายการสั่งซื้อของฉัน
รายการสั่งซื้อของฉัน
ข้อมูลร้านค้านี้
ร้านโมดูลมอร์
โมดูลมอร์
ขาย arduino, diy, เรียน arduino, ทำหุ่นยนต์, ฝึกเขียนโปรแกรม, ตั้งแต่ระดับเริ่มต้นจนชำนาญ
เบอร์โทร : 0831710868
อีเมล : modulemore@gmail.com
ส่งข้อความติดต่อร้าน
เกี่ยวกับร้านค้านี้
สินค้าที่ดูล่าสุด
ดูสินค้าทั้งหมดในร้าน
สินค้าที่ดูล่าสุด
บันทึกเป็นร้านโปรด
Join เป็นสมาชิกร้าน
แชร์หน้านี้
แชร์หน้านี้

TOP เลื่อนขึ้นบนสุด
พูดคุย-สอบถาม