AnswerBun.com

Ethernet Shield doesn't work at all

Arduino Asked by silencefog on December 30, 2021

I connected corresponding pins of Arduino Nano and the Ethernet Shield, connected my computer to a router (the light indicated the connection) and Ethernet Shield to the same router. Nevertheless, there is no sign of connection on the router and the leds on the Shield don’t light up either. I tried changing cables and Shields, but this didn’t work. Here is my code example. What could be wrong?

#include <SPI.h>
#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = {192, 168, 1, 3};
byte myDns[] = {192, 168, 1, 1};
byte gateway[] = {192, 168, 1, 1};
byte subnet[] = {255, 255, 255, 0};

EthernetServer server = EthernetServer(23);

void setup() {
// initialize the ethernet device
  Ethernet.begin(mac, ip, myDns, gateway, subnet);
  // start listening for clients
  server.begin();

  Serial.begin(9600);
  Serial.println(Ethernet.localIP());
  Serial.end();
}

Add your own answers!

Related Questions

How I can send data information without work WiFi to LCD?

1  Asked on September 25, 2021 by abuwesam

       

How to wire L293D chip to a nodeMCU?

1  Asked on September 25, 2021

   

Fastest Communication from NodeMCU to Arduino Nano

1  Asked on September 25, 2021 by prikarsartam

       

Is this circuit risky for an Arduino Uno?

1  Asked on September 25, 2021 by j-francis

   

Write a Struct using ArduinoBLE library

1  Asked on September 25, 2021 by sicks

   

Wait between UART frames

2  Asked on September 25, 2021 by martin-g

 

Memory usage in AnalogBinLogger of SdFat library

1  Asked on September 25, 2021 by harini

     

Sim800 FTP Arduino

2  Asked on September 25, 2021

     

ESP-01 + UNO won’t detect gateway

2  Asked on September 25, 2021 by mrcabana

       

Error reading file

1  Asked on September 25, 2021 by yash

   

Reading 4-20ma signal on arduino

1  Asked on September 25, 2021 by sumit-mann

       

How to use tinygps.h library to measure distance? using NEO6mv2

1  Asked on September 25, 2021 by reiniel-cirujano-antonio

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir