Help is required to connect the LAN8720AI-CP-TR to the ESP32 . MY SCHEME
I built a scheme where LAN8720 is required, I took the Olimex ESP32-POE solution as a basis and read the information in the LAN8720 Datasheet . The final scheme is shown here. I ordered the board on jlcpcb, then I flashed it with ESPhome, but the Ethernet does not work ! At that time WI-FI works very well. I think that I have an error in the scheme, but I do not know where. Please, help me find the mistake in the scheme.
Using 'COM4' as serial port.
Showing logs:
[11:46:56][W][ethernet:043]: Connecting via ethernet failed! Re-connecting...
[11:46:57][D][esp-idf:000]: E (16098) emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0xffff
[11:46:57]
[11:46:58][D][esp-idf:000]: E (17099) emac: Timed out waiting for PHY register 0x3 to have value 0xc0f0(mask 0xfff0). Current value 0xffff
[11:46:58]
[11:46:58][D][esp-idf:000]: E (17101) emac: Initialise PHY device Timeout
[11:46:58]
[11:46:58][E][ethernet:127]: ETH enable error: -1
[11:46:58][E][component:092]: Component was marked as failed.
[11:47:35]
Your ESPHome code uses clk_mode: GPIO17_OUT, but the wiring diagram wants clk_mode: GPIO0_IN.
I’ve had issues using GPIO0_IN so I switched to GPIO17_OUT by not jumping the NC pin to the oscillator and connecting IO17 to nINT/REFLCK instead of IO0. I also removed the pullup and pulldown resistors, but these might(?) still be needed.
Hello everyone,
After several attempts and reading the diagrams of the ESP32-POE and Kincony A8 models using this LAN8720 chip I understood that they did not use an external oscillator like on our “waveshare” card. So I tried to modify this edge more simply by removing on resistor 33ohm and mouve an other. It works perfectly with GPIO0 or 17 connected on nINT/REFCLK pin !
Simply solder the Enable pad of the 50MHz oscillator to the NC Pin or Ground.
Then ground NC pin, this will effectively disable the 50MHz oscillator on the LAN8720 board. Alternatively you could de-solder the oscillator all together.
I then used GPIO17_OUT and no pull up or pull down resisters.
i hv this one tooo, i am trying to use it with di-mini, esp32 mini and esp2-wroom-32 but i dont know everytime i got ping break issue. After 10-20 pings 1 or 2 ping
1- Change the node’s IP . in dhcp server may occure ip conflict.
2- Did you add the node to Home Assistant through API? (It should connect)
3- Check your wireing and isolate it more as you can.
4- Check the resistor between GPIO17 of ESP and XTAL1/CLKIN of Lan8720, it should be 33ohm.
5- change your network cable with a shorter one.
Hi all,
I have just order one LAN8720 Ethernet Board and trying to understand how I have to connect it to my Sparkfun ESP32 Thing board.
On the ESP32 I have GPIO12, GPIO27, GPIO26, GPIO4, GPIO17, GPIO16, GPIO05 and GPIO02 free. What I have read I shouldn’t use GPIO05 and GPIO02 on this board because they are strapping pins.
In esphome only 3 pins get defined? where do I define all the other pins? (Tx, Rx…)