84Views3Replies

Author Options:

multiple arduinos in a network (mesh), with each possibly being both host and client. Answered

Hello there,

I am trying to put together a mesh topology of arduinos. I have never used them interconnected and now I am hoping to be able to put them together in a way that they may power up and communicate when plugged to one another. so I need them to receive both power and data connection from the one previously connected. for that, i think i need each one of them to be able to act as both host and client. am I correct? would anyone know more, and willing to help?
I very much appreciate any feedback.

Thank you,
Karim.

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
mpilchfamily
mpilchfamily

5 years ago

Just connect pin 1 from one to 2 of the other and vise verse. Now connect the grounds to each other and the 5V out of the one being powered via wall/USB to the 5V in of the other. But what kind of comunication are you wanting to go between the 2?

0
karimskarim
karimskarim

Reply 5 years ago

Thank you for your comment. I would like to have a main unit (Arduino 2560) and then I may connect multiple small units (Arduino Micro) to it and then those units may provide multiple connections to other small units. I would like the main unit to know if and where each small unit is connected to it.

0
mpilchfamily
mpilchfamily

Reply 5 years ago

You want this just to give you more available pins to work with? If so your better off using shift registers.

If a mesh network is needed it's best to connect multiple arduino's through their serial connection to a computer or something like a Raspberry Pie. Something that has the processing power to coordinate this sort of thing.