Uno R3 + W5100 Shield + NRF24L01+



  • Hi All,

    Im really new to Arduino and this is my first complex project.

    Im doing this: https://www.openhardware.io/view/55/Home-Automation with this starting hardware:

    GW:

    Node:

    Controller:
    Ubuntu 16 with Home-Assistant

    Im following the wiring/code of the openhardware proyect, checking it with the mysensors wiring guides and updated coded. I cant put the 10uF. If I put it the radio fails to init and show a check wiring message.

    Comms through ethernet works well, the problem is the NRF24L01+, I cant make it work with the shield.

    This is the gw log:

    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;RF24:write register, reg=0, value=14
    0;255;3;0;9;RF24:write register, reg=3, value=3
    0;255;3;0;9;RF24:write register, reg=4, value=95
    0;255;3;0;9;RF24:write register, reg=5, value=76
    0;255;3;0;9;RF24:write register, reg=6, value=39
    0;255;3;0;9;RF24:read register, reg=6, value=39
    0;255;3;0;9;RF24:read register, reg=5, value=76
    0;255;3;0;9;RF24:write register, reg=16, value=115
    0;255;3;0;9;RF24:write register, reg=29, value=6
    0;255;3;0;9;RF24:write register, reg=2, value=2
    0;255;3;0;9;RF24:write register, reg=1, value=0
    0;255;3;0;9;RF24:write register, reg=28, value=3
    0;255;3;0;9;RF24:flushRX
    0;255;3;0;9;RF24:flushTX
    0;255;3;0;9;RF24:write register, reg=7, value=112
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;RF24:write register, reg=2, value=3
    0;255;3;0;9;RF24:write register, reg=1, value=1
    0;255;3;0;9;RF24:start listening
    0;255;3;0;9;RF24:write register, reg=0, value=15
    0;255;3;0;9;RF24:write register, reg=10, value=0
    0;255;3;0;9;TSM:READY
    IP: 192.168.100.8
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    IP: 192.168.100.8
    0;255;3;0;9;Attempting MQTT connection...
    0;255;3;0;9;MQTT connected
    0;255;3;0;9;RF24:read register, reg=6, value=39
    0;255;3;0;9;RF24:read register, reg=5, value=76
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;Sending message on topic: P/0/132/1/0/0
    0;255;3;0;9;Sending message on topic: P/0/131/1/0/1
    0;255;3;0;9;RF24:read register, reg=6, value=39
    0;255;3;0;9;RF24:read register, reg=5, value=76
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;Sending message on topic: P/0/132/1/0/0
    0;255;3;0;9;Sending message on topic: P/0/131/1/0/1```
    
    Node log:
    
    ```Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    RF24:write register, reg=0, value=14
    RF24:write register, reg=3, value=3
    RF24:write register, reg=4, value=95
    RF24:write register, reg=5, value=76
    RF24:write register, reg=6, value=39
    RF24:read register, reg=6, value=39
    RF24:read register, reg=5, value=76
    RF24:write register, reg=16, value=115
    RF24:write register, reg=29, value=6
    RF24:write register, reg=2, value=2
    RF24:write register, reg=1, value=0
    RF24:write register, reg=28, value=3
    RF24:flushRX
    RF24:flushTX
    RF24:write register, reg=7, value=112
    TSM:RADIO:OK
    RF24:write register, reg=2, value=3
    RF24:write register, reg=1, value=1
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=12
    TSP:ASSIGNID:OK (ID=12)
    TSM:FPAR
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=255
    RF24:write register, reg=10, value=255
    RF24:write register, reg=16, value=255
    RF24:send message to 255, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:MAX_RT
    RF24:flushTX
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=12
    TSP:MSG:SEND 12-12-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=255
    RF24:write register, reg=10, value=255
    RF24:write register, reg=16, value=255
    RF24:send message to 255, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:MAX_RT
    RF24:flushTX
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=12
    TSP:MSG:SEND 12-12-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=255
    RF24:write register, reg=10, value=255
    RF24:write register, reg=16, value=255
    RF24:send message to 255, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:MAX_RT
    RF24:flushTX
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=12
    TSP:MSG:SEND 12-12-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    RF24:stop listening
    RF24:write register, reg=0, value=14
    RF24:open writing pipe, recipient=255
    RF24:write register, reg=10, value=255
    RF24:write register, reg=16, value=255
    RF24:send message to 255, len=7
    RF24:flushTX
    RF24:write register, reg=7, value=48
    RF24:MAX_RT
    RF24:flushTX
    RF24:start listening
    RF24:write register, reg=0, value=15
    RF24:write register, reg=10, value=12
    TSP:MSG:SEND 12-12-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    RF24:write register, reg=0, value=12
    RF24:power down
    

    What can be the problem?

    FYI. I tried the almost all the possible solutions I found on google (enable spi_en, set to output and high ping 10, 10 and 4, etc...)

    Thanks in advance!

    EDIT: sketchs are now attached, forgot it, sorry.0_1482253986954_MyS-Cocina200.ino 0_1482253999734_MyS-Gateway-Test1.ino



  • By the way, more info:

    SO: Win 7
    IDE: 1.6.13
    Power: USB Cable to PC. I've tested the output and is 3.31v constant in the 3.3v of Uno R3 and in the radio input.

    Curiously, if instead of connecting the radio power directly to Uno I use a breadboard, with or without 10uF, the radio never power up (but I tested the radio power input also here and there is 3.31v)


  • Mod

    it looks like you are having the same problem on the sensor node as I do. Does yours gets to the setup or loop funtions? Because mine can't even get to setup and loops on

    TSP:MSG:SEND 12-12-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    


  • I dont really know if the problem is the sensor node (Nano) or in the GW (UNO).

    The node seems to try to connect to the GW, but the GW recieves nothing.

    I will try this week with external power supplies instead the internal ones for the radios and will tell you something.


  • Mod

    I bought 2 of these -> http://www.gearbest.com/transmitters-receivers-module/pp_453011.html
    But so far I haven't been able to establish a communication between the 2. Also I have some a mixed situation with a UNO and a Mega that for what I have read requires different pins to be connected (hopefully I should have understood that :D )


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.