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. Troubleshooting
  3. MySensors API ver 1.6.1: MQTTClientGateway - RF69 - Arduino Uno - W5100 Shield

MySensors API ver 1.6.1: MQTTClientGateway - RF69 - Arduino Uno - W5100 Shield

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 4 Posters 3.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.
  • scalzS Offline
    scalzS Offline
    scalz
    Hardware Contributor
    wrote on last edited by scalz
    #3

    hi. I'm not using softspi on my side. but as I'm understanding this you're connecting rfm69 and w5100 on softspi together.
    I guess you should have your rfm69 on regular hardware spi pins, and the w5100 on softspi (or vice versa).
    And then be careful like said above, rfm69 is not 5v tolerant and UNO pins are 5v if i remember right (I have no uno ..). You have to use a logic level converter for spi pins (to convert 5v uno signals to 3v rfm69 etc..).

    1 Reply Last reply
    0
    • martinhjelmareM martinhjelmare

      @xefil

      Hi!

      NSS, MOSI and SCK on the RFM69 are not 5 V tolerant. Are you using a logic level converter?

      X Offline
      X Offline
      xefil
      wrote on last edited by
      #4

      @martinhjelmare
      Hi, well. I'm not so proof with that at all. Feeding it with 3.3V I was thinking it's enough. Isn't the same as for the NRF24L01+. It has it own 3.3V pin on the shield. I've an Arduino Diemilanove with W5100 for the NRF24L01+ as MQTTClientGateway and it works great.

      @scalz
      Hi! For the 5v question see above.
      For the pins, could you give me some pratical code hints based on the above sketch I've posted?

      Thanks to all!

      Simon

      1 Reply Last reply
      0
      • scalzS Offline
        scalzS Offline
        scalz
        Hardware Contributor
        wrote on last edited by scalz
        #5

        @xefil
        you have connected radio and ethernet together on same spi bus. in theory, you could do but you wouldn't need softspi in this case ;) actually (I don't know if it's fixed), you can't do this when using w5100.
        Here connection is explained
        https://www.mysensors.org/build/ethernet_gateway
        for pin configuration then, look at myconfig.h
        but I don't use softspi with my rfm69 so I can't tell you. I would prefer use a board with two hardware spi bus like tbowmo GW for instance (I'm using an usb gw, and another one wifi esp8266 for the moment)

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xefil
          wrote on last edited by xefil
          #6

          Hi @scalz again :)
          I've found this that could help to use SOFTSPI (https://github.com/gieemek/) but seems related to API 1.5 and I'm using 1.6 and it doesn't have the MQTTClient version.
          I'm still in big doubt on WHY I have to use SOFTSPI. AFAYK it's 'cause it shares SPI and one of them needs to use software emulation.
          If so, isn't enough if W5100 uses SOFT? But being a shield it's connected to the SPI port directly so the radio must be set to SOFT-SPI?

          For the logic level converter it's something like that?
          http://www.circuitointegrato.com/3071-thickbox_default/ebay.jpg
          (IIC I2C level converter module, 5-3v system compatible, arduino sensor module)
          Could I have damaged the radio without the level converter?

          I would like to prevent buying more components and find out that I cannot reach the needed goal.

          Any suggestion to create the MQTTClientGateway with the aboce hardware?

          I'm using Openhab as Controller. Any other alternative could be apreciated.
          I should have a Arduino Pro Mini 3.3V (so it doesn't require level converter) and could use the SerialGateway connecting it directly to the Raspberry Openhab?

          Thanks!

          Simon

          1 Reply Last reply
          0
          • X Offline
            X Offline
            xefil
            wrote on last edited by
            #7

            Hi again to all!
            Noone has suggestions or answers for what asked above?
            I would have a ENC28J60 network controller. Would this help in solving the issue in any way?
            Main goal: MQTTGatewayClient. Alternatives are accepted as well :+1:
            Thanks!
            Simon

            martinhjelmareM 1 Reply Last reply
            0
            • X xefil

              Hi again to all!
              Noone has suggestions or answers for what asked above?
              I would have a ENC28J60 network controller. Would this help in solving the issue in any way?
              Main goal: MQTTGatewayClient. Alternatives are accepted as well :+1:
              Thanks!
              Simon

              martinhjelmareM Offline
              martinhjelmareM Offline
              martinhjelmare
              Plugin Developer
              wrote on last edited by
              #8

              @xefil

              For the Uno you have to use a logic level converter to connect the RFM69. If you use a Pro Mini 3.3 V you don't need a logic converter but you need to be able to decrease the baudrate at the controller for the serial connection to work, if using that gateway type.

              Regarding ethernet gateway and SPI, I suggest you follow the build guide. I don't recommend the ENC module as it's notoriously hard to get working together with mysensors.

              X 1 Reply Last reply
              0
              • martinhjelmareM martinhjelmare

                @xefil

                For the Uno you have to use a logic level converter to connect the RFM69. If you use a Pro Mini 3.3 V you don't need a logic converter but you need to be able to decrease the baudrate at the controller for the serial connection to work, if using that gateway type.

                Regarding ethernet gateway and SPI, I suggest you follow the build guide. I don't recommend the ENC module as it's notoriously hard to get working together with mysensors.

                X Offline
                X Offline
                xefil
                wrote on last edited by
                #9

                @martinhjelmare said:

                @xefil

                For the Uno you have to use a logic level converter to connect the RFM69.

                Ok, I'll order one. My big doubt is if I can then use the radio RFM69 + the W5100 for a MQTTClientGateway. I've tested it only for W5100 with NRF24L01+ and I fear the MQTTClientgateway doen't work with RFM69.

                If you use a Pro Mini 3.3 V you don't need a logic converter but you need to be able to decrease the baudrate at the controller for the serial connection to work, if using that gateway type.

                Do you mean decrease it from 115200 to lower? Which speed? why?

                Regarding ethernet gateway and SPI, I suggest you follow the build guide. I don't recommend the ENC module as it's notoriously hard to get working together with mysensors.

                Ok to not use then ENC. I've followed the build guide, but, as written before, I think there is an incompatibility to use RFM69 and W5100 as gateway, especially as mqttclientgateway. Any experience would be great to be shared ;)

                Thanks,

                Simon

                martinhjelmareM 1 Reply Last reply
                0
                • X xefil

                  @martinhjelmare said:

                  @xefil

                  For the Uno you have to use a logic level converter to connect the RFM69.

                  Ok, I'll order one. My big doubt is if I can then use the radio RFM69 + the W5100 for a MQTTClientGateway. I've tested it only for W5100 with NRF24L01+ and I fear the MQTTClientgateway doen't work with RFM69.

                  If you use a Pro Mini 3.3 V you don't need a logic converter but you need to be able to decrease the baudrate at the controller for the serial connection to work, if using that gateway type.

                  Do you mean decrease it from 115200 to lower? Which speed? why?

                  Regarding ethernet gateway and SPI, I suggest you follow the build guide. I don't recommend the ENC module as it's notoriously hard to get working together with mysensors.

                  Ok to not use then ENC. I've followed the build guide, but, as written before, I think there is an incompatibility to use RFM69 and W5100 as gateway, especially as mqttclientgateway. Any experience would be great to be shared ;)

                  Thanks,

                  Simon

                  martinhjelmareM Offline
                  martinhjelmareM Offline
                  martinhjelmare
                  Plugin Developer
                  wrote on last edited by
                  #10

                  @xefil

                  115200 is too fast for Arduino at 8 MHz. Use 38400.

                  I haven't tested the RFM69 myself yet, but I don't remember reading that it should be incompatible with the W5100 either.

                  1 Reply Last reply
                  0
                  • X Offline
                    X Offline
                    xefil
                    wrote on last edited by
                    #11

                    Hello,

                    I've purchased this i2C level converter to use the RFM69 radio on my Arduino Uno:

                    http://www.ebay.it/itm/222115738795

                    Ehm, how do I use it :-)

                    Thanks for the support!

                    PS: As written at the beginning of this thread, I need to use the Arduino Uno as a gateway, so it has the ethernet shield as well.

                    THANKS!

                    Simon

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

                      If anyone answers @xefil's question above, please answer in this thread to avoid confusion.

                      @xefil: Please don't post the same question in more than one place. People will waste their time answering in one thread while the question might have been answered in another thread already.

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


                      28

                      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