In this part we’ll connect to a webpage and fetch some data from a php script.
When building a project it’s better to test and debug each part on its own instead of trying to debug a much larger system. So we’ll start by attaching an ethernet shield and get it to talk to a webpage. Once that is up and running we’ll connect the second arduino and rf.
Note: For this part you’ll need a webhosting account with a company who provides access to PHP on it’s accounts. Or you’ll need to run a local webserver. Contact your webhost to verify if your account has PHP access enabled.
This video shows a very basic setup of two arduinos talking wireless over RF.
The two rf-boards used in this setup were discussed earlier in this post.
The left arduino has a sensorshield with a PIR-sensor and a rf-transmitter connected to it. When the PIR-sensor detects changes in IR-radition in it’s field of view, it triggers the rf-transmitter and a red led.