Jebeo Battery Backup - only functions on battery mode
Posted: Wed Aug 06, 2014 9:23 am
I just received my battery backup module and hooked it up last night and can not get it to work. It is only functioning on battery mode and not switching to the Jebao power supply so I cant control it through the PWM. I have tried using the Portal, Wizard, and already developed code to control but no luck controlling it or getting it to work off battery mode.
I need help/ideas on what the issue could be or what to check.
Here is an a example of one of the codes I have tried:
Also, tried this in addtion to the setting on constant and using wizard:
I need help/ideas on what the issue could be or what to check.
Here is an a example of one of the codes I have tried:
Code: Select all
ReefAngel.DCPump.UseMemory = true;
ReefAngel.DCPump.DaylightChannel = Sync;
ReefAngel.DCPump.ActinicChannel = AntiSync;
////// Place your custom code below here
if (ReefAngel.DCPump.Mode==Custom)
{
if ( (now()%SECS_PER_DAY >= 77400) || (now()%SECS_PER_DAY<= 34200) ) // 130am - 930pm
{
ReefAngel.PWM.SetDaylight(32);
ReefAngel.PWM.SetActinic(32); // Constant at 32% on sync mode
}
else if ( (now()%SECS_PER_DAY >= 34200) && (now()%SECS_PER_DAY<= 48600) ) // 930pm - 930am
{
ReefAngel.PWM.SetDaylight(36);
ReefAngel.PWM.SetActinic(36); // Constant at 36% on sync mode
}
else if ( (now()%SECS_PER_DAY >= 48600) && (now()%SECS_PER_DAY<= 77400) ) // 930am - 130pm
{
ReefAngel.PWM.SetDaylight(ElseMode(41,8,true));
ReefAngel.PWM.SetActinic( ElseMode(41,8,true)); // Else on sync mode, 41 +/- 8%
}
}
////// Place your custom code above here
Code: Select all
static unsigned long feeding;
// Set timer when in feeding mode
if (ReefAngel.DisplayedMenu==FEEDING_MODE) {
feeding=now();
ReefAngel.PWM.SetDaylight( LongPulseMode(0,45,10,false) );
ReefAngel.PWM.SetActinic( LongPulseMode(0,65,10,false) );
}
else if (now()%SECS_PER_DAY>=34200 && now()%SECS_PER_DAY<43200) { // 9:30am - 12pm
ReefAngel.PWM.SetDaylight( NutrientTransportMode(0,70,400,false) );
ReefAngel.PWM.SetActinic( NutrientTransportMode(0,80,400,false) );
}
else if (now()%SECS_PER_DAY<28800 || now()%SECS_PER_DAY>=81000) { // 10:30pm -> 8am
ReefAngel.PWM.SetDaylight( ReefCrestMode(40,10,false) ); // Reef 40-80
ReefAngel.PWM.SetActinic( ReefCrestMode(40,10,false) );
}
else if (now()%SECS_PER_DAY>=28800 && now()%SECS_PER_DAY<=81000) { // 8am - 10:30 pm
static byte randMode=3;
if (now()%SECS_PER_DAY==28800 || now()%SECS_PER_DAY==43200 || now()%SECS_PER_DAY==48600 || now()%SECS_PER_DAY==54000 || now()%SECS_PER_DAY==59400 || now()%SECS_PER_DAY==64800 || now()%SECS_PER_DAY==70200 || now()%SECS_PER_DAY==75600 || now()%SECS_PER_DAY==81000) randMode=random(1,6);
// 8am 12pm 1:30pm 3pm 4:30pm 6pm 7:30pm 9pm 10:30pm
if (randMode==1) {
ReefAngel.PWM.SetDaylight( SineMode(35,80,85,false) );
ReefAngel.PWM.SetActinic( SineMode(35,80,85,false) ); // Sine 35-90
} if (randMode==2) {
ReefAngel.PWM.SetDaylight( ElseMode(60,20,false) ); // Else 50-90
ReefAngel.PWM.SetActinic( ElseMode(60,20,false) );
} if (randMode==3) {
ReefAngel.PWM.SetDaylight( TidalSwellMode(80,false) ); // Tidal 75
ReefAngel.PWM.SetActinic( TidalSwellMode(80,false) );
} if (randMode==4) {
ReefAngel.PWM.SetDaylight( LongPulseMode(40,80,60,false) ); // Long 30-80
ReefAngel.PWM.SetActinic( LongPulseMode(40,80,60,false) );
} if (randMode==5) {
ReefAngel.PWM.SetDaylight( ReefCrestMode(60,15,false) ); // Reef 40-80
ReefAngel.PWM.SetActinic( ReefCrestMode(60,15,false) );
}
}