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 Cicero
#52540
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.
User avatar
By JZesp
#52580 Thank you sir!

The VCC to CS resistance was sadly 10K ohms :) just my luck.

I've messed with Eclipse before with Java/Android but making this NodeMCU work with the ENC28J60 looks to be a serious pain starting with the wiring and ending with plain C/C++ code outside of using the Arduino IDE & libraries that I've gotten so used to. I'm a computer nerd of 24 years now... I hate giving up on stuff that's outside of the comfort zone and this is right there on the fence :)
User avatar
By markingle
#52607 Cicero this is awesome! I have been working to get something like this going for a long time. You have done ALOT of work on this! I am going to order the ENC and get a working version going to help my understanding of the code (I struggle with C but I can get there). I don't mind being a tester as well. My requirements are similar to cableguy but I am going to be working on a simple telnet interface to start/stop MQTT client.....or at least something simple and build from there. I will let you know when I have everything operational.
User avatar
By Cicero
#52635
JZesp wrote:Thank you sir!

The VCC to CS resistance was sadly 10K ohms :) just my luck.

I've messed with Eclipse before with Java/Android but making this NodeMCU work with the ENC28J60 looks to be a serious pain starting with the wiring and ending with plain C/C++ code outside of using the Arduino IDE & libraries that I've gotten so used to. I'm a computer nerd of 24 years now... I hate giving up on stuff that's outside of the comfort zone and this is right there on the fence :)

Haha, come on. Give it a go! Cherts has done a pretty good job there making it as simple as possible. Merely need to change the COM port in the makefile and click "flash". Simple ;)