lowATOPin for buzzer?

Post Reply
rstoc
Posts: 2
Joined: Tue Jun 25, 2013 1:10 pm

lowATOPin for buzzer?

Post by rstoc »

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.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: lowATOPin for buzzer?

Post by rimai »

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.
Roberto.
Post Reply