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 + RS-485 + Ethernet + Radio

Arduino + RS-485 + Ethernet + Radio

Scheduled Pinned Locked Moved Hardware
2 Posts 2 Posters 1.8k 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.
  • ThreestarsT Offline
    ThreestarsT Offline
    Threestars
    wrote on last edited by
    #1

    Dear associates!
    I ask to help me with the solution of a task:
    I try to realize a gateway on basis of Arduino UNO, which is possible to connect sensors on RS-485 and RFM69 radio interfaces.
    The Arduino is required to be connected in local network.
    For this I plan to connect MAX485 module with AltSoftSerial library according to the following scheme:
    D8 -> RO,
    D9 -> DI,
    D10 -> not used,
    D2 -> RE/DE.
    At the same time I plan to put the Ethernet W5100 module which standard scheme:
    D13 -> SCK,
    D12 -> MISO/SO,
    D11 -> MOSI/SI,
    D10 -> SS/CS.
    And the RFM69 module with the adjusted scheme:
    D7 -> DIOO,
    A2 -> MISO,
    A1 -> MOSI,
    A0 -> SCK,
    D6 -> NSS.
    I'm not sure for 100% that Arduino will be able to support all these modules at the same time.
    But that most of all concerns me, this simultaneous use of pin D10 - MAX485 and W5100 modules.
    What I can make in this situation? Whether modules will work or what changes it will be required to make?

    1 Reply Last reply
    0
    • RedguyR Offline
      RedguyR Offline
      Redguy
      wrote on last edited by
      #2

      I have just started using mysensors myself but the shared D10 pin you mention is an issue for sure..

      Both the ethernet module and the RFM radio use an SPI connection to communicate. The SPI bus can be shared between multiple devices is you want (MOSI,MISO, SCK), and do so based on a separate signal "Chip Select" Each device sharing the SPI bus need to have their own dedicated CS signal to know if it is their turn to use their shared SPI bus.

      In you proposal however, software based SPI is used ,so both of your devices have their own data pins.. But they still need their own dedicated CS signal. Which is the signal you intend to share.. that wont work,.

      Also, I have been asking around if you can create a combined gateway node for both wireless (NRF/RFM based) and wired (RS485 based) communication.. From what I gather, it is not possible to combine these functions. 2 separate gateway nodes are needed.

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


      27

      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