Cant even get my first node working...



  • Controller is OpenHABian on Rpi3
    Gateway is Arduino Mega w/ W5100 Shield & NRF24l01
    Node is Arduino Nano w/ NRF24l01

    As far as I am aware, the gateway is working fine, running the Gateway5100mqtt example I can send and receive messages through MQTT, tested inside Pi terminal.

    BUT, my node just wont work, I've tried two different NRF modules, both work on the gateway, I've tested all the pins on the nano with an led and they are working.

    Running the Temp/Humidity example on the nano this is the error I am getting:
    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
    3 TSM:INIT
    4 TSF:WUR:MS=0
    11 !TSM:INIT:TSP FAIL
    12 TSM:FAIL:CNT=1
    14 TSM:FAIL:PDT
    10016 TSM:FAIL:RE-INIT
    10018 TSM:INIT
    10024 !TSM:INIT:TSP FAIL

    I have also tried clearing EEPROM with that sketch.

    Please any help at all, this is driving me insane!

    update: have also tried in an arduino uno now with the same error



  • No one knows how to fix this? I'm using known working components, I've followed the getting started guide, beginning to feel like mysensors is alot more trouble than its worth...


  • Hardware Contributor

    @AndyRoo - Hi!
    It seems like the radio cant be initialised.
    You should re-check all your wirings and power to the radio.



  • @sundberg84 Hi,

    Thanks for your reply, unless the wiring on the website is wrong, then everything is correct, I've tripled checked.

    Could you confirm the wiring for a nano and uno are the same and if what's on the website matches what you are using?


  • Mod

    @AndyRoo yes. The wiring has been used to build several hundreds of nodes.


  • Mod

    Try swapping radios between the gateway and node just to make sure radio is not fried. It could be a wiring problem like said before or a power problem.


  • Mod

    @gohan that has already been tested, see the initial post.



  • Any solution to this? I have the same problem atm. Tried 3 or 4 different nrf24l01+ but with the same failures. I'm suspecting it's related to my sketches or something. Can't wire that many radios wrong, and they are from different vendors. My gateway is an Uno running with an W5100 and latest MySensors dev. Seems to be connecting just fine to both my Vera and when I tried it in Domoticz. The GW debug shows no fails.


  • Mod

    try with just some example sketches to see if the radios are correctly communicating. Did you put a capacitor on the radio module?



  • @gohan I made a serial gateway with an Nano+Nrf24L01+ and hooked it up to my computer. Just to bypass the possibility that my regular gateway have radio problems. But even with that simple setup I get "11 !TSM:INIT:TSP FAIL" from the Nano. I have tried with 4.7, 47 and 100uF on the radio.


  • Mod

    I am kind of suspecting the radio modules have issues.



  • @gohan ok. Im gonna try with different nrfs tonight. I have 13 from 3 different vendors. Reckon at least a couple of them should work..
    I have made 3 sensors with Sundberg84 amazing PCB and they have the same issues, which makes me a bit sceptical.



  • Im banging my head against the wall here. Uninstalled IDE and reinstalled version 1.6.4 and added Mysensors lib from the menus. Uploaded the GatewaySerial to a new Uno with attached radio+cap. No luck.

    Uninstalled IDE and installed latest version which has Mysensors preinstalled. Same sketch. No luck. Gonna try with yet another radio. But I cant see how the 3 i've already tried could be broken.


  • Mod

    can you post a picture of those radios?



  • @gohan Sure. I have tried 9 or 10 out of 13 now i think. With different libs and sketches that google found for me.



  • 2_1500328749598_IMG_20170717_235131.jpg 1_1500328749598_IMG_20170717_235309.jpg 0_1500328749598_IMG_20170717_235509.jpg

    The first and second picture is from a seller called axeprice on ebay. Two different orders with a couple of weeks apart.
    The third picture is from a swedish shop called m.nu, great shop I might add.


  • Mod

    How much were they? They look quite on the cheap



  • @gohan http://www.ebay.com/itm/400594940658?rmvSB=true
    Its the radios linked in mysensors store...

    https://www.m.nu/breakout-boards/nrf24l01
    "swedish" one.


  • Hardware Contributor

    @royson84 Where in Sweden are you? Maybe someone near can help you.


  • Hardware Contributor

    @royson84 - do yo have a multimeter and can comfirm there are power to the radio? If you are using the PCB you need to have atleast one jumper connected (as we spoke about - so I suspect that is ok). Could you post a picture of the complete setup?

    I live pretty near you (1.5h) in worst case scenario 😉


  • Mod

    @royson84 10 modules for 10$ are definitely fake clones I'd say but at least they should power up



  • @sundberg84 I do have a multimeter, but haven't used it in ages so I'm not sure how to honestly. =D

    On the PCB I made all the connections by soldering but I have put that aside for now. Figure I must find out what I'm doing wrong with the radios first. Now when I'm trying to make a new serial gateway I've done so both with some soldering and some duponts.

    Today, as a bit of a last restore, I'm gonna remove my radio from the ethernet gateway, which doesn't give me any failures in debug, and try the same setup with that. If that doesn't work, well..hehe.. Stuff is gonna break 😄

    I really appreciate all your help and suggestions guys!!


  • Hardware Contributor

    @royson84 - take out your mulitimeter and set it to DC (see here for symbol)

    Put the black lead to gnd on the radio and the red on positive:
    0_1500367572661_v1.JPG

    Also make sure the capacitors is aligned right!

    If possible post a photo of the hole pcb 🙂



  • Ok, so it seems that I'm suffering from the ancient sickness of dumb-ass...

    While connecting the radio from the gw, which has a little table on the back explaining all the pins, I realised that when connecting my other radios I forgot the mirror effect and therefore switched some of the connections 😢

    Now, when connected as they should, they work. Haha.

    Also @sundberg84 i measured the voltage and on the PCB I only get about 0.03V on the radio but at the pro mini its 3.3 or thereabouts. Gonna have a look at the connections tonight.

    About debugging the PCB. Do I have to remove the battery jumper when connecting the ftdi? Or do they not interfere if the battery's are off?


  • Hardware Contributor

    @royson84 - You can only have one power source so if you are using a battery make sure to disconnect one of them (normally i do not connect the voltage from the ftdi to make it as "real" as possible.) You might want to connect the ground to the ftdi though because otherwise you might get hard to read the serial output.

    You should have the jumper connected at all times but if you power from the ftdi you change it to REG. Bat will feed the radio from the battery which is another circuit than the pro mini.



  • 0_1500410083134_IMG_20170718_222004.jpg
    0_1500410099031_IMG_20170718_222033.jpg

    Heres pictures of one of the PCBs @sundberg84. Not sure why the power isnt reaching the radio in its full capacity. Have i not been careful enough with my soldering?


  • Hardware Contributor

    @royson84 the bat jumper isn't shorted on these pictures it looks like. You need to make a connection between the pins.

    Also there are two solder blobs that might cause grounding. (Vcc on MysX connector and tx on the arduino both on the back)


  • Hardware Contributor

    @royson84 you can use the multimeter and connect/hold black to ground and measure your way through the circuit to see where the power cuts. For the radio you can go Vin, jumper, radio.


Log in to reply
 

Suggested Topics

224
Online

10.1k
Users

10.6k
Topics

109.0k
Posts