Project

General

Profile

EtherCard, Arduino Nano

Added by puciak 10 months ago

Hello,
I bought Arduino Nano with HR911105A 15/10 board (ENC28J60), connected it accordingly to this schematic

loaded BackSoon script and it is not working - it stops on [backSoon]. I've checked connections multiple times with multimeter. What is interesting, when I touch D12 pin it continues showing "Failed to access ethernet controller". I've made a script which was doing this:

if (ether.begin(sizeof Ethernet::buffer, mymac) == 0) 

in a loop and loop was working only when I was touching this pin or I was touching the cable (isolated!). I thought that maybe I got faulty board, so I bought second Arduino Nano but the effect was the same. Then I bought other HR911105A board, now 17/20 (does it make difference?) and results are the same. What may cause such strange effects? I thought it would be simple.

Thank you


Replies (8)

RE: EtherCard, Arduino Nano - Added by jcw 10 months ago

Just a hunch: the Arduino Nano operates at 5V logic levels, but the ENC28J60 can only handle up to 3.3V, if I remember correctly.

RE: EtherCard, Arduino Nano - Added by puciak 10 months ago

For the first board I used 3.3V as on a schematic. On next board there is 5V label instead of VCC so I connected to Arduino's 5V pin. Results are the same on each board.

RE: EtherCard, Arduino Nano - Added by JohnO 10 months ago

It feels like the responses are not being received from the ethernet card. Since you have replaced the Nano one wonders about the ethernet card.
Do you see any LED activity on the ethernet card?
The picture you have posted doesn't make it crystal clear which connections are connected to which Nano pins as the breadboard seems out of alignment by half a pin. Perhaps a photograph will reveal more.

RE: EtherCard, Arduino Nano - Added by puciak 10 months ago

On EthernetCard LED light lights all the time, no blinking. I'm sure it hasn't connected with Nano.
Photograph won't be more clear in my case, but I connected it like this:
VCC - 3.3V (on second board I used 5V - see my previous post)
GND - GND
SCK - Pin 13
SO - Pin 12
SI - Pin 11 (on second board there is no SI label, so I chose ST instead - remaining ones were ST, LNT, CLK, RST, Q3, GND)
CS - Pin 8

RE: EtherCard, Arduino Nano - Added by jcw 10 months ago

VCC - 3.3V (on second board I used 5V - see my previous post)

That's power. But the output pins on the Arduino also produce 5V for "1" outputs, which is too high for the ENC28J60.
I'm not sure this is the problem here, but you're putting an over-voltage on the Ethernet chip, which can damage it.

https://hackaday.com/2016/12/05/taking-it-to-another-level-making-3-3v-and-5v-logic-communicate-with-level-shifters/

RE: EtherCard, Arduino Nano - Added by puciak 10 months ago

I've seen succesful (working) projects on the Internet with connections as listed, so I'm not sure it is wrong in that case.

RE: EtherCard, Arduino Nano - Added by JohnO 10 months ago

While looking for something else I found this device, does it look anything like your unit? A few resistors on the board, I wonder if they are doing the 5v to 3.3 level shifting for us.

DSCF2233.JPG (904 KB) DSCF2233.JPG Ethernet card
2719

RE: EtherCard, Arduino Nano - Added by puciak 10 months ago

Yes, this is something like this.

    (1-8/8)