[SOLVED]SainSmart Relay not swiching off


i gifted sainsmart 2 channel relay. can relay switch on, can hear , led turns on. unable switch off no matter how write pin.  code below works @ turning on led , switches on relay never turns off.  also, may notice requires me write pin low come on seems odd.

realy module page

code: [select]
int x;
void setup()
{
  serial.begin(9600);
pinmode(8, output);  // put setup code here, run once:

}

void loop()
{
  serial.println(x);
  digitalwrite(8, low);
  delay(5000);
  digitalwrite(8, high);// put main code here, run repeatedly:
  x++;
}

nevermind figured out.  not giving enough time after high write , bit more research found out low active boards


Arduino Forum > Using Arduino > Project Guidance > [SOLVED]SainSmart Relay not swiching off


arduino

Comments