Pages: [1]   Go Down
Author Topic: Connect more arduino  (Read 2068 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 224
Posts: 13915
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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.
Logged

Rob Tillaart

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

California
Offline Offline
Faraday Member
**
Karma: 92
Posts: 3442
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17303
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.  smiley-wink

Lefty
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8601
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8601
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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... smiley
Logged

UK
Offline Offline
God Member
*****
Karma: 17
Posts: 569
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17303
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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... smiley


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

Logged

Pages: [1]   Go Up
Jump to: