Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Teensy 3.5 + wiz850IO hardware not detected

  1. #1
    Junior Member
    Join Date
    Nov 2020
    Posts
    2

    Teensy 3.5 + wiz850IO hardware not detected

    Hi all!

    First, my apologies for such a noob question, I am a beginner here, so bare with me. Y'alls help is greatly appreciated.

    I have a Teensy 3.5 with a Wiz850io module, and I am trying to run the Arduino example file 'DhcpAddressPrinter' to ensure I've hooked up everything properly. The Teensy 3.5 + wiz850io are hooked into a breadboard, and I have a CAT6 ethernet cable running from the wiz to my desktop's ethernet port.

    Unfortunately, I keep receiving the message in my serial monitor stating that an Ethernet shield was not found..

    I have been trying to figure out what is the cause of this issue, but I really don't know what to do at this point.

    Here are my connections

    3MOSI - 11MOSI0
    4SCLK - 13SCK0
    5SCNn - 10CS0
    6MISO - 12MISO0

    Code:
    #include <SPI.h>
    #include <Ethernet.h>
    
    //I just threw a random MAC address here
    byte mac[] = {
      0x09, 0xCA, 0x9C, 0xB9, 0xC3, 0xDD
    };
    
    void setup() {
      Ethernet.init(10);
      // You can use Ethernet.init(pin) to configure the CS pin
      //Ethernet.init(10);  // Most Arduino shields
      //Ethernet.init(5);   // MKR ETH shield
      //Ethernet.init(0);   // Teensy 2.0
      //Ethernet.init(20);  // Teensy++ 2.0
      //Ethernet.init(15);  // ESP8266 with Adafruit Featherwing Ethernet
      //Ethernet.init(33);  // ESP32 with Adafruit Featherwing Ethernet
    
      // Open serial communications and wait for port to open:
      Serial.begin(9600);
      while (!Serial) {
        ; // wait for serial port to connect. Needed for native USB port only
      }
    
      // start the Ethernet connection:
      Serial.println("Initialize Ethernet with DHCP:");
      if (Ethernet.begin(mac) == 0) {
        Serial.println("Failed to configure Ethernet using DHCP");
        if (Ethernet.hardwareStatus() == EthernetNoHardware) {
          Serial.println("Ethernet shield was not found.  Sorry, can't run without hardware. :(");
        } else if (Ethernet.linkStatus() == LinkOFF) {
          Serial.println("Ethernet cable is not connected.");
        }
        // no point in carrying on, so do nothing forevermore:
        while (true) {
          delay(1);
        }
      }
      // print your local IP address:
      Serial.print("My IP address: ");
      Serial.println(Ethernet.localIP());
    }
    
    void loop() {
      switch (Ethernet.maintain()) {
        case 1:
          //renewed fail
          Serial.println("Error: renewed fail");
          break;
    
        case 2:
          //renewed success
          Serial.println("Renewed success");
          //print your local IP address:
          Serial.print("My IP address: ");
          Serial.println(Ethernet.localIP());
          break;
    
        case 3:
          //rebind fail
          Serial.println("Error: rebind fail");
          break;
    
        case 4:
          //rebind success
          Serial.println("Rebind success");
          //print your local IP address:
          Serial.print("My IP address: ");
          Serial.println(Ethernet.localIP());
          break;
    
        default:
          //nothing happened
          break;
      }
    }
    I've also attached a photo of my wiring. I feel like I'm missing something super obvious here.. any help would be greatly appreciated, thank y'all so much.

    PlClick image for larger version. 

Name:	IMG_7041.jpg 
Views:	17 
Size:	168.0 KB 
ID:	22590

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,485
    Difficult to see from the angle of the camera, but looks like the 3 wires might be on pins 9,10,11 rather than 10,11,12.

  3. #3
    Junior Member
    Join Date
    Nov 2020
    Posts
    2
    Wow, I really did live up to my introduction as a noob. Thanks for such a speedy response, that was indeed the issue.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,485
    Glad you got it working!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •