Buzzer goes off intermittently
Posted: Mon Jul 18, 2016 2:32 pm
'Lo all.
I have the below code installed and it seems to be working with the exception of the buzzer going off for a second or two intermittently. Are there just brief unavoidable fluctuations?
I have the below code installed and it seems to be working with the exception of the buzzer going off for a second or two intermittently. Are there just brief unavoidable fluctuations?
Code: Select all
// Buzzer if temp is too high or low, or waterlevel 1 is too high or too low.
if (ReefAngel.DisplayedMenu!=WATERCHANGE_MODE && ReefAngel.DisplayedMenu!=FEEDING_MODE) // Only check if not Feeding Mode or Water Change Mode
{
if ( ReefAngel.Params.Temp[T2_PROBE] < 700 || ReefAngel.Params.Temp[T2_PROBE] > 850 || ReefAngel.WaterLevel.GetLevel(1) > 135 || ReefAngel.WaterLevel.GetLevel(1) < 70)
{
pinMode(lowATOPin,OUTPUT);
digitalWrite(lowATOPin,HIGH);
}
else
{
pinMode(lowATOPin,OUTPUT);
digitalWrite(lowATOPin,LOW);
}}