A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By cassyarduino
#59299
JZesp wrote:
Thanks for the feedback! The cap is easy between GND & 3V3. Power consumption of 800mA should be fine if I use a higher quality cable measurable with Ampere app on my Android. Using gpio15 for SS is simple enough until the resistor and the FETS came into play, not sure how to wire that up so I'll take a look at your updated wiring diagrams, thanks for doing that!!! I also bought another ENC28J60 looking different than the one I already have. Using SPI or I2C has been a bit of a nightmare with Arduino UNO & Nano, NodeMCU and D1 Mini. The only success I had was Arduino Nano with an ENC28J60 shield which was made to fit that Nano. That works pretty well with the original UIP library, haven't tried this library yet. Any other manual wiring for SPI/I2C has been terrible and unreliable, including proximity sensor NFC/RFID. Works once in 50 times and never again :) I see posts on the web that clock speed is a problem, but not sure.

All the best!


I uploaded wiring for nodemcu.
You can download from:https://github.com/UIPEthernet/UIPEthernet/blob/master/hardware/NodeMCU_enc28j60_wiring.PNG
Mini version of ENC28j60 have same pinout like big.
If You use my UIPEthernet actual version (https://github.com/UIPEthernet/UIPEther ... master.zip),
and compile TcpClient.ino from examples and upload to the ESP8266.
You can give program information on serial interface (9600baud):

If the ENC28j60 does't properly connected You give following:
Enc28J60Network::phyWrite ERROR:TIMEOUT !!!
ENC28J60::init INFO: Chip erevid=0 initialization completed.
UIPEthernetClass::tick() ERROR:EREVID=0 -> Not found ENC28j60 device !!! Function ended !!!

If the communication is good between MCU and ENc28j60,
You give this:
ENC28J60::init INFO: Chip erevid=6 initialization completed.

Best Regards
User avatar
By JZesp
#59301
cassyarduino wrote:I uploaded wiring for nodemcu.
You can download from:https://github.com/UIPEthernet/UIPEthernet/blob/master/hardware/NodeMCU_enc28j60_wiring.PNG
Mini version of ENC28j60 have same pinout like big.
If You use my UIPEthernet actual version (https://github.com/UIPEthernet/UIPEther ... master.zip),
and compile TcpClient.ino from examples and upload to the ESP8266.
You can give program information on serial interface (9600baud):

If the ENC28j60 does't properly connected You give following:
Enc28J60Network::phyWrite ERROR:TIMEOUT !!!
ENC28J60::init INFO: Chip erevid=0 initialization completed.
UIPEthernetClass::tick() ERROR:EREVID=0 -> Not found ENC28j60 device !!! Function ended !!!

If the communication is good between MCU and ENc28j60,
You give this:
ENC28J60::init INFO: Chip erevid=6 initialization completed.

Best Regards


Awesome!

The key, per your wiring, seems to be in the 2 mosfets, the 1kOhm resistor and the cap between + and -

I've been looking for SPI/I2C info all over the web and it's been very challenging as the info is not conclusive or clear, particularly with the NodeMCU. Given the few extra parts in your diagram, I can see where all of my attempts would have failed.

Thanks again for putting this together. I ordered the mosfets and now waiting for China. I'll provide feedback once the parts arrive and I've had a chance to try.
User avatar
By cassyarduino
#59306
JZesp wrote:
Awesome!

The key, per your wiring, seems to be in the 2 mosfets, the 1kOhm resistor and the cap between + and -

I've been looking for SPI/I2C info all over the web and it's been very challenging as the info is not conclusive or clear, particularly with the NodeMCU. Given the few extra parts in your diagram, I can see where all of my attempts would have failed.

Thanks again for putting this together. I ordered the mosfets and now waiting for China. I'll provide feedback once the parts arrive and I've had a chance to try.


Hi!

On ENC28j60 module is 10K pull up resistor ON SS pin.
I use with ESP-07 this:"Adapter Plate For Serial Port ESP8266 Wireless WIFI Module ESP-07 12 12E GH"
http://www.ebay.com/itm/1-x-Adapter-Pla ... Sws4JW7NiB
This adapter have 10K pull down resistor on gpio15.
This cause the error: 10K up, 10K down.
https://github.com/Cicero-MF/esp_enc28j ... wiring.png
In circuit of Cicero-MF the pull down resistor is 1K. This working without line driver (2 FETS and resistor).

Can You measure resistance between gpio15(D8) and GND on Node-MCU?

If You can't wait until mosfets arrive:
1.
You can use "74HC07 Hex Buffers and Drivers With Open-Collector High-Voltage Outputs" between "Node-MCU D8 pin" and "ENC28j60 SS pin" too (instead of 2fets and 1k resistor circuit). If You have.

2.
If You can measure another Node-MCU pins resistance with GND or VCC,
and you find any pin float or pulled up to VCC.
You can add "#define ENC28J60_CONTROL_CS pinnumber" at the begining "utility/Enc28J60Network.h"

Best Regards