![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDQO3xfp8n_Ly2VstckTybD9f1ey5MLo02sLZli35H2Y2bHz5NoSADYZ_a4E_txHXs56cTKU89ETHZMKio1ua5sx1eXaL9zHiZbUfTJsBYkfNK0nTpf6SpGsljSR2vaeV6ztONL6FC56R/s320/Elro+plugs.jpg)
This is a set containing of one transmitter and a couple receivers to wirelessly switch lights (plugged into the outlets) on or off.
The Arduino has a 433 Mhz transmitter and receiver. This way I can listen to what is being broadcast, or I can send signals/codes myself. This is the one I am using: http://www.emartee.com/product/41357/
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAtL060WRzrcBYYkjjI1KVsQnVW4ogey9CErGfSIUbH-zvcXQd-4AmZRSB48e8nPlzG-tAMa_tX9eyl7yP_Amy6Ui1K15iEvS88cwD6ZZ8JTJBaJwp0Bsmz27d9aVsum-7oxHj9ozKDu_n/s320/RF+Transmitter+receiver.jpg)
I used my Arduino to "sniff" the sent signal from the transmitter to the receiver switching the lights. I did this for all on/off combinations for all lights.
The Arduino is also equipped with an ethernet shield, so I can host a litte web application on it. I use this to be able to command my Arduino over the internet or my house network.
So I have:
- An Arduino that "understands" the remote control and can learn from it;
- The possibility to send signals myself as well;
- A small web application running on the Arduino.
Useful links
- To be able to send and receive the remote's signals, I used the RemoteSwitch library as RF-library, check https://bitbucket.org/fuzzillogic/433mhzforarduino/wiki/Home
- For the webserver on the Arduino, I used the Webduino Library.
- To store the learned codes, and be able to remember them (even after a reset of the Arduino), I store them in the EEPROM. An easy way to store stuff in the EEPROM, is by using the EEPROMAnything code.
- My code examples:
- Simplified source using GET requests and without 7-segment LED display: https://gist.github.com/rogiervandenberg/1f923f0760225054946d
- Source code I am using in the video: https://gist.github.com/rogiervandenberg/1d9c138bbc44524c004c