Pages: [1]   Go Down
Author Topic: Two Arduino connected via wifi shield?  (Read 760 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey,

One of my university modules (experiential design) involves creating an interactive system with Arduino. A concept I currently have would be set up as followed:

Arduino ONE:
Wifi Shield
Mic
LED Matrix

Arduino TWO:
Wifi Shield
Mic
LED Matrix

Arduino ONE would INPUT sound via mic and OUTPUT via the LED Matrix of Arduino TWO - This would work vice-versa with both units as a form of ambient communication.

I was wondering if anyone could help me by pointing me in the right direction to setting up two wifi linked/networked Arduino's.

Would this involve having a webpage where the data is uploaded and downloaded and each Arduino points to this page?

Any help would be greatly appreciated.

Thanks,
Nathan smiley
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 179
Posts: 8070
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't think the Arduino WiFi Shield supports AdHoc mode so both shields will have to connect to the same WiFi network.  If you want your system to be portable you can bring a cheap WiFi router with you yo create the network.

The examples cover Web Server and Web Client but for simpler protocols (like Chat) they only demonstrate the Server side.

One issue you might run across is that server.available() will only return a client if that client has sent data.  You should have your client side send a request for more data as soon as it is done processing the previous data.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

0
Offline Offline
Tesla Member
***
Karma: 114
Posts: 8919
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Also apparently some wifi shields can only obtain an IP address via DHCP, which might cause varying addressing issues for servers.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Pages: [1]   Go Up
Jump to: