Connection of 2 Arduinos using Ethernet Cable

Control Boards, Controllers, Tethers, Ect.
Post Reply
tcholas
Posts: 21
Joined: Dec 29th, 2013, 2:55 pm

Connection of 2 Arduinos using Ethernet Cable

Post by tcholas »

Hi!
I'm having trouble for connecting two Arduino's using an Ethernet cat5 cable and Ethernet Shields for Arduino.
Someone already did this?
What would you suggest for me? Appreciate any help, I'm in a big trouble!
Thanks so much
fryslan76
Posts: 290
Joined: Dec 18th, 2012, 4:52 pm
Location: Netherlands

Re: Connection of 2 Arduinos using Ethernet Cable

Post by fryslan76 »

Hi,

Looking at the descriptions it should be rather straigth forward. The shield is autosensing so no need for a patch cable.
Maybe you should move this to the Arduino section of the forum. But what did you already try so far?

KR,

Fryslan76
rossrov
Posts: 383
Joined: Feb 28th, 2013, 5:01 pm
Location: Australia

Re: Connection of 2 Arduinos using Ethernet Cable

Post by rossrov »

Hi tcholas. I used something similar to http://arduino.cc/en/Tutorial/UDPSendReceiveString to communicate between Arduino and PC. On the PC you will need the Processing IDE installed then copy and paste the included Processing sketch just the same as you would in Arduino. To talk between Arduinos I would suggest running the examples first using the PC, then see if you can modify the code on one of the Arduinos to emulate the PC. Have not done this myself, but that's where I'd be starting. The code is also in the examples/Ethernet section of the Arduino IDE.

you could also look at
http://arduino.cc/en/Reference/EthernetUDPWrite
http://arduino.cc/en/Reference/EthernetUDPRead
Post Reply