Arduino UNO ethernet gateway problem
Well... it depends on the source of the 3.3v, but looking at your picture you are taking power directly from arduino and that is for sure not able to supply enough power for a PA radio. Try also to set nrf24 power to MIN and start from there. If I were you I would use an adapter with voltage regulator from 5v to 3.3v that would make like easier. If you are going to add capacitor, put it as close as possible to radio module (you could solder on the other side of the pins.
@Misna You have un-commented the line
#define MY_W5100_SPI_EN 4
That will stop soft spi from being used. You should comment it back out. //#define MY_W5100_SPI_EN 4
see this post for some more info and wiring hookup
Misna last edited by Misna
I commented the line #define MY_W5100_SPI_EN 4 and wired the module as described in the post linked.
I also added this line: #define MY_RF24_PA_LEVEL RF24_PA_MIN to lower the power need.
Now this is what I'm getting with DHCP configuration:
0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;MCO:REG:NOT NEEDED DHCP FAILURE...0;255;3;0;9;!MCO:BGN:TSP FAIL
And with static IP:
IP: 192.168.10.25 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
Btw my versions used:
- macOS 10.12.3
- Arduino IDE 1.8.2
- Arduino AVR Boards 1.6.18
- MySensors library 2.1.1
Still the board is somehow looping and does not appear to the network.
Remember the capacitor.
It's strange the ethernet is not getting the IP from DHCP
Yes it is and even the link lights wont light up on my switch. I'll try to add the capasitor tomorrow. I'll also try this with a regular radio module (without the antenna)
I hope you don't have a faulty shield as I had that cost me many hours of debugging for nothing
@Misna Don't know if this is still a problem but some time back there was an issue with certain versions of the Arduino IDE causing problems with the w5100 gateway.
You may need to roll back the IDE or board definitions and see if that fixes the problem. Have a look Here for a bit more info.
ArduiSens last edited by
You will solve the problem when compiling your arduino sketch with IDE 1.6.8.
I have compiled my UNO with ethernet shield at top 2 minutes ago and now I have full contact with Domotics (on Synology NAS).
go for it!
Investigating this issue it seems that my chinese ethernet shield has the wrong kind of terminating resistors on the ethernet line as described here.
So first I'll try to apply the common fix for that problem (change the resistors) and then I'll get back to you.
Btw thanks for the awesome support!
Do you have a link for that fix? I may try to fix the faulty one that I have
Sure. Here is the link: https://forum.arduino.cc/index.php?topic=351477.15
There are many options for the fix but the easiest is defined by klggi on page2 (just solder 2 100ohm resistors on the backside of the ethernet connector).
I'll try to apply this fix tomorrow evening, I'll get back to you on how it went.
On second thought maybe I'll skip the fixing, too much hassle to handle with SMD without proper tools
Misna last edited by Misna
@gohan check the post by klggi. No need to touch the SMD's, just solder 2 regular resistors to the backside of the connector.
Happy to report that soldering the two resistors to the back fixed the problem!
So no need to downgrade Arduino IDE etc..
in fact i have that 511 resistor in the back of connector. What resistors did you use?
I used just regular 100Ohm resistors like this
@Misna Added the 2 100Ohms resistors and it seems it is working. Maybe I could order some more shields and complain again they are faulty and have them refunded and do this quick repair
At least it would be a little revenge on the many hours I lost with this faulty shield