armonnaeini
New member
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
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.
Pl
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.
Pl