I've just assembled my trio of modules, an emonTx, emonGLCD and an emonBase. The two first work as a charm, but the emonBase has some problems with ethernet.
If I run the "NanodeRF_Power_RTCrelay_GLCDtemp" sketch on it, I get the following output:
Your correct in thinking that the ATmega and the RFM12B seem to be working fine (data is being received from the emonTx). The problem is with the ENC28J60, it doesn't see to be able to obtain an IP address or connect via static IP. I don't think the fault is down to the voltage regulators, since the ENC28J60 is responding which means it should have sufficient power.
Apologies for the kit missing a crystal. We're happy to send you one out (I've sent you an email). What crystal did you use? Is is 25Mhz?
The current crystal is 25.000Mhz; has the markings "TQ5300", "TQG9105" and is sized 3x10x12mm. I couldn't find a datasheet on it, and it was the only one my local store had. I'll try to get an oscilloscope so that I can find out what frequency it outputs with these caps on the board. I'll know for sure if it's the problem when I get the crystal you're about to send.
I did some searching for bad solder joints and splattered solder, fixed what little I could find but the problem still presists. At least the EtherCard library seems to think the chip is working: neither ether.initialize() or ether.doBIST() returns an error.
As far as the Link-LED when using DHCP, It turns on when connected, but then turns off two times for a couple of seconds with the connector in place. After it lights up the third time the serial output reports that the DHCP has failed. This kind of feels like the ENC28J60 would be resetting, but I don't know how to debug it any further.
The missing crystal is packaged up and will be shipped to you first thing tomorrow.
All is well!
The replacement crystal you sent fixed the problem for me. The problem then seems to have been that the crystal I sourced had so much differing specs that the bundled caps were not a match for it. This whole thing could have been avoided if I had got a datasheet or had a meter to find out the specs for my crystal.
Anyhow, thank you so much for the support and the working crystal! Time to get started with my projects. :)
Open-source tools for energy monitoring and analysis. This project uses the GNU General Public Licence