lowATOPin for buzzer?
Posted: Sun Sep 29, 2013 11:42 am
Is it possible to use the lowATOPin for your buzzer, if you are using highATOPin for a real ATO?
I've tried to initialize the value to LOW on startup and my buzzer is always going off...
does something with using highATO (for real) cause the value on the low pin to be changed behind the scenes - or am I just not setting the value to 0 properly with my code below?
(My temp is 772 and I only have a single temp sensor hooked up)
void CheckAlarm()
{
if ( ReefAngel.Params.Temp[T1_PROBE] < 750
|| ReefAngel.Params.Temp[T1_PROBE] > 810 )
{
pinMode(lowATOPin,OUTPUT);
digitalWrite(lowATOPin,HIGH);
}
else
{
pinMode(lowATOPin,OUTPUT);
digitalWrite(lowATOPin,LOW);
}
}
Thanks.
I've tried to initialize the value to LOW on startup and my buzzer is always going off...
does something with using highATO (for real) cause the value on the low pin to be changed behind the scenes - or am I just not setting the value to 0 properly with my code below?
(My temp is 772 and I only have a single temp sensor hooked up)
void CheckAlarm()
{
if ( ReefAngel.Params.Temp[T1_PROBE] < 750
|| ReefAngel.Params.Temp[T1_PROBE] > 810 )
{
pinMode(lowATOPin,OUTPUT);
digitalWrite(lowATOPin,HIGH);
}
else
{
pinMode(lowATOPin,OUTPUT);
digitalWrite(lowATOPin,LOW);
}
}
Thanks.