JZesp wrote:Hi @Cicero, I believe that your code will get me to my goal the quickest so hoping you'll have some time to answer my few questions.
[*] I am using a NodeMCU 1.0 board so the ESP8266-12E --- https://alexbloggt.com/wp-content/uploa ... ut_700.png
[*] I also have a mini version of ENC28J60 --- http://www.dnatechindia.com/image/cache ... 00x500.jpg
[*] While I can likely wire it up per your ESP8266 (not 12E) diagram on GitHub, my question is whether the resistors are still needed considering that ESP8266 is on the NodeMCU board which I'd hope rectified the resistance aspect.
[*] I've been using Arduino IDE with the NodeMCU (using ESP8266WiFi library) along with an Arduino Nano using the ENC28J60 shield (using UIPEthernet library) --- both are working great. However, I'm in need of putting the relay into my gate with Ethernet over Powerline adapter due to lack of wifi in the gate box and the great reliability of Ethernet. So your code/library for my ESP8266-12E (since it has LOTS of memory unlike the Arduino Nano) and mini ENC28J60 that I have would be a perfect solution. So this question: your code does not look to be INO/Arduino code or library. Is there a beginner guide of how to get plain C code (which I'm guessing you're using) onto the NodeMCU board?
FYI, here are the few projects for home automation using SmartThings where I use the NodeMCU and the first project is where I'd like to use the RJ45.
https://community.smartthings.com/t/ras ... gger/43335
https://community.smartthings.com/t/esp ... mote/50161
Thank you for your time!!!
JZ
Hey JZ,
Correct, the only resistor you might need to worry about is the one on GPIO15, the chip select line to the ENC. The problem with the ENC boards is that they often have pullups on the CS line, of around 10k. The Node board looks like it has a pulldown of 12k https://raw.githubusercontent.com/nodem ... IT_SCH.png .
Now because the ESP needs a low on GPIO15 to start up, it will never get low enough - only around 1/2 Vcc!
You should check what resistor is on your ENC modules CS line (just use a multimeter across the CS pin to VCC), if its 100k then you'll most likely be ok, but if its 10k like mine, then you may need to change either the Node board or the ENC board.
The easiest way to compile and load would be to load Cherts windows environment -http://www.esp8266.com/viewtopic.php?t=820
Copy in the project from github into the examples folder - C:\Espressif\examples\ESP8266
Then add that project in eclipse File -> Import -> General -> Existing Project into Workspace.
Finally there are quick compile links in the right hand side of the IDE to compile and load.