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. 2 Arduinos using the one radio. Possible?

2 Arduinos using the one radio. Possible?

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 6 Posters 807 Views 6 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.
  • HomerH Offline
    HomerH Offline
    Homer
    wrote on last edited by
    #1

    The title really says it all...

    Seeing that I'm having issues running an LED strip and motion sensor from the one Arduino, I was thinking about creating two sensors, one controlling the LED strip and the other for motion sensing. Is it possible for the two to share the one radio? I'm guessing the answer is no, but thought I'd ask.

    Thanks in advance!

    mfalkviddM 1 Reply Last reply
    0
    • HomerH Homer

      The title really says it all...

      Seeing that I'm having issues running an LED strip and motion sensor from the one Arduino, I was thinking about creating two sensors, one controlling the LED strip and the other for motion sensing. Is it possible for the two to share the one radio? I'm guessing the answer is no, but thought I'd ask.

      Thanks in advance!

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      @homer the arduino's can't share the radio. However, it is possible to connect the 2 arduinos over serial (or some other protocol) and let the Arduino that is connected to the radio forward messages that the other Arduino sends over serial.

      But this will create a much more complex sketch, with more sources for trouble, and it will be much harder to troubleshoot. So unless you have a very compelling reason, or want to build complex things to learn, it will not be worth the effort.

      I connected 2 Arduinos over serial in this project. You can study it if you want to.

      HomerH 1 Reply Last reply
      1
      • mfalkviddM mfalkvidd

        @homer the arduino's can't share the radio. However, it is possible to connect the 2 arduinos over serial (or some other protocol) and let the Arduino that is connected to the radio forward messages that the other Arduino sends over serial.

        But this will create a much more complex sketch, with more sources for trouble, and it will be much harder to troubleshoot. So unless you have a very compelling reason, or want to build complex things to learn, it will not be worth the effort.

        I connected 2 Arduinos over serial in this project. You can study it if you want to.

        HomerH Offline
        HomerH Offline
        Homer
        wrote on last edited by
        #3

        @mfalkvidd Thanks for sharing your thoughts. I'll check the link out at a later stage when my confidence is high 😁😁😎

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kimot
          wrote on last edited by kimot
          #4

          I think it is not very difficult sharing radio between two Arduinos.
          But only for sending ...
          Simply hold CS signal off for both Arduinos.
          And connect both of them by signal, which tell each other if it is sending.
          Other Arduino must wait for indication, that radio is free.
          And radio initialisation only from one of them too.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            FlyingDomotic
            wrote on last edited by
            #5

            ... or you may want to connect the radio to one node, and link to the other by some means (like pins, serial ports, I2C ...)

            Have a look, for example, to https://create.arduino.cc/projecthub/MajorLeeDuVoLAB/nano-i2c-io-expander-3e76fc?ref=platform&ref_id=424_updated___&offset=1262

            1 Reply Last reply
            0
            • HomerH Offline
              HomerH Offline
              Homer
              wrote on last edited by
              #6

              More good info! Thanks :+1: :+1: :+1:

              1 Reply Last reply
              0
              • parachutesjP Offline
                parachutesjP Offline
                parachutesj
                wrote on last edited by
                #7

                Well I think this is a workaround because something which should work doesn't for you. I would rather try to find out why your sensor doesn't work in first place. When sharing a radio, it adds complexity rather than reducing it.

                What's the issue?
                I have multiple LED-strips with a motion sensor and they work quite well. However having a good power source is a must, the LED might drain quite some energy.

                HomerH 1 Reply Last reply
                0
                • parachutesjP parachutesj

                  Well I think this is a workaround because something which should work doesn't for you. I would rather try to find out why your sensor doesn't work in first place. When sharing a radio, it adds complexity rather than reducing it.

                  What's the issue?
                  I have multiple LED-strips with a motion sensor and they work quite well. However having a good power source is a must, the LED might drain quite some energy.

                  HomerH Offline
                  HomerH Offline
                  Homer
                  wrote on last edited by
                  #8

                  @parachutesj said in 2 Arduinos using the one radio. Possible?:

                  Well I think this is a workaround because something which should work doesn't for you. I would rather try to find out why your sensor doesn't work in first place. When sharing a radio, it adds complexity rather than reducing it.

                  What's the issue?
                  I have multiple LED-strips with a motion sensor and they work quite well. However having a good power source is a must, the LED might drain quite some energy.

                  I agree, but I feel like I've exhausted everything. If you want you can check out here which is my tale of woe lol

                  1 Reply Last reply
                  0
                  • tianaT Offline
                    tianaT Offline
                    tiana
                    wrote on last edited by
                    #9

                    Hello,

                    Some ware in MySensors website have info how to combine 2 sketches, i think one Arduino can handle all your need.

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


                    16

                    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