This project will have a php server communicate with an arduino over lan to switch 4 relays on or off.
I have an arduino uno, arduino ethernet shield and relays for hardware.
pins 10,11,12,13 of the arduino uno is connected to the ethernet shield.
pins 2,3,4,5 of the uno will be used to connect the 4 relays.
user pulls up a page( localhost/____.php or .html).
this page will have buttons in the form of small icons(green to 'on',red to 'off').
when the user clicks the 'on' icon for a relay, the corresponding icon switches to the red icon and at the same time, gives a logic high to the pins that are to be connected to the relays.
when the user clicks again, the green icon appears, with the corresponding relay switched off.
additional master switches will be needed.
Basically, have these icons act as virtual switches.
relay 1 = arduino pin 2
| | |
relay 4 = arduino pin 5
what i need you to do is write the source codes and scripts to make this happen.
Are you up for it?