Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. [SOLVED] Not working: Distance Sensor connected to Arduino Uno with NRF24L01+ and adapter

[SOLVED] Not working: Distance Sensor connected to Arduino Uno with NRF24L01+ and adapter

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 3 Posters 2.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ArthurA Offline
    ArthurA Offline
    Arthur
    wrote on last edited by Yveaux
    #1

    I am trying to get my 1st sensor board working, but stil no luck.

    What I have done:

    1. installed the latest Arduino software for Windows: v1.8.3
    2. Installed mysensor library (library manager Arduino Software: v2.1.1
    3. installed https://github.com/mysensors/MySensorsArduinoExamples: copied libraries and examples to arduino folder (overwrite the original files if needed)
    4. Used hardware:
    • Arduino Uno

    • NRF24L01+ :
      https://www.tinytronics.nl/shop/nl/communicatie/rf(id)-wifi-bt/nrf24l01-wireless-module-zwart?search=nrf24l01

    • NRF24L01+ adapter:
      https://www.tinytronics.nl/shop/nl/communicatie/nrf24l01-wireless-module-adapter-board

    Hardware connections:

    => First experiment without adapter board:
    http://schullebernd.de/wp-content/uploads/2015/10/Schaltbild_nRF24L01_ArduinUNO_mit_Elko.png
    => Second experiment with adapter board as above but without condensator and board adapterboard powered with 5volt.

    Ofcourse ultrasoon sensor connected too according https://www.mysensors.org/build/distance,
    one exception: #define TRIGGER_PIN 6 changed in 3 (because pin 6 is already used by NRF24L01)

    After uploading the Distance Sensor sketch I opened the debug window which show this:

    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
    10028 TSM:FAIL:CNT=2
    10029 TSM:FAIL:PDT

    I have check everything, same results in both hardware setup (with or without NRF24L01 adapter).
    Power is ok.

    I really don't know what's wrong.

    By the way: I get a lot of warnings: "Invalid version found: 1.04": this after I have uploaded the https://github.com/mysensors/MySensorsArduinoExamples files..

    I really hope somebody can help.

    Regards,

    ;-) Arthur

    YveauxY dbemowskD 2 Replies Last reply
    0
    • ArthurA Arthur

      I am trying to get my 1st sensor board working, but stil no luck.

      What I have done:

      1. installed the latest Arduino software for Windows: v1.8.3
      2. Installed mysensor library (library manager Arduino Software: v2.1.1
      3. installed https://github.com/mysensors/MySensorsArduinoExamples: copied libraries and examples to arduino folder (overwrite the original files if needed)
      4. Used hardware:
      • Arduino Uno

      • NRF24L01+ :
        https://www.tinytronics.nl/shop/nl/communicatie/rf(id)-wifi-bt/nrf24l01-wireless-module-zwart?search=nrf24l01

      • NRF24L01+ adapter:
        https://www.tinytronics.nl/shop/nl/communicatie/nrf24l01-wireless-module-adapter-board

      Hardware connections:

      => First experiment without adapter board:
      http://schullebernd.de/wp-content/uploads/2015/10/Schaltbild_nRF24L01_ArduinUNO_mit_Elko.png
      => Second experiment with adapter board as above but without condensator and board adapterboard powered with 5volt.

      Ofcourse ultrasoon sensor connected too according https://www.mysensors.org/build/distance,
      one exception: #define TRIGGER_PIN 6 changed in 3 (because pin 6 is already used by NRF24L01)

      After uploading the Distance Sensor sketch I opened the debug window which show this:

      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
      10028 TSM:FAIL:CNT=2
      10029 TSM:FAIL:PDT

      I have check everything, same results in both hardware setup (with or without NRF24L01 adapter).
      Power is ok.

      I really don't know what's wrong.

      By the way: I get a lot of warnings: "Invalid version found: 1.04": this after I have uploaded the https://github.com/mysensors/MySensorsArduinoExamples files..

      I really hope somebody can help.

      Regards,

      ;-) Arthur

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @Arthur welcome to the mySensors forum!

      @arthur said in Not working: Distance Sensor connected to Arduino Uno with NRF24L01+ and adapter:

      overwrite the original files if needed

      Make sure no files are overwritten in the libraries/mysensors folder.

      I think you're just using the wrong connections.
      Have a look here how to connect the radio: https://www.mysensors.org/build/connect_radio
      The pinout for Uno is the same as for Promini.

      Good luck !

      http://yveaux.blogspot.nl

      1 Reply Last reply
      0
      • ArthurA Arthur

        I am trying to get my 1st sensor board working, but stil no luck.

        What I have done:

        1. installed the latest Arduino software for Windows: v1.8.3
        2. Installed mysensor library (library manager Arduino Software: v2.1.1
        3. installed https://github.com/mysensors/MySensorsArduinoExamples: copied libraries and examples to arduino folder (overwrite the original files if needed)
        4. Used hardware:
        • Arduino Uno

        • NRF24L01+ :
          https://www.tinytronics.nl/shop/nl/communicatie/rf(id)-wifi-bt/nrf24l01-wireless-module-zwart?search=nrf24l01

        • NRF24L01+ adapter:
          https://www.tinytronics.nl/shop/nl/communicatie/nrf24l01-wireless-module-adapter-board

        Hardware connections:

        => First experiment without adapter board:
        http://schullebernd.de/wp-content/uploads/2015/10/Schaltbild_nRF24L01_ArduinUNO_mit_Elko.png
        => Second experiment with adapter board as above but without condensator and board adapterboard powered with 5volt.

        Ofcourse ultrasoon sensor connected too according https://www.mysensors.org/build/distance,
        one exception: #define TRIGGER_PIN 6 changed in 3 (because pin 6 is already used by NRF24L01)

        After uploading the Distance Sensor sketch I opened the debug window which show this:

        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
        10028 TSM:FAIL:CNT=2
        10029 TSM:FAIL:PDT

        I have check everything, same results in both hardware setup (with or without NRF24L01 adapter).
        Power is ok.

        I really don't know what's wrong.

        By the way: I get a lot of warnings: "Invalid version found: 1.04": this after I have uploaded the https://github.com/mysensors/MySensorsArduinoExamples files..

        I really hope somebody can help.

        Regards,

        ;-) Arthur

        dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by
        #3

        @Arthur Can you show us how you have it wired with a schematic or something?

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        ArthurA 1 Reply Last reply
        0
        • ArthurA Offline
          ArthurA Offline
          Arthur
          wrote on last edited by Arthur
          #4

          Hello !

          I checked everything again, deinstalled Arduino and removed the userdata too.

          • Installed arduino again.
          • Installed mysensor library (library manager Arduino Software: v2.1.1 installed * https://github.com/mysensors/MySensorsArduinoExamples: copied libraries and examples to arduino folder (but wihout any overwriting). After a new sketch upload I see now only 2 errors:

          "Invalid version found: 1.04
          Invalid version found: 1.04"

          instead if a huge list of the same errors..

          I have checked the wire connections very secure using this images:

          https://i.stack.imgur.com/wKz2l.png

          https://www.mysensors.org/build/connect_radio

          => I have used the NRF24L01+ adapter also (no condensator needed), powersupply connected to the 5Volt pin from the Arduino Uno (original from Italy, no clone).

          => I have used the Gateway serial now, no ultrasoon sensor connected.

          => No powercable connected to the Arduino, this because it's connected with an USB-cable to my laptop which runs the Aduino software.

          But when I check the debug info, I get this: :FAIL:RE-INIT
          0;255;3;0;9;TSM:INIT
          0;255;3;0;9;!TSM:INIT:TSP FAIL
          0;255;3;0;9;TSM:FAIL:CNT=3
          0;255;3;0;9;TSM:FAIL:PDT
          0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.0
          0;255;3;0;9;TSM:INIT
          0;255;3;0;9;TSF:WUR:MS=0
          0;255;3;0;9;!TSM:INIT:TSP FAIL
          0;255;3;0;9;TSM:FAIL:CNT=1
          0;255;3;0;9;TSM:FAIL:PDT
          0;255;3;0;9;TSM:FAIL:RE-INIT
          0;255;3;0;9;TSM:INIT
          0;255;3;0;9;!TSM:INIT:TSP FAIL
          0;255;3;0;9;TSM:FAIL:CNT=2

          What's wrong, do I made a mistake ?

          I hope somebody can help...........

          Many thanks !

          ;-) Arthur

          0_1499885461577_nrf24l01-power-adapter-3d-model-sldprt-sldasm-slddrw.jpg

          1 Reply Last reply
          0
          • dbemowskD dbemowsk

            @Arthur Can you show us how you have it wired with a schematic or something?

            ArthurA Offline
            ArthurA Offline
            Arthur
            wrote on last edited by Arthur
            #5

            0_1499885358657_NRF24L01 adapter baord-1000x1000.JPG

            Pro Mini / Nano NRF24L01+ adapter
            GND GND
            5V 5V
            9 CE
            10 CSN/CS
            13 SCK
            11 M0 (MOSI)
            12 M1 (MISO)

            1 Reply Last reply
            0
            • ArthurA Offline
              ArthurA Offline
              Arthur
              wrote on last edited by
              #6

              Shit, it works I think.

              Bad wire, I have now this output:

              0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.0
              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
              0;255;3;0;14;Gateway startup complete.
              0;255;0;0;18;2.1.0
              0;255;3;0;9;MCO:BGN:STP
              0;255;3;0;9;MCO:BGN:INIT OK,TSP=1

              Thanks !

              ;-) Arthur

              YveauxY 1 Reply Last reply
              0
              • ArthurA Arthur

                Shit, it works I think.

                Bad wire, I have now this output:

                0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.0
                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
                0;255;3;0;14;Gateway startup complete.
                0;255;0;0;18;2.1.0
                0;255;3;0;9;MCO:BGN:STP
                0;255;3;0;9;MCO:BGN:INIT OK,TSP=1

                Thanks !

                ;-) Arthur

                YveauxY Offline
                YveauxY Offline
                Yveaux
                Mod
                wrote on last edited by
                #7

                @Arthur good to hear!

                http://yveaux.blogspot.nl

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                14

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular