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. Hardware
  3. Is it a good idea to use a Pi 3 as Gateway and Pi zero W as nodes ?

Is it a good idea to use a Pi 3 as Gateway and Pi zero W as nodes ?

Scheduled Pinned Locked Moved Hardware
17 Posts 4 Posters 3.0k Views 4 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
    #6

    The only drawback of sonoff switches is they aren't easily expandable as you would need to solder thin wires in some places on the pcb or directly on esp8266 chip. For basic relay they work just fine.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pouniok
      wrote on last edited by
      #7

      So If all my nodes use esp8266 and are declared as gateway, I don't have to make my raspberry work as a gateway right ? So I only need to install MySensors lib for my Arduinos sketchs.

      @Nca78 I didn't know about Sonoff, it could replace my whole relay installation of arduinos :)
      I'll look into it!

      I'm gonna do some research about MQTT aswell, because it means nothing to me :p

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

        If your network is only based on wifi, you don't need mysensors gateway on raspberry.

        1 Reply Last reply
        0
        • rejoe2R Offline
          rejoe2R Offline
          rejoe2
          wrote on last edited by
          #9

          Some remarks:
          If you plan to go only the esp8266 way, you may have a look at the espeasy project (also for the esp-based sonoff-devices).

          BUT: The big advantage of MySensors - especially when using serial gateways - is: You don't have the need for additional infrastructure as LAN or regular WiFi-Network. Additionally, the wifi data is stored on the ESP-chips, so in case you change your WiFi password, you will also have to reflash all ESPs (at least to my understanding).

          Then: Using only "real" linux machines as you originally intended by using the zero Ws means also, you will have to take care about regular updates on all these devices to keep them secure. Using arduino devices is different: once the firmware is working, you will only have to make updates when there are significant changes in transmission protocols. At least until now, you can use "old" nRF-nodes programmed with mysensors Version 1.5.4 (or even older) alongside with GW's using the most recent code version.

          So also these "old-fashioned" Arduinos have their (big) advantages. Imo changing from Arduino to "modern" devices is not the best idea. My personal preference would be to include old Arduino-based hardware using RS485 (2 wires) over rfm69 (@868MHz) to nrf24. The RS485 and nRF24 modules are pretty cheap, I bought my last ones at around 3.50 to 5 Euro per 10 pieces... (OK, nRF are often fakes, this is why rfm69 might be the better choice, but once the nRF-nodes work, you also don't have to worry about them any more).

          Jm2ct.

          Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

          1 Reply Last reply
          1
          • P Offline
            P Offline
            pouniok
            wrote on last edited by
            #10

            @rejoe2 I've read many discussions about choosing between nRF24 and RFM69, and all the people agreed that the range of nRF24 was really bad.

            I haven't tested it myself, but I'm using that kind of things :
            alt text

            And the range is really bad, I can't communicate from one side of my apartment to the other (even with self made antennas! - 2 walls to pass and about 12m).

            I'm buying a house, the place will be bigger and there will be a second floor, so I want to invest in something working at longer range :)

            For what I've read, I like the idea of MQTT Broker and the use of Node Red with Domiticz to handle the sensors. But I'm still open the the RF way for small cost sensors... Since my Wifi sensors won't need a gateway, I can still use my Pi as a RF gateway and use both networks if I need !

            Someone should create a Doc page with the pro and cons of each communication method, like in this topic, it could help people like me trying to choose the right things :)

            Thanks guys!

            rejoe2R 1 Reply Last reply
            0
            • P pouniok

              @rejoe2 I've read many discussions about choosing between nRF24 and RFM69, and all the people agreed that the range of nRF24 was really bad.

              I haven't tested it myself, but I'm using that kind of things :
              alt text

              And the range is really bad, I can't communicate from one side of my apartment to the other (even with self made antennas! - 2 walls to pass and about 12m).

              I'm buying a house, the place will be bigger and there will be a second floor, so I want to invest in something working at longer range :)

              For what I've read, I like the idea of MQTT Broker and the use of Node Red with Domiticz to handle the sensors. But I'm still open the the RF way for small cost sensors... Since my Wifi sensors won't need a gateway, I can still use my Pi as a RF gateway and use both networks if I need !

              Someone should create a Doc page with the pro and cons of each communication method, like in this topic, it could help people like me trying to choose the right things :)

              Thanks guys!

              rejoe2R Offline
              rejoe2R Offline
              rejoe2
              wrote on last edited by
              #11

              @pouniok My personal experience with nRF24 isn't bad. I used a pa+na-Version for the GW and a Repeater Node 2 floors downstairs to cover my hole house, both together with an adopter plate @70ct.

              The receiver in your picture is known to be some of the worst rf-hw ever sold, so no wonder, this doesn't really work (sender is ok). Better use RXB12 (or similar), they are really good receivers and available on ebay for 4 Euro/5 pieces, if you like to stay at 433 (which imo is a bad rf-band to use, it's too noisy).

              With MQTT, I have no experience, but imo, this only is usefull, if you have also to integrate other HW that natively "speaks" MQTT or want to make some parts available over internet. Otherwise, it just doubles data handling to controller (this is at least the case when using FHEM as controller) and may cause some delay (and a lot more possible points of failure). For me, this is more or less a no-go, I like to keep things as simple as can...

              Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

              P 1 Reply Last reply
              0
              • rejoe2R rejoe2

                @pouniok My personal experience with nRF24 isn't bad. I used a pa+na-Version for the GW and a Repeater Node 2 floors downstairs to cover my hole house, both together with an adopter plate @70ct.

                The receiver in your picture is known to be some of the worst rf-hw ever sold, so no wonder, this doesn't really work (sender is ok). Better use RXB12 (or similar), they are really good receivers and available on ebay for 4 Euro/5 pieces, if you like to stay at 433 (which imo is a bad rf-band to use, it's too noisy).

                With MQTT, I have no experience, but imo, this only is usefull, if you have also to integrate other HW that natively "speaks" MQTT or want to make some parts available over internet. Otherwise, it just doubles data handling to controller (this is at least the case when using FHEM as controller) and may cause some delay (and a lot more possible points of failure). For me, this is more or less a no-go, I like to keep things as simple as can...

                P Offline
                P Offline
                pouniok
                wrote on last edited by
                #12

                @rejoe2 I ordered better receivers and it's night and day. Now I can control things between walls without problem, so I'll stick with the RF network and gateway :)

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

                  NRF24 and RFM69 also offer higher security level than normal RF

                  1 Reply Last reply
                  0
                  • P pouniok

                    @rejoe2 I ordered better receivers and it's night and day. Now I can control things between walls without problem, so I'll stick with the RF network and gateway :)

                    rejoe2R Offline
                    rejoe2R Offline
                    rejoe2
                    wrote on last edited by
                    #14

                    @pouniok Thx for updating on this.
                    But nevertheless, I also would recommend to use a different Type of RF (ob even better: RS485, if you have at least 2 wires of any type where you want to place your nodes :grinning: ).

                    Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                    P 1 Reply Last reply
                    0
                    • rejoe2R rejoe2

                      @pouniok Thx for updating on this.
                      But nevertheless, I also would recommend to use a different Type of RF (ob even better: RS485, if you have at least 2 wires of any type where you want to place your nodes :grinning: ).

                      P Offline
                      P Offline
                      pouniok
                      wrote on last edited by
                      #15

                      I'm using RF 433 Mhz because most of the commercial RF power outlet are at this frequency. It allows me to control my lights without creating relays.

                      But I'm planning to use 868 Mhz for the roller shutter, but still hasn't found a suitable library to handle it with the Pi and Domoticz :)

                      rejoe2R gohanG 2 Replies Last reply
                      0
                      • P pouniok

                        I'm using RF 433 Mhz because most of the commercial RF power outlet are at this frequency. It allows me to control my lights without creating relays.

                        But I'm planning to use 868 Mhz for the roller shutter, but still hasn't found a suitable library to handle it with the Pi and Domoticz :)

                        rejoe2R Offline
                        rejoe2R Offline
                        rejoe2
                        wrote on last edited by
                        #16

                        @pouniok Controlling commercial Outlets is just one possible application within MySensors. @gohan and me are more talking about the communication between a MySensors-GW and MySensors-Nodes.
                        To use RF@868 you needn't much more than RFM69-Modules and the MySensors lib. For controlling Roller-Shutters there exists a working example at openhardware.io from @scalz . (Also with hw-design).

                        Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                        1 Reply Last reply
                        0
                        • P pouniok

                          I'm using RF 433 Mhz because most of the commercial RF power outlet are at this frequency. It allows me to control my lights without creating relays.

                          But I'm planning to use 868 Mhz for the roller shutter, but still hasn't found a suitable library to handle it with the Pi and Domoticz :)

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

                          @pouniok just hope you don't have any neighbour that likes to tinker with home automation in RF devices or you could face the issue of having things turning on and off out of your control :D

                          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