Pages: [1]   Go Down
Author Topic: Maximum Serial Communications Distance (Length)  (Read 1220 times)
0 Members and 1 Guest are viewing this topic.
Spain
Offline Offline
Jr. Member
**
Karma: 0
Posts: 51
I hope I'm not too old for this stuff...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Is there a maximum distance that 2 Arduinos can communicate with each other using serial? 1 of the UNO's will already be an I2C slave to another I2C master so cannot use I2C.

I want to use a UNO to manage display of various types of data collected locally by the other.
I am limited as to the wires I have running from the data collector to the data displayer and thought I could use UNO's to overcome the problem. I cannot dig up the land and lay more cables but I need more sensor data displayed.

Thanks and kind regards,

jB  smiley-cool
Logged

=====================================================
My Grandkids think I'm cool but, actually I'm partially sighted so sorry for any typos

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26569
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you go wireless? There are numerous wireless modules that you communicate with via SPI for fast data transfers.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

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

On the wired front

few feet using TTL
20M using RS-232
1200M using RS-485

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Peoples Republic of Cantabrigia
Offline Offline
God Member
*****
Karma: 6
Posts: 719
Arduino happiness
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I too vote for RS485 for wired connections. For wireless, I would use a ISM-band device with a good antenna.

For the OP, I doubt that I2C would work well beyond a few feet - I seem to remember that it was designed by Phillips for on-PCB use only.
« Last Edit: September 05, 2012, 07:54:28 pm by Constantin » Logged

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

Quote
I seem to remember that it was designed by Phillips for on-PCB use only.
That's correct, these days there are extenders but for 1:1 comms I2C has no benefit anyway.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Peoples Republic of Cantabrigia
Offline Offline
God Member
*****
Karma: 6
Posts: 719
Arduino happiness
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

But for some reason I have much better luck working with I2C devices than SPI ones. Must be me. That TI ADC I tried previously just made me cry uncle in the end.
Logged

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

But for some reason I have much better luck working with I2C devices than SPI ones. Must be me. That TI ADC I tried previously just made me cry uncle in the end.

I've worked some with both I2C and SPI devices and have come to the opinion that both buses are fully functional and useful. However the documentation supplied by many vendors chips make the task of getting them to work at first a lot harder then it should be, it's really a shame in some cases how bad and/or sparse the documentation can be from some device suppliers.

 Once the specific protocol details for a given device are understood and applied I've found both types to work well. I believe SPI can be run faster then I2C if required. But I2C is easier and takes less hardware resources when one starts to or needs to add more and more devices to the bus.

Lefty
« Last Edit: September 05, 2012, 08:13:03 pm by retrolefty » Logged

Pages: [1]   Go Up
Jump to: