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 2834 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
  • bobcroft
    0 bobcroft over 10 years ago

    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 information)  These modules contain the necessary parts to correctly terminate the differential line drivers.  One of the advantages of RS485 is that it can be used to link Arduino's 100's of meter's apart. These modules are easily connected to the Arduino's using either the hardware serial ports or the software ports using softSerial.  There is an Arduino library called EasyTransfer, by using this library you can transmit your data and the address of the recipient Arduino.  All Arduino's on the system receive the transmitted data but only the one with the matching address responds to it.  The RS485 bus is bi-directional so each Arduino can both send and receive data. You can use your own custom protocol as to what information you send.  MODBUS is well supported but was much more than I needed.

     

    Hope this helps

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to bobcroft

    thank you all.

    now someone from another department was suggesting the use of Soft Serial ports.

    Would anyone here know about this? I have been reading and I found out it is a software approach to creating serial comm with non-serial pins on Arduino. Here is a link:

    https://www.arduino.cc/en/Reference/softwareSerial

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

    now considering that I have already obtained Arduino Micro, I was hoping to know if I can use some of the pins to essentially create 6 simultaneous serial connections? I found the following link for it:

    AltSoftSerial Library, for an extra serial port

    but there is nothing there for Arduino Micro. I was wondering, on Micro, which pins do I have permission to use for serial comm.?

    I very much appreciate your help in this matter.

    Regards,

    Karim.

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

    the micro should still run the software without an issue but im doubtful if you will get six to run at the same tme, I would think you will run out of memory, RAM etc very fast and have no time to do other things on the arduino

     

    I think you will find that an RS485 aproach or I2C will serve you better and save a ship load of wireing too

     

    another low cost approach would be to use ethernet adapters with each one ot the new and low cost ESP WIFI adapters. All easy to use and can expand way beyond 6 units

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

    I agree with Peter.

     

    I have tried one time only just for curiosity in past and strongly discourage the use of the soft serial method for a good result. Especially in this case that you want to create some kind of network.

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

    I agree with Peter.

     

    I have tried one time only just for curiosity in past and strongly discourage the use of the soft serial method for a good result. Especially in this case that you want to create some kind of network.

    • 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