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.
lowATOPin for buzzer?
Re: lowATOPin for buzzer?
Yes, you can use the buzzer on the Low ATO, but it would be a little faint.
The buzzer is really meant to be used in a higher voltage than 5V, which is what the ATO port puts out.
Your code looks to be correct.
The buzzer is really meant to be used in a higher voltage than 5V, which is what the ATO port puts out.
Your code looks to be correct.
Roberto.