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. General Discussion
  3. Newbie wants to do everything wired

Newbie wants to do everything wired

Scheduled Pinned Locked Moved General Discussion
17 Posts 7 Posters 1.3k Views 6 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.
  • T Offline
    T Offline
    tweaker
    wrote on last edited by
    #1

    Hello together,
    I see that here are the experts of sensors for smart buildings.

    I build some years ago my smart home with the general idea to keep as much as possible everything wired.
    I prepared to each heating distributor a LAN cable and from the heating distributor a 4x0,8qmm cable do the sensor pleace for each room.
    Now I would like to put a gateway in each heating distributor which collect all the data from the sensors in the room.
    Nice to have would be to have in each room a temp, humidity, light & move(rf) sensor.
    My issue is now that I have only 4 signal(wire) to the gateway, so that I need sensor which have the same fieldbus or I2C or something else.
    The latest would be to have a microcontroller on the sensor side which collect the sensor data and send it to the gateway.

    Would be great if you can advise if there is some suitable solution for my requirements.
    I would like to use only wired connection no rf.
    Best regards

    mfalkviddM 1 Reply Last reply
    0
    • T tweaker

      Hello together,
      I see that here are the experts of sensors for smart buildings.

      I build some years ago my smart home with the general idea to keep as much as possible everything wired.
      I prepared to each heating distributor a LAN cable and from the heating distributor a 4x0,8qmm cable do the sensor pleace for each room.
      Now I would like to put a gateway in each heating distributor which collect all the data from the sensors in the room.
      Nice to have would be to have in each room a temp, humidity, light & move(rf) sensor.
      My issue is now that I have only 4 signal(wire) to the gateway, so that I need sensor which have the same fieldbus or I2C or something else.
      The latest would be to have a microcontroller on the sensor side which collect the sensor data and send it to the gateway.

      Would be great if you can advise if there is some suitable solution for my requirements.
      I would like to use only wired connection no rf.
      Best regards

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      Welcome to the MySensors community @tweaker

      MySensors with rs485 transport should fit your use case pretty well.

      F 1 Reply Last reply
      0
      • mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #3

        Easiest way to get started is probably to read the getting started guide, keeping in mind that MySensors also supports wired rs485 where the guide talks about radio.

        Then look at the various build guides, for example
        https://www.mysensors.org/build/temp

        skywatchS 1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          Easiest way to get started is probably to read the getting started guide, keeping in mind that MySensors also supports wired rs485 where the guide talks about radio.

          Then look at the various build guides, for example
          https://www.mysensors.org/build/temp

          skywatchS Offline
          skywatchS Offline
          skywatch
          wrote on last edited by
          #4

          @tweaker As @mfalkvidd said RS485 is a good solution if no ethernet is available - Absolutely DO NOT use I2C for any length of cable over a metre or so, it was never designed for that, only for onboard PCB communication.

          1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            Welcome to the MySensors community @tweaker

            MySensors with rs485 transport should fit your use case pretty well.

            F Offline
            F Offline
            FlyingDomotic
            wrote on last edited by
            #5

            @mfalkvidd said in Newbie wants to do everything wired:

            MySensors with rs485 transport should fit your use case pretty well.

            Getting back to your request, you need some kind of wired protocol to discuss between your sensors and your gateway.

            Depending on cables you have, max speed of communication will vary. With UTP/STP CAT 5 or more, you may think about Ethernet. With less sophisticated cables, any serial protocol will do it. You may think about 2 end points system (RS 232) or multi-node (RS485).

            As soon you have defined the physical layer, you have to think about the format of packets to be exchanged. Obviously, MySensors do it properly, and is already integrated (throughout gateways) to some popular controllers.

            This is probably the reason @mfalkvidd advice you to use RS485 with MySensors ;-)

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tweaker
              wrote on last edited by tweaker
              #6

              Thanks for the reply.
              A rs485 sounds pretty good.
              Do we have already a cheap board to put temp humidity motion sensor together on a mySensor board?
              I was thinking already about the si7021 Sensor and an cheap rf sensor with an digital output.
              As an gateway I have a orangePi Zero with nodeRed in mind.

              1 Reply Last reply
              0
              • alowhumA Offline
                alowhumA Offline
                alowhum
                Plugin Developer
                wrote on last edited by
                #7

                There's also a proposal to add PJON support: https://github.com/mysensors/MySensors/issues/1171

                As far as I can tell @tekka has even created some code to that effect. More no that here: https://github.com/mysensors/MySensors/pull/1278

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  feanor-anglin
                  wrote on last edited by feanor-anglin
                  #8

                  If you are thinking about RS485 system, have a look at my hardware:
                  https://www.openhardware.io/user/2098#view=projects

                  If you like it, please feel free to contact me. We've made some significant progress, which is not published yet.

                  C 1 Reply Last reply
                  0
                  • F feanor-anglin

                    If you are thinking about RS485 system, have a look at my hardware:
                    https://www.openhardware.io/user/2098#view=projects

                    If you like it, please feel free to contact me. We've made some significant progress, which is not published yet.

                    C Offline
                    C Offline
                    cabat
                    wrote on last edited by
                    #9

                    @feanor-anglin said in Newbie wants to do everything wired:

                    If you like it, please feel free to contact me. We've made some significant progress, which is not published yet.

                    I am also intresting in implementation of RS485 in my MySensors network, and i like yor hardware and use some of your ideas in my project Simple compact RS485 node (ATmega328 + MAX485) ,

                    1 Reply Last reply
                    1
                    • T Offline
                      T Offline
                      tweaker
                      wrote on last edited by tweaker
                      #10

                      Thanks for the proposal.
                      I have still one concern to use RS485:
                      My topology would be star topology, but RS485 is not designed for that.
                      Do someone have already experience with that?
                      Will it work with a lower baudrathe around 19,2k?
                      How big delay can I expect by using a motion detection sensor to switch on the lights?

                      C 1 Reply Last reply
                      0
                      • T tweaker

                        Thanks for the proposal.
                        I have still one concern to use RS485:
                        My topology would be star topology, but RS485 is not designed for that.
                        Do someone have already experience with that?
                        Will it work with a lower baudrathe around 19,2k?
                        How big delay can I expect by using a motion detection sensor to switch on the lights?

                        C Offline
                        C Offline
                        cabat
                        wrote on last edited by
                        #11

                        @tweaker
                        I'm also plan to use star topology, but still i build just one node :)
                        Use 9600 baud rate, and i don't have delay on my experience on this day.

                        T 1 Reply Last reply
                        0
                        • C cabat

                          @tweaker
                          I'm also plan to use star topology, but still i build just one node :)
                          Use 9600 baud rate, and i don't have delay on my experience on this day.

                          T Offline
                          T Offline
                          tweaker
                          wrote on last edited by
                          #12

                          @cabat : Thanks for sharing. When do you plan to connect more nodes? How long will be the cables?

                          General Question: I saw as well the ESPhome.io which looks very nice for me. Is this something which can be combined with the mySensors protocol? I want to use NodeRed in the OrangePi Gateway to gather all the sensor values.

                          C 1 Reply Last reply
                          0
                          • T tweaker

                            @cabat : Thanks for sharing. When do you plan to connect more nodes? How long will be the cables?

                            General Question: I saw as well the ESPhome.io which looks very nice for me. Is this something which can be combined with the mySensors protocol? I want to use NodeRed in the OrangePi Gateway to gather all the sensor values.

                            C Offline
                            C Offline
                            cabat
                            wrote on last edited by
                            #13

                            @tweaker said in Newbie wants to do everything wired:

                            @cabat : Thanks for sharing. When do you plan to connect more nodes? How long will be the cables?

                            In fact now i have 2 nodes, but one of then only for testing purpose, sending temp every 15 seconds.
                            The cable is about 10-15 meters.

                            1 Reply Last reply
                            0
                            • T Offline
                              T Offline
                              tweaker
                              wrote on last edited by
                              #14

                              Do you have already more experience with more then 4-5 Sensors.

                              C 1 Reply Last reply
                              0
                              • T tweaker

                                Do you have already more experience with more then 4-5 Sensors.

                                C Offline
                                C Offline
                                cabat
                                wrote on last edited by cabat
                                #15

                                @tweaker still not - not enough time to assemble additional nodes..

                                I have encountered problems that are still not clear to me when assembling the second board - it does not want to connect to the gateway.
                                I checked everything that is possible, but I haven’t found the reasons yet..
                                I will plan To assemble one more test node ..

                                1 Reply Last reply
                                0
                                • F Offline
                                  F Offline
                                  feanor-anglin
                                  wrote on last edited by
                                  #16

                                  Star topology is not recommended to use with RS485, but it is not that it certainly won't work. You have to test it.

                                  When it comes to experience, I have one with much more than 5 modules. It works pretty good, even if the modules are badly designed. To achieve top reliability though, you have to use well designed modules.

                                  C 1 Reply Last reply
                                  0
                                  • F feanor-anglin

                                    Star topology is not recommended to use with RS485, but it is not that it certainly won't work. You have to test it.

                                    When it comes to experience, I have one with much more than 5 modules. It works pretty good, even if the modules are badly designed. To achieve top reliability though, you have to use well designed modules.

                                    C Offline
                                    C Offline
                                    cabat
                                    wrote on last edited by
                                    #17

                                    @feanor-anglin said in Newbie wants to do everything wired:

                                    Star topology is not recommended to use with RS485, but it is not that it certainly won't work. You have to test it.

                                    I know about it, but I hope that with a speed of 9600 and a small cable length it will work ..

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


                                    18

                                    Online

                                    11.7k

                                    Users

                                    11.2k

                                    Topics

                                    113.0k

                                    Posts


                                    Copyright 2019 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