I've been playing with Nanos (and Micros, and Unos and ESP32s and even a Mega originally) for a while, but I only do simplistic playing around projects. I'm trying to get 'serious' about a project that will use Ethernet. I confess here at the beginning of this post - I am using a lot of 'clone' parts, and accept that they can be subject to trouble. Now... on to the problem.
I have a Hiletgo clone ENC28J60 clone board (I'll call refer to it as a 'shield' - but it has a 10-pin header on the top side and does not 'plug into' any Arduino format board) and a Nano clone (USB-C connector) that I'm trying to interface Using SPI. I am using test code from the Ethercard.h library - specifically the 'pings.ino' sketch. The code compiles and downloads to the Nano, but the instant I plug in the power to the Ethernet shield, 'D1' (LED) illuminates on the shield and I lose my serial connection. My pin wiring is:
Arduino Ethernet
D10 CS
D11 SI
D12 SO
D13 SCK
3.3V VCC (this is the pin I have been plugging/unplugging)
GND GND
My first thought was that perhaps the USB port on my laptop could not provide enough power to power both the Nano and the Ethernet card, so I 'inserted' a separate, powered USB hub between the laptop USB and the Arduino... that did not change anything. I added a line from the Arduino RST pin to the Ethernet RESET pin but that didn't change anything either. Having the RJ45 plugged into the shield or not also did not change anything.
I have 3 unused pins on the Ethernet card header
WOL (Wake on Lan?)
INT
CLKOUT
Anyone have any suggestions of where to start looking? I uploading the code and then powering the circuit(s) from a USB power adapter - but I need the serial port to know if the code is working.
Thanks in advance!
Arden