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. Controllers
  3. OpenHAB
  4. Lost beginner - nodes, parent nodes and changes needed to sketches ?

Lost beginner - nodes, parent nodes and changes needed to sketches ?

Scheduled Pinned Locked Moved OpenHAB
18 Posts 3 Posters 5.3k 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #7

    make sure #define MY_NODE_ID 3 and all other mysensors related defines are written before the #include <MySensors.h>

    A 1 Reply Last reply
    0
    • gohanG gohan

      make sure #define MY_NODE_ID 3 and all other mysensors related defines are written before the #include <MySensors.h>

      A Offline
      A Offline
      anonymouslemming
      wrote on last edited by
      #8

      @gohan said in Lost beginner - nodes, parent nodes and changes needed to sketches ?:

      make sure #define MY_NODE_ID 3 and all other mysensors related defines are written before the #include <MySensors.h>

      I've got the following near the top of the sketch:

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      #define MY_NODE_ID 3
      #include <MySensors.h>
      

      There are no occurrences of MY_NODE_ID above this, but I'm seeing the same behaviour.

      Is this test even useful? insofar as testing radio connectivity without a gateway in place ?

      Is anyone able to share a circuit and a sketch for a simple relay that's known to work with OpenHAB, or should the examples be working ?

      thanks,

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #9

        What do you mean you don't have a gateway in place?

        A 1 Reply Last reply
        0
        • gohanG gohan

          What do you mean you don't have a gateway in place?

          A Offline
          A Offline
          anonymouslemming
          wrote on last edited by
          #10

          @gohan said in Lost beginner - nodes, parent nodes and changes needed to sketches ?:

          What do you mean you don't have a gateway in place?

          Apologies - I mean that I don't have a controller in place at the moment. I do have the serial gateway running, but no node ID variables / defines in there.

          parachutesjP 1 Reply Last reply
          0
          • A anonymouslemming

            @gohan said in Lost beginner - nodes, parent nodes and changes needed to sketches ?:

            What do you mean you don't have a gateway in place?

            Apologies - I mean that I don't have a controller in place at the moment. I do have the serial gateway running, but no node ID variables / defines in there.

            parachutesjP Offline
            parachutesjP Offline
            parachutesj
            wrote on last edited by
            #11

            @anonymouslemming have you tried another arduino? I think I had once a similar issue, all was set correct but node did not connect. Changed the arduino and it worked.

            A 1 Reply Last reply
            0
            • parachutesjP parachutesj

              @anonymouslemming have you tried another arduino? I think I had once a similar issue, all was set correct but node did not connect. Changed the arduino and it worked.

              A Offline
              A Offline
              anonymouslemming
              wrote on last edited by
              #12

              @parachutesj said in Lost beginner - nodes, parent nodes and changes needed to sketches ?:

              @anonymouslemming have you tried another arduino? I think I had once a similar issue, all was set correct but node did not connect. Changed the arduino and it worked.

              I've tried 3 different Arduino Nano's on the switch module and 2 different radios. Replaced cables too. I tried a different Arduino Uno on the gateway module too.

              1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #13

                according to the log the node is not getting an ID otherwise it should show in the first lines that it is using ID = 3
                You could try running the cleareeprom sketch and upload your sketch again

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  anonymouslemming
                  wrote on last edited by
                  #14

                  I finally got this working. My problem was my radio's were not communicating. I went back to basics with an RF24 example sketch and found one of my radio's to be dead. After replacing it, I simply set
                  MY_NODE_ID in my sketch and everything is now working.

                  gohanG 1 Reply Last reply
                  0
                  • A anonymouslemming

                    I finally got this working. My problem was my radio's were not communicating. I went back to basics with an RF24 example sketch and found one of my radio's to be dead. After replacing it, I simply set
                    MY_NODE_ID in my sketch and everything is now working.

                    gohanG Offline
                    gohanG Offline
                    gohan
                    Mod
                    wrote on last edited by
                    #15

                    @anonymouslemming it is always good to have spare parts around :D

                    A 1 Reply Last reply
                    0
                    • gohanG gohan

                      @anonymouslemming it is always good to have spare parts around :D

                      A Offline
                      A Offline
                      anonymouslemming
                      wrote on last edited by
                      #16

                      @gohan I have SOOO many spare RF24's now - I bought a batch of 10 off of Amazon while debugging this.

                      :D

                      1 Reply Last reply
                      0
                      • gohanG Offline
                        gohanG Offline
                        gohan
                        Mod
                        wrote on last edited by
                        #17

                        I hope yours are not the cheap crappy chinese clones like I got from Amazon too. If you paid less than 12$ for those, they most likely are too.

                        A 1 Reply Last reply
                        0
                        • gohanG gohan

                          I hope yours are not the cheap crappy chinese clones like I got from Amazon too. If you paid less than 12$ for those, they most likely are too.

                          A Offline
                          A Offline
                          anonymouslemming
                          wrote on last edited by
                          #18

                          @gohan I'm almost 100% sure they're clones, yeah. But they've been going for 2 days now across the range of my house (while in low power mode - no capacitor in place yet), so they'll do for prototyping.

                          Once I get to designing and printing boards, then I'll be a lot fussier :)

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          14

                          Online

                          12.0k

                          Users

                          11.2k

                          Topics

                          113.4k

                          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