Go Down

Topic: Connect more arduino (Read 2205 times) previous topic - next topic

marcolindo94

Hello, i'm new in the community, i search information about creating a kind of network with more arduino. I use "arduino Mega2560" for the master (or the server?) and arduino uno for the slaves.
I think about ethernet, with ethernet shield, but it's expensive because i have to use one shield for each arduino and a ethernet switch
I need a full duplex connection, for send information from the master to the slaves and receive status and other information.
The rs495 is good, but isn't full duplex.

Excuse for my english if there are some errors, but i'm italian.

Bye, Marco

robtillaart


Hi Marco,

a cheaper solution with reasonable performance is to use I2C :

- http://arduino.cc/en/Tutorial/MasterWriter + http://arduino.cc/en/Tutorial/MasterReader -

you can extend it to 126(?) devices.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Arrch


Hello, i'm new in the community, i search information about creating a kind of network with more arduino. I use "arduino Mega2560" for the master (or the server?) and arduino uno for the slaves.
I think about ethernet, with ethernet shield, but it's expensive because i have to use one shield for each arduino and a ethernet switch
I need a full duplex connection, for send information from the master to the slaves and receive status and other information.
The rs495 is good, but isn't full duplex.

Excuse for my english if there are some errors, but i'm italian.

Bye, Marco


The million dollar question is how far apart are the devices?

retrolefty

Quote
Excuse for my english if there are some errors, but i'm italian.


So is one of my Arduino boards, but it's not nearly as polite and understandable as you are.  ;)

Lefty

Graynomad

Quote
The rs495 is good, but isn't full duplex.

It can be full- or half-duplex, it's just a matter of how you do it.

How many slaves? How far apart?

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

marcolindo94

Hello.
I answer at all yours questions:

The max distance between the boards is 5 meters, but it have to work at longer distance, like 10 / 20 m
Number of boards is not up to 10.

I can't use I2C because the cables are near motors (for the noise (electrical noise)).

Can i use ethernet connection for more arduino, without any PC?

Thanks, Marco

Graynomad

Quote
Can i use ethernet connection for more arduino, without any PC?

I think so, but I thought you wanted full-duplex.

RS-485 will do full- or half-duplex and cost a lot less.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

marcolindo94

maybe i use rs485... connecting the control pin of the MAX485 to an output of arduino, i can control the direction of messages (TX or RX).. Is it right?

Maybe is the better choice...

Thanks, Marco

Ps: now i do some experiments... :)

tack

NRF24L01+ 2.4GHz 2Mbs modules can be bought in a low power version from China for around £1.30 each. The high power versions, with external antenna, cost about £7.50 each.

Used with the NRF24 and NRF24 Network libraries from maniacbug they may be suitable for your requirements.

The low power ones are certainly cheap enough to buy a few to try out.

retrolefty


maybe i use rs485... connecting the control pin of the MAX485 to an output of arduino, i can control the direction of messages (TX or RX).. Is it right?

Maybe is the better choice...

Thanks, Marco

Ps: now i do some experiments... :)



If you use but one twisted pair then only half-duplex is possible and a need to switch converter chips from send to receive mode is required in your software. However if you run two twisted pairs then true full-duplex is possible and the converter chips are 'hardwired' to send and receive modes.

Lefty


Go Up