element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum can i talk to multiple arduinos at the same time with another arduino, in a serial format?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 28 replies
  • Answers 3 answers
  • Subscribers 395 subscribers
  • Views 2845 views
  • Users 0 members are here
Related

can i talk to multiple arduinos at the same time with another arduino, in a serial format?

Former Member
Former Member over 10 years ago

Hello all,

 

I am trying to talk to multiple (say 4) microcontrollers (Arduinos) at the same time. I was wondering if i can setup a serial connection, with a selection line that can detect the neighbor Arduino and enable the corresponding pin to start the serial communication between the two. something like this:image

  • Sign in to reply
  • Cancel

Top Replies

  • bobcroft
    bobcroft over 10 years ago +2 suggested
    Karim, further to Peter's reply I have done something similar to what you want to do using RS485 modules bought cheaply from China / Hong Kong. (Have a look on www.yourduino.com for modules and very useful…
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago +1 verified
    There are several options and without complex switching, the standard TTL pins on D0 and D1 are off the table, at least for direct use I2C is an option, each arduino would have its own address assigned…
  • Former Member
    Former Member over 10 years ago in reply to Robert Peter Oakes +1 suggested
    it is quite of a simple concept: you have multiple units that you can mix and match to pave the way for an assistive surface for tactile sensing, which is modular. so the units may be added/removed from…
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago

    I am not even sure how this will physically work right now

     

    If there are 6 connections to any one node, then it cant be square boards as this would only allow 4, one on each edge, once those 4 are there, your now limited to 3 for each of those boards and depending on the position some only 2 additions

     

    If there physically "Snapping" into place then any node can go on any side and therefor any channel

     

    a complication is identification of each node to keep then unique and routing protocols to get from one node through the network to another, this can consume large amounts of FLASH and RAM, this is why a flat bus (RS485 for example) would work better as it does not worry about that, every one can talk to everyone upto about 127 addressable Nodes

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago

    I am not even sure how this will physically work right now

     

    If there are 6 connections to any one node, then it cant be square boards as this would only allow 4, one on each edge, once those 4 are there, your now limited to 3 for each of those boards and depending on the position some only 2 additions

     

    If there physically "Snapping" into place then any node can go on any side and therefor any channel

     

    a complication is identification of each node to keep then unique and routing protocols to get from one node through the network to another, this can consume large amounts of FLASH and RAM, this is why a flat bus (RS485 for example) would work better as it does not worry about that, every one can talk to everyone upto about 127 addressable Nodes

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 10 years ago in reply to Robert Peter Oakes

    michaelkellett's point: there may be about 10 or 12 of these units, for most of experiments.

    shabaz's point: I think what Peter description is the closest to what I was trying to convey.

    now en considering a square, there must be 4 connections identical. I am hoping to worry about the routing problem at a later stage, where I am going to have a base unit that will pull the information by asking the units step by step and filling out a first route. if I go back to the serial comm should I create half- or full-duplex? would any of them be less costly with respect to the number of pins? I was thinking of 1/2 duplex initially, but then had the impression that i may need to have a clock signal too. Is this a valid use of two lines? other than that i think a 1/2 duplex should make more sense, am I correct?

    Karim.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 10 years ago in reply to Former Member

    Vagueness is making this more complicated to explain than it needs to be. A better diagram would help for a start. And the original diagram and original post didn't specify that topology needed to be identified - does it need to be identified? Any other specifications?

    Secondly, there are one-wire protocols, and of course older variants of Ethernet (think coax) didn't have a separate physical clock line either, it was a single core coax with a screen. It's up to you if you wish to have a separate clock line.

    If you have all connection parallel (i.e. as Michael mentioned, i.e. folding plates game analogy) you can still have different topologies - I think this should now be clear. If it isn't clear, can you indicate this.

    If you wish to identify the topology through connections  then of course you need separate connections on each side. You have the choice to have separate low speed connections as Michael mentioned, or perform it all across the connections as the one-dimensional mesh example I originally gave but extend it to two dimensions if you devise or find a suitable protocol that can avoid routing loops. You could also use four xConnect links on an XMOS device but your original question specifies Arduino. Explaining xConnect is sufficiently complicated that you'd need to study XMOS literature (on their website) I can't do it justice in a paragraph unfortunately.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to shabaz

    The closest thing I found is here Shabaz:

    AltSoftSerial Library, for an extra serial port

    and this on:

    https://www.arduino.cc/en/Tutorial/MultiSerialMega

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube