I was successfully able to install wiznet w5100 and arduino web based home automation in switch box 8) . But was wondering how am i be able to installed relay board wirelessly or by some other method as my other switch board wiring is concealed in wall :
Since it won't be running on batteries the best+cheapest option would probably be ESP8266. You could also use NRF24L01, there are also other WiFi options.
pert:
Since it won't be running on batteries the best+cheapest option would probably be ESP8266. You could also use NRF24L01, there are also other WiFi options.
Thanks for replying
will I be able to use nrf24l01 with Ethernet shield? is it compatible? If yes what would be the communication protocol ? I never worked with merge programming with two modules ? How am I be able to trigger commands ? Any tutorials and help will be much appreciated
The Arduino with the Ethernet Shield(call it Arduino 1) would also have a nrf24l01. To send a command to the other Arduino(call it Arduino 2) you would have to first send the command over Ethermet to Arduino 1 then Arduino 1 would send it over nrf24l01 to Arduino 2. This is why the ESP8266 would be better because then you can send commands directly over the network to either Arduino with a single protocol.
pert:
The Arduino with the Ethernet Shield(call it Arduino 1) would also have a nrf24l01. To send a command to the other Arduino(call it Arduino 2) you would have to first send the command over Ethermet to Arduino 1 then Arduino 1 would send it over nrf24l01 to Arduino 2. This is why the ESP8266 would be better because then you can send commands directly over the network to either Arduino with a single protocol.
.
Thank you very much again for replying
With esp8266 can I use it as standalone webserver? so i can save some space in concealed switch box for 2 channel relays and what would be the best way for providing vcc to both esp8266 and 5v inside switch box?
You can use the ESP8266 standalone or as a module connected to a standard Arduino via serial AT commands. If you use it standalone you may run into some incompatibilities with certain Arduino code/libraries but the ESP8266 community has put a lot of work into making it very compatible when used with this core: GitHub - esp8266/Arduino: ESP8266 core for Arduino And what you're doing doesn't sound very hardware intensive so you shouldn't have much trouble with that.
If you decide to use the ESP8266 as a module it's pretty easy to just communicate directly or this library might be useful: GitHub - ekstrand/ESP8266wifi: ESP8266 Arduino library with built in reconnect functionality.
For power the best practice would probably be to provide a separate power supply to the relay coils and the Arduino/ESP8266 and make sure you have optoisolation on the relay control lines so that there is no way for the mains voltage to fry your electronics. I'd just use a couple of wall warts because that's cheap and easy. Just make sure they provide enough current for your needs. You can get ESP8266 boards with voltage regulators or if you get one of the simple modules you can add your own.
pert:
You can use the ESP8266 standalone or as a module connected to a standard Arduino via serial AT commands. If you use it standalone you may run into some incompatibilities with certain Arduino code/libraries but the ESP8266 community has put a lot of work into making it very compatible when used with this core: GitHub - esp8266/Arduino: ESP8266 core for Arduino And what you're doing doesn't sound very hardware intensive so you shouldn't have much trouble with that.
If you decide to use the ESP8266 as a module it's pretty easy to just communicate directly or this library might be useful: GitHub - ekstrand/ESP8266wifi: ESP8266 Arduino library with built in reconnect functionality.
For power the best practice would probably be to provide a separate power supply to the relay coils and the Arduino/ESP8266 and make sure you have optoisolation on the relay control lines so that there is no way for the mains voltage to fry your electronics. I'd just use a couple of wall warts because that's cheap and easy. Just make sure they provide enough current for your needs. You can get ESP8266 boards with voltage regulators or if you get one of the simple modules you can add your own.
Thank you very much for helping me out
Looks like I had to use my old 12v 1a wall wart and lm7805 5v vtg regulator for relay and 3.3v vtg regulator for esp8266 is this correct ? Or any changes have to be made ?
If your relay board has opto isolation and you use the same wall wart to power the relay coils and the ESP8266 then you lose true opto isolation. If mains voltage leaks into the relay coil then it can travel through the supply line and into the ESP8266, magic smoke ensues. Not really the end of the world considering how cheap the ESP8266 is but it could decrease the reliability of your system and cost you time in diagnosing the failure and replacing the electronics. If you use 2 wall warts, one for the ESP8266 and one for the relay then they are completely separated. That way you won't need to use the lm7805 either because you can just use a 5v wall wart to power the relay coils directly. You probably still need to use a 3.3v regulator for the ESP8266 to ensure a clean power supply.