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. Announcements
  3. 💬 Connecting the Radio

💬 Connecting the Radio

Scheduled Pinned Locked Moved Announcements
162 Posts 49 Posters 41.2k Views 40 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.
  • alowhumA Offline
    alowhumA Offline
    alowhum
    Plugin Developer
    wrote on last edited by
    #136

    While you're at it: maybe tell people about the NRF52 option?

    1 Reply Last reply
    0
    • alowhumA alowhum

      Add a link to: https://www.aliexpress.com/item/Free-shipping-Nano-328P-IO-wireless-sensor-expansion-board-for-XBEE-and-NRF24L01-Socket-for-arduino/32298692903.html

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

      @alowhum thanks. That does indeed look lika nifty solution. I'll add it.

      For the nrf5x, I don't know which boards are user-friendly, and I haven't understood if MySensors nrf5x support is "production ready" yet or if it requires people to tweak or otherwise do special stuff to get a node working. I don't think I have seen anyone building nrf5x MySensors nodes yet.

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

        Lots of people have I think, check the NRF5 thread. I built my own first one this week (BME280 sensor). It rocks.

        • Arduino with built in NRF24 for $3.
        • The size of a postage stamp.
        • Powerful enough to use the simple encryption functionality.
        • Antenna socket: just plug in antenna for more range.
        1 Reply Last reply
        1
        • skywatchS Offline
          skywatchS Offline
          skywatch
          wrote on last edited by
          #139

          Maybe it's just me, but in the first image of a pro mini the top row of pins seem to be reversed to what I normally see.....

          1 Reply Last reply
          0
          • 4 Offline
            4 Offline
            42isjustanumber
            wrote on last edited by
            #140

            My first post at mysensors.org. Sounds like a great tool. Tried to set up an MQTT Gateway with Hardware as described above, ESP8266 and RFM69W with 868 MHz, to connect some Technoline TX29DTH-IT temperature and humidity sensors, without success. ES8266 is working , connects with my wifi network and also connects to my mosquitto server. But I do not get any connection from RFM to technoline. Is there anyone out there who was able to get this running?

            YveauxY 1 Reply Last reply
            0
            • 4 42isjustanumber

              My first post at mysensors.org. Sounds like a great tool. Tried to set up an MQTT Gateway with Hardware as described above, ESP8266 and RFM69W with 868 MHz, to connect some Technoline TX29DTH-IT temperature and humidity sensors, without success. ES8266 is working , connects with my wifi network and also connects to my mosquitto server. But I do not get any connection from RFM to technoline. Is there anyone out there who was able to get this running?

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

              @42isjustanumber welcome to the forum!
              MySensors uses its own protocol and is therefore not compatible with the TX29DTH-IT.
              You can however build your own temperature and humidity sensors from examples on this website and start expanding your network from there!

              http://yveaux.blogspot.nl

              1 Reply Last reply
              1
              • 4 Offline
                4 Offline
                42isjustanumber
                wrote on last edited by
                #142

                @Yveaux: thanks for the information. I thought it's much easier. I heard about LaCrosse Gateway which seems to be able to connect to Technoline temperature and humidity sensors with Nodemcu and RFM69 hardware and connect it to FHEM. I wanted to have a more general approach and just forward data from technoline sensors via MQTT. But if this is a totally different protocol I'll have to look for another solution.

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

                  Mysensors is just taking care of transporting the data, if you have a sketch that can read data from any sensors, you can then send those values via mysensors to any controller supported.

                  1 Reply Last reply
                  0
                  • 4 Offline
                    4 Offline
                    42isjustanumber
                    wrote on last edited by
                    #144

                    That was my misunderstanding. I thought with the hardware and settings mentioned above, I would be able to read the data from any Technoline sensor. There's a YouTube video from Miika Kurkela explaining how to interpret the data from these sensors. But to be honest, I only unterstand half of it.

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

                      If you have a working code that works on esp8266, you can use it as a node or as a gateway with sensors and no radio module.

                      1 Reply Last reply
                      0
                      • joaoabsJ Offline
                        joaoabsJ Offline
                        joaoabs
                        wrote on last edited by
                        #146

                        Hi, just to warn navigation that the above code for RFM69 seems to have a glitch:

                        #define MY_RFM69_FREQUENCY RF69_433MHZ doesn't compile but changing it to #define MY_RFM69_FREQUENCY RFM69_433MHZ it does. (missing the "M" in RF69_433MHZ).

                        mfalkviddM 1 Reply Last reply
                        0
                        • joaoabsJ joaoabs

                          Hi, just to warn navigation that the above code for RFM69 seems to have a glitch:

                          #define MY_RFM69_FREQUENCY RF69_433MHZ doesn't compile but changing it to #define MY_RFM69_FREQUENCY RFM69_433MHZ it does. (missing the "M" in RF69_433MHZ).

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

                          @joaoabs thanks for noticing. I have updated the page.

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            dmonty
                            wrote on last edited by dmonty
                            #148

                            After running NRF24L01+ for a few years I recently decided to upgrade to several NRF24L01+PA+LNA (Antenna version) using the link from this page. Initially the performance was worse. Fail to find gateway, fail to send data and lots of NACKs. However eventually I was able to get them working. Below is a summary of tweaks and suggestions from various Mysensor Forum posts that helped stabilize my sensor network.

                            1. Add 47uf capacitor between 3v and ground pin on the transceiver.

                            2. Add plastic-wrap then a tinfoil shield as per other threads. Tinfoil needs to to touch the base of the antenna (ground).

                            3. My 5V switching power supply to the Arduino Nano was causing problems. Some sort of noise on the wire? When I disconnected the transformer and powered the arduino by laptop usb, the signal was much more reliable. So I added a 1000uf capacitor between ground and 5V coming from the transformer which filtered out the noise coming from the power supply. This is probably not applicable to battery powered devices.

                            4. Use static node addressing for each node - automatic addressing sometimes randomly make bad routing decisions bypassing repeater nodes and choosing far away nodes.
                              // Far-from-gateway sensor node
                              #define MY_NODE_ID 2
                              // Parent is a repeater node
                              #define MY_PARENT_NODE_ID 1
                              #define MY_PARENT_NODE_IS_STATIC

                            5. Lower the power on the transceiver. Try each power level reboot the node and pay attention to: Setup speed, how many NACKs.
                              // RF24_PA_MIN = -18dBm;
                              // RF24_PA_LOW = -12dBm;
                              // RF24_PA_HIGH = -6dBm;
                              // RF24_PA_MAX = 0dBm
                              #define MY_RF24_PA_LEVEL (RF24_PA_LOW)

                            6. Run the RF24 scanner example for a long time to find a channel that is free from noise. I ran it for a day to pick up neighbourhood noise and loaded the results into a spreadsheet to graph. Set the clearest channel on all my nodes. e.g.
                              #define MY_RF24_CHANNEL (105)

                            7. In domoticz I lowered the ACK time from 1200 to 400 to avoid broadcast storms/collisions. On the nodes after each send or receive add a "wait(LONG_WAIT);" to allow ACKs to settle between transmissions ( e.g. 500ms).

                            8. Run a ping-pong test between two battery powered mobile nodes to find optimal locations for your gateway, repeaters and sensors. Find the outer limits and keep the nodes well within those limits. Try not to place a node at the outer range limit, add repeaters. Sometimes moving a few feet in one direction can have a big difference.

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

                              @dmonty which hardware did you use? It sounds like you tried the old cheap model without shielding.

                              There are way better modules out there now which will give you far less trouble.

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

                                Agreed, the shielded modules can run at full power without any problem

                                1 Reply Last reply
                                0
                                • alowhumA alowhum

                                  @dmonty which hardware did you use? It sounds like you tried the old cheap model without shielding.

                                  There are way better modules out there now which will give you far less trouble.

                                  D Offline
                                  D Offline
                                  dmonty
                                  wrote on last edited by
                                  #151

                                  @alowhum @gohan - I used the non-shielded module found in the "Shopping Guide" on this page: https://www.mysensors.org/build/connect_radio. Used bought from the seller that the link took me to.

                                  The Connecting the Radio page get's you up and running. Would be nice if the "Shopping Guide" - grouped optimal matching components into a plug-n-play style "Shopping Cart". e.g. Optimal recommended component groups for:

                                  1. Gateway node.
                                  2. Repeater node.
                                  3. Sensor node.

                                  a) usb powered.
                                  b) transformer powered.
                                  c) battery powered.
                                  d) solar powered.

                                  I think my next experiment may be to pick up the 3v regulated power sockets to see if they will help in increasing the power and range as I've read the 3.3v regulator on the Arduino Nano is not very good at powering the radio.

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

                                    That shopping guide (heck, most examples on the site) is often out of date.

                                    I'd recommend checking out this thread:
                                    https://forum.mysensors.org/topic/9668/cdebyte-s-new-nrf24-modules-are-great-and-cheap/26

                                    For your nodes I'd highly recommend getting the "nano wireless board" from places like aliexpress. The radios just plug right into it.

                                    For the Raspberry Pi there is also a really easy to use 'hat' that allows you to plug the NRF24 directly into it:
                                    https://forum.mysensors.org/topic/9696/i-got-a-plug-and-play-nrf24-shield-for-the-pi-on-aliexpress

                                    1 Reply Last reply
                                    0
                                    • F Offline
                                      F Offline
                                      FlyingDomotic
                                      wrote on last edited by
                                      #153

                                      Concerning RF24 Plus datasheet, it seems that a more recent version is available at https://infocenter.nordicsemi.com/pdf/nRF24L01P_PS_v1.0.pdf?cp=8_4_0_0

                                      mfalkviddM 1 Reply Last reply
                                      1
                                      • F FlyingDomotic

                                        Concerning RF24 Plus datasheet, it seems that a more recent version is available at https://infocenter.nordicsemi.com/pdf/nRF24L01P_PS_v1.0.pdf?cp=8_4_0_0

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

                                        Thanks @FlyingDomotic
                                        I have updated the page.

                                        1 Reply Last reply
                                        0
                                        • D dmonty

                                          After running NRF24L01+ for a few years I recently decided to upgrade to several NRF24L01+PA+LNA (Antenna version) using the link from this page. Initially the performance was worse. Fail to find gateway, fail to send data and lots of NACKs. However eventually I was able to get them working. Below is a summary of tweaks and suggestions from various Mysensor Forum posts that helped stabilize my sensor network.

                                          1. Add 47uf capacitor between 3v and ground pin on the transceiver.

                                          2. Add plastic-wrap then a tinfoil shield as per other threads. Tinfoil needs to to touch the base of the antenna (ground).

                                          3. My 5V switching power supply to the Arduino Nano was causing problems. Some sort of noise on the wire? When I disconnected the transformer and powered the arduino by laptop usb, the signal was much more reliable. So I added a 1000uf capacitor between ground and 5V coming from the transformer which filtered out the noise coming from the power supply. This is probably not applicable to battery powered devices.

                                          4. Use static node addressing for each node - automatic addressing sometimes randomly make bad routing decisions bypassing repeater nodes and choosing far away nodes.
                                            // Far-from-gateway sensor node
                                            #define MY_NODE_ID 2
                                            // Parent is a repeater node
                                            #define MY_PARENT_NODE_ID 1
                                            #define MY_PARENT_NODE_IS_STATIC

                                          5. Lower the power on the transceiver. Try each power level reboot the node and pay attention to: Setup speed, how many NACKs.
                                            // RF24_PA_MIN = -18dBm;
                                            // RF24_PA_LOW = -12dBm;
                                            // RF24_PA_HIGH = -6dBm;
                                            // RF24_PA_MAX = 0dBm
                                            #define MY_RF24_PA_LEVEL (RF24_PA_LOW)

                                          6. Run the RF24 scanner example for a long time to find a channel that is free from noise. I ran it for a day to pick up neighbourhood noise and loaded the results into a spreadsheet to graph. Set the clearest channel on all my nodes. e.g.
                                            #define MY_RF24_CHANNEL (105)

                                          7. In domoticz I lowered the ACK time from 1200 to 400 to avoid broadcast storms/collisions. On the nodes after each send or receive add a "wait(LONG_WAIT);" to allow ACKs to settle between transmissions ( e.g. 500ms).

                                          8. Run a ping-pong test between two battery powered mobile nodes to find optimal locations for your gateway, repeaters and sensors. Find the outer limits and keep the nodes well within those limits. Try not to place a node at the outer range limit, add repeaters. Sometimes moving a few feet in one direction can have a big difference.

                                          D Offline
                                          D Offline
                                          dmonty
                                          wrote on last edited by dmonty
                                          #155

                                          A journal update on NRF24L01+PA+LNA (Antenna version). After 4-5 months two of them stopped transmitting. I had also purchase and installed the 3.3v regulator base socket to help improve overall transmission reliability.

                                          Loaded the RF24 library GettingStarted example onto two arduinos connected to laptop and a desktop. Changed the code to match MySensors pinout and data-rate, along with a free channel found by the RF24 scanner example.

                                          RF24 radio(9,10);
                                          

                                          ...snip...

                                            radio.begin();
                                            radio.setDataRate(RF24_250KBPS); 
                                            radio.setChannel(120);
                                            //radio.setPALevel(RF24_PA_MIN);
                                            radio.setPALevel(RF24_PA_LOW);
                                            //radio.setPALevel(RF24_PA_HIGH);
                                            //radio.setPALevel(RF24_PA_MAX);
                                          

                                          I Moved laptop to far edges of the range and tried various power levels for NRF2L01 as well as the PA+LNA. Sketch default is RF24_PA_LOW which turns out to have the farthest range with the least packet loss and fastest turn around time packet time. I also cycled through the various radios to weed out the ones that were week. Even with the 3.3v base socket, a capacitor helps as well as cellophane+tinfoil on the PA LNA modules.

                                          I then put one of the arduinos onto a battery pack and placed it next to each of my sensors. Then used the laptop to see packet loss next to repeater nodes and gateway. When near the edge of the range moving the antenna a few feet in different directions will cause packet loss. When a sensor is at the edge it is better to move radios closer to each other or a add a repeater. I thought PA LNA would be better in all locations but it turns out that the cheaper base radios sometimes perform better.

                                          gohanG 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.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