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. Controllers
  3. OpenHAB
  4. MQTT Client Gateway with Uno?

MQTT Client Gateway with Uno?

Scheduled Pinned Locked Moved OpenHAB
11 Posts 3 Posters 4.7k 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.
  • G Offline
    G Offline
    George Whitehouse
    wrote on last edited by
    #1

    Gday,

    I am going to have a go at the MQTT Client gateway. Does it only work with the esp8266? The sketch seems to point to the esp8266.

    I would like to use a Arduino UNO? (only because I have one here)
    How would this be wired up?

    Could someone point me in the right direction.

    Cheers,

    S M 2 Replies Last reply
    0
    • G George Whitehouse

      Gday,

      I am going to have a go at the MQTT Client gateway. Does it only work with the esp8266? The sketch seems to point to the esp8266.

      I would like to use a Arduino UNO? (only because I have one here)
      How would this be wired up?

      Could someone point me in the right direction.

      Cheers,

      S Offline
      S Offline
      Samuel235
      Hardware Contributor
      wrote on last edited by Samuel235
      #2

      @George-Whitehouse - Take a read of http://www.mysensors.org/build/mqtt_gateway and it will point you to build it as an ethernet gateway with a few mods to it. If you remain to be stuck then let me know and i will help you. I'm running a Arduino Mega 2560 as a MQTT gateway for OpenHAB. Works perfect!

      MySensors 2.1.1
      Controller - OpenHAB (Virtual Machine)
      Gateway - Arduino Mega MQTT Gateway W5100

      1 Reply Last reply
      0
      • G George Whitehouse

        Gday,

        I am going to have a go at the MQTT Client gateway. Does it only work with the esp8266? The sketch seems to point to the esp8266.

        I would like to use a Arduino UNO? (only because I have one here)
        How would this be wired up?

        Could someone point me in the right direction.

        Cheers,

        M Offline
        M Offline
        mbj
        wrote on last edited by
        #3

        @George-Whitehouse The MQTT gateway from the current 1.5 master branch is a MQTT broker which will be obsolete in the next version of the software. Should work on an UNO, I have used it on a Nano without problems. Maybe not a good idea to start using something that will disappear.

        Under the development branch you will find two MQTT clients, one based on Arduino and Ethernet (should work on an UNO, again I have tested it only on a Nano) and the other one is based on ESP8266. These two will be supported in the future it seems. Both are MQTT clients and need to talk to a broker. I currently use the the ESP8266 gateway + Mosquitto.

        You will find more info here about the new gateways http://forum.mysensors.org/topic/2352/guide-setting-up-and-testing-mqtt-client-gateway .

        Download of development (and master) branch is here https://github.com/mysensors/Arduino .

        1 Reply Last reply
        0
        • G Offline
          G Offline
          George Whitehouse
          wrote on last edited by
          #4

          Great thanks for that guys.

          I have got the MQTT gateway working well, it was dropping out every two minutes in openHAB however I noticed that only occurred when I had MQTTlens connected. So solved that small problem.

          I am keen to give the MQTT Client gateway a go. I just wanted to double check the wiring connections.

          So basically just wire it up as per the Ethernet gateway and load the dev MQTT Client sketch on?

          Regards,
          George

          S M 2 Replies Last reply
          0
          • G George Whitehouse

            Great thanks for that guys.

            I have got the MQTT gateway working well, it was dropping out every two minutes in openHAB however I noticed that only occurred when I had MQTTlens connected. So solved that small problem.

            I am keen to give the MQTT Client gateway a go. I just wanted to double check the wiring connections.

            So basically just wire it up as per the Ethernet gateway and load the dev MQTT Client sketch on?

            Regards,
            George

            S Offline
            S Offline
            Samuel235
            Hardware Contributor
            wrote on last edited by
            #5

            @George-Whitehouse - It would appear so yes. http://www.mysensors.org/build/mqtt_gateway

            MySensors 2.1.1
            Controller - OpenHAB (Virtual Machine)
            Gateway - Arduino Mega MQTT Gateway W5100

            1 Reply Last reply
            0
            • G George Whitehouse

              Great thanks for that guys.

              I have got the MQTT gateway working well, it was dropping out every two minutes in openHAB however I noticed that only occurred when I had MQTTlens connected. So solved that small problem.

              I am keen to give the MQTT Client gateway a go. I just wanted to double check the wiring connections.

              So basically just wire it up as per the Ethernet gateway and load the dev MQTT Client sketch on?

              Regards,
              George

              M Offline
              M Offline
              mbj
              wrote on last edited by
              #6

              @George-Whitehouse There are pin-outs listed in the GatewayW5100MQTTClient.ino sketch. If I remember right these and up identical to what is used for a W5100 Ethernet gateway but pls check. Just remember to install the full libraries from the development branch, will not compile at all using 1.5 libs.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Samuel235
                Hardware Contributor
                wrote on last edited by
                #7

                I will get my connection/oinout for you later if you want. Like i said i run a mega 2560 with the ethernet shield and mqtt client sketch.

                MySensors 2.1.1
                Controller - OpenHAB (Virtual Machine)
                Gateway - Arduino Mega MQTT Gateway W5100

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  George Whitehouse
                  wrote on last edited by
                  #8

                  Great thanks for the pointers.

                  Samuel, it would be great to double check your pin outs.

                  Thanks again.
                  Cheers,

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Samuel235
                    Hardware Contributor
                    wrote on last edited by
                    #9

                    Give me 2 hours and i'll be home thenbi will upload the info for you.

                    MySensors 2.1.1
                    Controller - OpenHAB (Virtual Machine)
                    Gateway - Arduino Mega MQTT Gateway W5100

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Samuel235
                      Hardware Contributor
                      wrote on last edited by
                      #10

                      So here are a few pictures of my gateway.

                      Gnd and 3v
                      0_1455617226263_image.jpg

                      Then the rest of the inputs from the nRF
                      0_1455617311077_image.jpg

                      Excuse the 4 wires on the right as they're for my LEDs (debugging feature).

                      The connections are:
                      Arduino - nRF24
                      3v - vcc
                      Gnd - gnd
                      16 - miso
                      15 - mosi
                      14 - sck
                      2 - irq
                      5 - ce
                      6 - cs

                      Please note that this pinout is using the soft spi enabled.

                      MySensors 2.1.1
                      Controller - OpenHAB (Virtual Machine)
                      Gateway - Arduino Mega MQTT Gateway W5100

                      G 1 Reply Last reply
                      0
                      • S Samuel235

                        So here are a few pictures of my gateway.

                        Gnd and 3v
                        0_1455617226263_image.jpg

                        Then the rest of the inputs from the nRF
                        0_1455617311077_image.jpg

                        Excuse the 4 wires on the right as they're for my LEDs (debugging feature).

                        The connections are:
                        Arduino - nRF24
                        3v - vcc
                        Gnd - gnd
                        16 - miso
                        15 - mosi
                        14 - sck
                        2 - irq
                        5 - ce
                        6 - cs

                        Please note that this pinout is using the soft spi enabled.

                        G Offline
                        G Offline
                        George Whitehouse
                        wrote on last edited by
                        #11

                        Fantastic thanks for the tips and direction.

                        While it may not look look like much... It works!
                        0_1455787316215_FullSizeRender.jpg

                        And after a quick update to the openHAB items file they update just the same as the MQTT broker gateway.

                        Now time to build it into a nice plastic box and figure out how to send it data for a relay.

                        Thanks again.

                        Cheers,
                        George

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


                        33

                        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