So I have an Arduino Uno, Ethernet Shield and a Tinkerkit Sensor Shield stacked but now im trying to figure out how to create a webpage that can activate/deactivate output port 00 on the sensor shield from a website.
I feel this is confusing trying to explain so if there is anything that you should know to help just reply.
Here is my code that i have:
#define RELAY_PIN 11
void setup(){
/* Setup Serial */
Serial.begin(9600);
pinMode(RELAY_PIN, OUTPUT);
digitalWrite(RELAY_PIN, 0);
delay(10);
}
void loop(){
if (digitalRead(RELAY_PIN) == LOW)
{
digitalWrite(RELAY_PIN, 1);
delay(3000);
}
}
This is what i want to activate/deactivate using a checkbox over the web:
void loop(){
if (digitalRead(RELAY_PIN) == LOW)
{
digitalWrite(RELAY_PIN, 1);
delay(3000);
}
}
Could someone add that to my code? Thanks. I am new to Arduino!