Simple Communication Between 2 Arduinos on Seperate Wifi Networks

Hi,

My objective is to push a button on one arduino, and have this turn on an LED on another arduino wirelessly. The arduinos will be 50 miles away from eachother hence wifi seems the most efficient connectivity option.

I have found lots of resources on controlling arduinos through web clients however cannot find anything on just direct communication between 2 modules over wifi.

If possible it would be great to have as quick as possible response time as possible, so the push button can be pressed to give a succession of flashes on the receiving arduino.

I will be preferably be using the small cheap wifi modules off ebay as yuns work out a bit too expensive for this hopefully cheap project.

Any help or pointing in the right direction would be great.

I will be preferably be using the small cheap wifi modules off ebay as yuns work out a bit too expensive for this hopefully cheap project.

If you haven't already found your small cheap 50 mile wifi modules, then your project most likely is dead in the water.

The wifi modules will be connected to their local networks

p4philip: The wifi modules will be connected to their local networks

p4philip,

You are probably going to have to communicate thru an intermediary server. I assume both 'local' wifi networks are behind firewall routers? So, you will have to use something like a bittorrent server or maybe some IOT box.

Direct Ardiuno to Ardiuno will be impossible unless you have: 1. Static IP addresses that are Public Addresses, or routed ports. 2. Most ISP block inbound ports, except Specific ones.

You might be able to post a msg (email) and read with the other.

Without a public middleman you would need router config access.

Chuck.

My objective is to push a button on one arduino, and have this turn on an LED on another arduino wirelessly. The arduinos will be 50 miles away from eachother hence wifi seems the most efficient connectivity option.

Is this what you have in mind?

https://www.youtube.com/watch?v=cT6H9IqJOBI

Zoomkat, not quite, it would be far easier to just have them connected to their local wifi networks.

Chuck, that’s a lot of help thank you! How easy would it be to set up a public middleman? Is that just a DNS forwarding service?

p4philip:
Chuck, that’s a lot of help thank you! How easy would it be to set up a public middleman? Is that just a DNS forwarding service?

An Email server is a middle man. The only issue would be latency. Look at SparkFun’s Data Services.

Chuck.


Check out my Kickstarter Project Memory Panes an expansion RAM Shield for Mega2560’s. It adds 1MB of RAM for those projects where 8KB is not enough.