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. Arduino Mega R3 as Node/GW talking DIRECTLY to MQTT Server

Arduino Mega R3 as Node/GW talking DIRECTLY to MQTT Server

Scheduled Pinned Locked Moved Hardware
13 Posts 3 Posters 5.1k Views 2 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.
  • maxtoxM Offline
    maxtoxM Offline
    maxtox
    wrote on last edited by
    #1

    Hi everybody,

    just wondering why we/you do not have a Board (f.e. Arduino Mega) which is the sensornode AND Gateway?

    I have An arduino Mega setup with about 20 sensors/actuators and would like to Use "ioBroker" iobroker.net with integrated MQTT-server (-client too if you need) and would like to send messages over ethernet (w5100 ethernet board) DIRECTLY to MQTT server without using additional GW...

    Can you help me to find the right way to combine MySensors Node+GW in ONE arduino Mega!

    Thank you in Advance!

    Arduino Mega 2560 with iobroker.net (MQTT, node-red, etc..)

    1 Reply Last reply
    0
    • dakkyD Offline
      dakkyD Offline
      dakky
      wrote on last edited by
      #2

      you mean, no nrf module? whats the sense in using the mysensors lib? thats the "main" task (imho): creating a sensor mesh via the nrf module and channeling everthing via the gateway?

      Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
      Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

      Software: MySensors 2.0development

      maxtoxM 1 Reply Last reply
      0
      • maxtoxM Offline
        maxtoxM Offline
        maxtox
        wrote on last edited by
        #3

        Yes... i understand your point...

        BUT

        If all nodes could speak MQTT, why not to use this language and let them speak to controler (if to far away over the gateway, which is acting like a repeater)...

        I did ask it, because i wanted to use sketches from mysensors combining with the (translator) GW, so i can use both (sensor node + GW) in one Box (Arduino MEGA + W5100 shield). An elt this "box" send the data via ethernet to controller using MQTT protokoll, which is the state of the art.

        Arduino Mega 2560 with iobroker.net (MQTT, node-red, etc..)

        1 Reply Last reply
        0
        • dakkyD dakky

          you mean, no nrf module? whats the sense in using the mysensors lib? thats the "main" task (imho): creating a sensor mesh via the nrf module and channeling everthing via the gateway?

          maxtoxM Offline
          maxtoxM Offline
          maxtox
          wrote on last edited by
          #4

          @dakky

          you are already using mega R3 as an client... which "language" are you using to speak to RPI? Which Broker are you using?

          did you try ioBROKER?

          Arduino Mega 2560 with iobroker.net (MQTT, node-red, etc..)

          1 Reply Last reply
          0
          • dakkyD Offline
            dakkyD Offline
            dakky
            wrote on last edited by
            #5

            and how to you want to transmit any data from the nodes to your network? Wired? cables everywhere? wlan? no low power/battery + expensive in relation to the cheap nrf modules.

            my gateway is conencted to the RPI via w5100 ethernet shield. My mqtt broker is mosquitto. simply and functional :D

            Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
            Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

            Software: MySensors 2.0development

            1 Reply Last reply
            0
            • maxtoxM Offline
              maxtoxM Offline
              maxtox
              wrote on last edited by
              #6

              so your setup is following ?

              arduino Sensor node with nrf <----> arduino MEGA as GW with w5100 <--> RPI with a "server/Broker"

              right?

              Arduino Mega 2560 with iobroker.net (MQTT, node-red, etc..)

              1 Reply Last reply
              0
              • maxtoxM Offline
                maxtoxM Offline
                maxtox
                wrote on last edited by
                #7

                which sketch are u using for MEGA? can you share it or tell me the link? Have problems with my MEGA using w5100 :-(

                Arduino Mega 2560 with iobroker.net (MQTT, node-red, etc..)

                1 Reply Last reply
                0
                • dakkyD Offline
                  dakkyD Offline
                  dakky
                  wrote on last edited by dakky
                  #8

                  yep, exactly

                  edit: have a look in the development branch of mysensors. There is a w5100Clientgateway example. I simply changed the pins for the mega and thats it.

                  Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                  Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                  Software: MySensors 2.0development

                  1 Reply Last reply
                  0
                  • maxtoxM Offline
                    maxtoxM Offline
                    maxtox
                    wrote on last edited by maxtox
                    #9

                    WHICH PINS DID you use??? thank you in advance!

                    Arduino Mega 2560 with iobroker.net (MQTT, node-red, etc..)

                    1 Reply Last reply
                    0
                    • dakkyD Offline
                      dakkyD Offline
                      dakky
                      wrote on last edited by
                      #10

                      http://www.mysensors.org/build/ethernet_gateway read the comments

                      Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                      Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                      Software: MySensors 2.0development

                      maxtoxM 2 Replies Last reply
                      0
                      • dakkyD dakky

                        http://www.mysensors.org/build/ethernet_gateway read the comments

                        maxtoxM Offline
                        maxtoxM Offline
                        maxtox
                        wrote on last edited by
                        #11

                        htere are NO comments about W5100...

                        can you please just give me your setup???

                        Thank you ! ;-)

                        Arduino Mega 2560 with iobroker.net (MQTT, node-red, etc..)

                        1 Reply Last reply
                        0
                        • dakkyD dakky

                          http://www.mysensors.org/build/ethernet_gateway read the comments

                          maxtoxM Offline
                          maxtoxM Offline
                          maxtox
                          wrote on last edited by
                          #12

                          @dakky said:

                          http://www.mysensors.org/build/ethernet_gateway read the comments

                          hi...couldn't find any informations about ports for mega R3... please give me your configuration... I think it will help a lot of people!!!!

                          Thank you!

                          Arduino Mega 2560 with iobroker.net (MQTT, node-red, etc..)

                          1 Reply Last reply
                          0
                          • barduinoB Offline
                            barduinoB Offline
                            barduino
                            wrote on last edited by
                            #13

                            Not sure exactly what are you looking for...

                            See if this post helps with the pins.

                            Cheers

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


                            6

                            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