Arduino-to-Arduino Coms via WiFi Routers connected to ethernet shields

Hi, I'm a noob so i would like some help with this project. :stuck_out_tongue:

So firstly, I will explain what am I trying to achieve and then ask you some questions about it.

I plan to make a prototype Traffic Light System. Each intersection has an Arduino Mega to process sensor data and control the Traffic Lights in its corresponding intersection.
This system has sensors (that senses traffic that passes by) connected to the Analog pins of the Mega. The Mega then processes the collected data. The output of this system would be the dynamic (depending on the data) control of the Traffic lights in its respective intersection.

These Arduino Megas (with the Ethernet Shield and Wifi router) communicate data to each other through the bridge connection via Wifi. This data would further increase the predictability of the Megas
reagrding the manipulation of the Traffic Lights.

So my question is - Is this idea achievable? Has anybody tried one of these projects? Do you have any suggestions about them?

It is achievable. I haven't used them for traffic lights, but I have to control other devices. I use MikroTik routers.

edit: If you are looking to keep the timing synchronized on multiple devices, maybe NTP is what you are looking for. You can use your own NTP server. Lately I have been using a RPi for the NTP server. They are set for NTP server right out of the box on the Raspbian Wheezy OS.

Thanks so much. I'll try the NTP Server using RPi.

I'll update the post once I have results. Thanks again!

SurferTim:
It is achievable. I haven't used them for traffic lights, but I have to control other devices. I use MikroTik routers.

Do you have any links that you could provide for my reference?

Actually the examples included with the IDE is what I started with. The UdpNtpClient (as the "client") and UDPSendRecieveString (as the "server").

The UDPSendReceiveString is a misnomer. It should be UDPReceiveSendString. It receives a packet from a "client" and sends a response packet back to it.