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. Connenct a RS485 Network to a NodeMCU Gateway?

Connenct a RS485 Network to a NodeMCU Gateway?

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 4.5k 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.
  • ThomasDrT Offline
    ThomasDrT Offline
    ThomasDr
    wrote on last edited by
    #1

    Hello,

    where connect the Pins DI, DE, RE, RO on the NodeMCU?
    And how do I define the pins in the sketch?

    regards
    ThomasD

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

      Just some guesses:
      The PIN assignment for arduino nano is due to the use of altsoftserial lib.
      Most likely you may rather use hardware serial on ESP8266. See http://esp8266.github.io/Arduino/versions/2.3.0/doc/reference.html for the relevant PINs on the ESP (most likely serial0 is the better choice).
      Connect DE-RE (linked together) to any interrupt-capable PIN and adopt sketch accordingly.

      Btw: What is your motivation to build a wired network and then connect the whole thing wirelessly to your controller? (I personally try to get rid of all RF transmissions, so this is why I use RS485 as preferred transport layer and connect the whole thing via USB...)

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

      ThomasDrT 1 Reply Last reply
      1
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #3

        it's a similar setup of what I am planning to do: I'd prefer the rs485 for the security sensors as it can't be jammed and since I'm going to have powered sensors it is not a big issue to have an additional cable.

        1 Reply Last reply
        0
        • rejoe2R rejoe2

          Just some guesses:
          The PIN assignment for arduino nano is due to the use of altsoftserial lib.
          Most likely you may rather use hardware serial on ESP8266. See http://esp8266.github.io/Arduino/versions/2.3.0/doc/reference.html for the relevant PINs on the ESP (most likely serial0 is the better choice).
          Connect DE-RE (linked together) to any interrupt-capable PIN and adopt sketch accordingly.

          Btw: What is your motivation to build a wired network and then connect the whole thing wirelessly to your controller? (I personally try to get rid of all RF transmissions, so this is why I use RS485 as preferred transport layer and connect the whole thing via USB...)

          ThomasDrT Offline
          ThomasDrT Offline
          ThomasDr
          wrote on last edited by
          #4

          @rejoe2 said in Connenct a RS485 Network to a NodeMCU Gateway?:

          Just some guesses:

          Btw: What is your motivation to build a wired network and then connect the whole thing wirelessly to your controller? (I personally try to get rid of all RF transmissions, so this is why I use RS485 as preferred transport layer and connect the whole thing via USB...)

          Hello,

          i will build a few Sensors in the yard and i thing the best way to connect these Sensor Array to the Controller is WIFI.

          regards
          ThomasD

          rejoe2R 1 Reply Last reply
          0
          • ThomasDrT ThomasDr

            @rejoe2 said in Connenct a RS485 Network to a NodeMCU Gateway?:

            Just some guesses:

            Btw: What is your motivation to build a wired network and then connect the whole thing wirelessly to your controller? (I personally try to get rid of all RF transmissions, so this is why I use RS485 as preferred transport layer and connect the whole thing via USB...)

            Hello,

            i will build a few Sensors in the yard and i thing the best way to connect these Sensor Array to the Controller is WIFI.

            regards
            ThomasD

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

            @ThomasDr Thx for info.

            So using wires to connect also teh GW seems not to be an option. And why do you not plan a entirely wireless infrastructure and - if really needed - a repeater node instead of the NodeMCU for the wireless bridge in the house? Especially: RFM69@868MHz should have better range than wifi. To address security related troubles also signing etc. could be used.

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

            ThomasDrT 1 Reply Last reply
            0
            • rejoe2R rejoe2

              @ThomasDr Thx for info.

              So using wires to connect also teh GW seems not to be an option. And why do you not plan a entirely wireless infrastructure and - if really needed - a repeater node instead of the NodeMCU for the wireless bridge in the house? Especially: RFM69@868MHz should have better range than wifi. To address security related troubles also signing etc. could be used.

              ThomasDrT Offline
              ThomasDrT Offline
              ThomasDr
              wrote on last edited by
              #6

              @rejoe2
              I'm assuming the Wifi is the best solution, but if RF868 would be better I'll look at it again.

              I also have a couple Xbee module Series 1, could you start something else?

              Perhaps also an idea add Xbee to the Mysensor API.

              regards
              ThomasD

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              15

              Online

              12.0k

              Users

              11.2k

              Topics

              113.4k

              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