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. Development
  3. Total Noob to mysensors Looking at feasibility of a project

Total Noob to mysensors Looking at feasibility of a project

Scheduled Pinned Locked Moved Development
15 Posts 3 Posters 3.1k 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #2

    Hi @Danton-Barnes, welcome to the community.

    Yes, you can send messages between nodes like you describe in your scenario.

    1 Reply Last reply
    1
    • Danton BarnesD Offline
      Danton BarnesD Offline
      Danton Barnes
      wrote on last edited by
      #3

      Awesome! So I'm trying to figure out this architecture. I would have a Arduino Gateway which can have N slaves is that correct? Also the controller thing. I'm just trying to understand. I need a Controller for the gateway correct? Would it be possible to make the Gateway itself the controller with a TFT touchscreen interface? Even better a custom android/IOS/windows UWP app? Is any of this possible?

      Thanks in advance

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #4

        You only need a controller if you want to be able to use the id-handout feature or requesting time from your nodes. If you need fancy stuff like apps, a controller is also needed.

        If you don't need these features (and use static ids!), just skip it.

        Danton BarnesD 2 Replies Last reply
        2
        • hekH hek

          You only need a controller if you want to be able to use the id-handout feature or requesting time from your nodes. If you need fancy stuff like apps, a controller is also needed.

          If you don't need these features (and use static ids!), just skip it.

          Danton BarnesD Offline
          Danton BarnesD Offline
          Danton Barnes
          wrote on last edited by
          #5

          @hek Awesome. Thanks man. For now I think I'm just going to use Static IDs. Is there a starter tutorial for creating a small network like what I am talking about? Or even a tutorial just for master to a single slave comms would help me get started.

          1 Reply Last reply
          0
          • hekH hek

            You only need a controller if you want to be able to use the id-handout feature or requesting time from your nodes. If you need fancy stuff like apps, a controller is also needed.

            If you don't need these features (and use static ids!), just skip it.

            Danton BarnesD Offline
            Danton BarnesD Offline
            Danton Barnes
            wrote on last edited by
            #6

            @hek Also how many devices can you talk to from a single gateway?

            mfalkviddM 1 Reply Last reply
            0
            • Danton BarnesD Danton Barnes

              @hek Also how many devices can you talk to from a single gateway?

              mfalkviddM Online
              mfalkviddM Online
              mfalkvidd
              Mod
              wrote on last edited by mfalkvidd
              #7

              @Danton-Barnes the "Getting started" link at the top of this page could be a good start :-D

              It leads to https://www.mysensors.org/about/network which says you can have 254 devices in a single radio network. (This includes the gateway, so 253 sensor nodes.)

              Many controllers have app or mobile web interface so you can probably just try a controller and see if you like it.

              You can also create a node that acts as "control panel" (which is not the same as a controller). See these examples for inspiration:
              https://www.openhardware.io/view/23/In-wall-LCD-SwitchScene-controller-for-MySensors
              https://www.mysensors.org/build/scene_controller

              Danton BarnesD 2 Replies Last reply
              1
              • mfalkviddM mfalkvidd

                @Danton-Barnes the "Getting started" link at the top of this page could be a good start :-D

                It leads to https://www.mysensors.org/about/network which says you can have 254 devices in a single radio network. (This includes the gateway, so 253 sensor nodes.)

                Many controllers have app or mobile web interface so you can probably just try a controller and see if you like it.

                You can also create a node that acts as "control panel" (which is not the same as a controller). See these examples for inspiration:
                https://www.openhardware.io/view/23/In-wall-LCD-SwitchScene-controller-for-MySensors
                https://www.mysensors.org/build/scene_controller

                Danton BarnesD Offline
                Danton BarnesD Offline
                Danton Barnes
                wrote on last edited by
                #8

                @mfalkvidd Thanks. I looked through and read that page, but couldn't find any code examples on how to assign an id address or any of that. Is there a resource for that?

                mfalkviddM 1 Reply Last reply
                0
                • mfalkviddM mfalkvidd

                  @Danton-Barnes the "Getting started" link at the top of this page could be a good start :-D

                  It leads to https://www.mysensors.org/about/network which says you can have 254 devices in a single radio network. (This includes the gateway, so 253 sensor nodes.)

                  Many controllers have app or mobile web interface so you can probably just try a controller and see if you like it.

                  You can also create a node that acts as "control panel" (which is not the same as a controller). See these examples for inspiration:
                  https://www.openhardware.io/view/23/In-wall-LCD-SwitchScene-controller-for-MySensors
                  https://www.mysensors.org/build/scene_controller

                  Danton BarnesD Offline
                  Danton BarnesD Offline
                  Danton Barnes
                  wrote on last edited by
                  #9

                  @mfalkvidd The node as a control panel is exactly what I have in mind. Thanks for the direction.

                  1 Reply Last reply
                  0
                  • Danton BarnesD Danton Barnes

                    @mfalkvidd Thanks. I looked through and read that page, but couldn't find any code examples on how to assign an id address or any of that. Is there a resource for that?

                    mfalkviddM Online
                    mfalkviddM Online
                    mfalkvidd
                    Mod
                    wrote on last edited by
                    #10

                    @Danton-Barnes use #define MY_NODE_ID 42 before including MySensors.h to give the node id 42. Details on https://www.mysensors.org/download/sensor_api_20

                    Danton BarnesD 1 Reply Last reply
                    1
                    • mfalkviddM mfalkvidd

                      @Danton-Barnes use #define MY_NODE_ID 42 before including MySensors.h to give the node id 42. Details on https://www.mysensors.org/download/sensor_api_20

                      Danton BarnesD Offline
                      Danton BarnesD Offline
                      Danton Barnes
                      wrote on last edited by
                      #11

                      @mfalkvidd Ok I'm beginning to understand it. I'm currently in Afghanistan for my job and will be until April. I started researching for this project before I left then stumbled across all this. Sorry for all the question I'm just trying to wrap my head around where this works. So in the example with the "Control Panel." Is the control panel the gateway as well? Also what would the other end look like? How would I send a command to node 42 is what I am asking.

                      mfalkviddM 1 Reply Last reply
                      0
                      • Danton BarnesD Danton Barnes

                        @mfalkvidd Ok I'm beginning to understand it. I'm currently in Afghanistan for my job and will be until April. I started researching for this project before I left then stumbled across all this. Sorry for all the question I'm just trying to wrap my head around where this works. So in the example with the "Control Panel." Is the control panel the gateway as well? Also what would the other end look like? How would I send a command to node 42 is what I am asking.

                        mfalkviddM Online
                        mfalkviddM Online
                        mfalkvidd
                        Mod
                        wrote on last edited by
                        #12

                        @Danton-Barnes said:

                        @mfalkvidd Ok I'm beginning to understand it. I'm currently in Afghanistan for my job and will be until April. I started researching for this project before I left then stumbled across all this. Sorry for all the question I'm just trying to wrap my head around where this works. So in the example with the "Control Panel." Is the control panel the gateway as well? Also what would the other end look like? How would I send a command to node 42 is what I am asking.

                        No worries. We've all been new to this stuff :)

                        The control panel can be the gateway, but doesn't need to. It can be a node just like anything else.

                        Maybe this code, a pump with a remote, is a better example for your use case. The remote sends commands to the pump. The pump has node id 7.

                        The other end could be like in the pump code, or like the led dimmer example, except that you would send a value to your potentiometer instead of setting the pwm level for a led.

                        Danton BarnesD 1 Reply Last reply
                        1
                        • mfalkviddM mfalkvidd

                          @Danton-Barnes said:

                          @mfalkvidd Ok I'm beginning to understand it. I'm currently in Afghanistan for my job and will be until April. I started researching for this project before I left then stumbled across all this. Sorry for all the question I'm just trying to wrap my head around where this works. So in the example with the "Control Panel." Is the control panel the gateway as well? Also what would the other end look like? How would I send a command to node 42 is what I am asking.

                          No worries. We've all been new to this stuff :)

                          The control panel can be the gateway, but doesn't need to. It can be a node just like anything else.

                          Maybe this code, a pump with a remote, is a better example for your use case. The remote sends commands to the pump. The pump has node id 7.

                          The other end could be like in the pump code, or like the led dimmer example, except that you would send a value to your potentiometer instead of setting the pwm level for a led.

                          Danton BarnesD Offline
                          Danton BarnesD Offline
                          Danton Barnes
                          wrote on last edited by
                          #13

                          @mfalkvidd Yes! Perfect place to start. I will look at the controller as a node later. Could the "remote" in the example you just provided still communicate to the 254 total nodes or is it limited? Please tell me it can... My mind will be blown.

                          mfalkviddM 1 Reply Last reply
                          0
                          • Danton BarnesD Danton Barnes

                            @mfalkvidd Yes! Perfect place to start. I will look at the controller as a node later. Could the "remote" in the example you just provided still communicate to the 254 total nodes or is it limited? Please tell me it can... My mind will be blown.

                            mfalkviddM Online
                            mfalkviddM Online
                            mfalkvidd
                            Mod
                            wrote on last edited by
                            #14

                            @Danton-Barnes any node on a MySensors network can send a message to any other node. Messages will be routed automatically by MySensors.

                            If you have multiple MySensors networks (due to >254 nodes or geographically separated networks) you'll need a controller to route messages between the networks though.

                            Danton BarnesD 1 Reply Last reply
                            1
                            • mfalkviddM mfalkvidd

                              @Danton-Barnes any node on a MySensors network can send a message to any other node. Messages will be routed automatically by MySensors.

                              If you have multiple MySensors networks (due to >254 nodes or geographically separated networks) you'll need a controller to route messages between the networks though.

                              Danton BarnesD Offline
                              Danton BarnesD Offline
                              Danton Barnes
                              wrote on last edited by
                              #15

                              @mfalkvidd Very cool. I'm not looking at more than that so the setup I have in mind should work. Thanks for the help! I'll probably bug you guys more in April-May when i get back home.

                              1 Reply Last reply
                              1
                              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