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 2843 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
  • shabaz
    0 shabaz over 10 years ago

    One unique microcontroller (made by XMOS) has a built-in fabric using something called xConnect - it can be used to create a mesh of devices for fairly high speed transfers. Very cool.

    Not only that, but you can call functions residing on other microcontrollers using this scheme. That's something that transputers could do as well, and the technology made its way into

    today's XMOS devices. It's all a digression, but nevertheless they are very interesting microcontrollers for mesh functionality.

     

    Anyway, just to add to the possible topologies since star/bus/mesh have been discussed, yet another option for typical microcontrollers (I implemented on some old PICs in assembler

    a long time ago - I don't have code to share, sorry!) is to create a chain of devices, i.e. there are left and right interfaces at each microcontroller, i.e. a 1-dimensional mesh.

    At the end of the chain, the wire(s) are left unconnected. Think of train carriages.

     

    With some imaginative (i.e. non-standard) protocol you can push short (few bytes) messages (and retrieve the response or responses) across the entire chain, and auto detect the end

    of the chain since there will be no response. You can also detect position (i.e. ordering), if you give each device an identifier.

    It has its limitations, and could be a (relatively) slow method, but depending on the scenario might be good enough for short time-insensitive messages for a small quantity of

    devices - my scenario needed response times suitable for human-to-machine interaction for short message transfer for up to several dozen nodes (i.e. more than the six nodes quantity that you mentioned),

    and it was fine for that.

    You'd need to design the protocol (I cannot share mine), but it's not hard.

     

    Also, I wouldn't use an AVR or low-end PIC for this today either unless there was a compelling reason.

    • 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

    Thank you Shabaz,

    As I mentioned, I need to have mesh network with any unit being able to talk to (at max) 4 to 6 other units. So a chain topology is out of perspective. There was an image I shared, which I am attaching to this post for your attention. Having said all this, and I am assuming you have kindly had a look at the discussion, could you be more specific about the XMOS devices? Also, could you, at all, comment on the soft serial? By a low-end PIC do you mean an Arduino? I appreciate you being more precise.

    Karim.image

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

    Thank you Shabaz,

    As I mentioned, I need to have mesh network with any unit being able to talk to (at max) 4 to 6 other units. So a chain topology is out of perspective. There was an image I shared, which I am attaching to this post for your attention. Having said all this, and I am assuming you have kindly had a look at the discussion, could you be more specific about the XMOS devices? Also, could you, at all, comment on the soft serial? By a low-end PIC do you mean an Arduino? I appreciate you being more precise.

    Karim.image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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