Sample program
//////////////////////////////////////////////////////////
int Optocoupler=8;
void setup()
{
pinMode(Optocoupler,OUTPUT);
}
void loop()
{
digitalWrite(Optocoupler,LOW);
delay(1000);
digitalWrite(Optocoupler,HIGH);
delay(1000);
}
//////////////////////////////////////////////////////////
Result
Red light blinks, on for 1 second and off for 1 second.
*******************************************************************************
keyestudio
www.keyestudio.cc
155
Need help?
Do you have a question about the ARDUINO maker learning kit and is the answer not in the manual?