hi all
i have writen a code for a VSR for my 4wd.
i have gotten almost all the code working correctly, but this part dosent seem to work as i expected it to.
if (voltage1 or voltage2 >13);
{digitalWrite (Relay, HIGH);
}if (voltage1 and voltage2 <12);
{digitalWrite (Relay, LOW);
}
its turning the relay on, and then off straight away. reguardless of what the voltage on the pin is. have i writen the function incorectly?
Jason