Page 1 of 2

Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 9:23 am
by hedrickms
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:

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
Also, tried this in addtion to the setting on constant and using wizard:

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) );
  } 
}

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 9:45 am
by rimai
The module switches from battery mode to live mode when power is applied into the power connectors. That's how the module checks for power outage.
So, if you have a power outage or no power applied to power connectors, the module will switch automatically to battery mode.
If you plug the 24VDC power supply into the power connectors, you should hear a relay clicking inside the module.

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 10:27 am
by hedrickms
Ok I double checked the module and now it started clicking. At first there was nothing then I disconnected the battery and hooked up my other Jebao and now only one is working. I tried switching them and changed power cords but only connection 1 is working-receiving power. I also switched the PWM around and only the one worked. So the battery backup portion is working but the module doesnt appear to be right.

Is it disfunctional or can I check something else?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 10:38 am
by rimai
Do you have 2 jebao pumps or just one?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 11:19 am
by hedrickms
Sorry I will clarify. I actually have two brand new (were still in box) Jebow RW's but only used one to test out the new backup as I was setting it up. When I couldnt get the module to work on the first connection I switched it to the other and still had no luck. I then tried a couple of your suggestions (listening for click and the original OEM controller). At first I didnt hear a click so I disconnected everything and plugged in the original OEM controller and the pump worked. So I started to reconnect to the backup module and on this attempt I heard the click but still no pumping. when I disconnect the power it works on batttery then when I plug power back in the pump stops. So I decide to plug in the other pump and it works. I then do some switching (swap power adapters, pwm, pumps) and only the connector that will work is connector 1. I get nothing out of connector 2 (even with battery disconnected).

After swapping and testing the pumps, PWM channels, and power adapters to different connectors on the backup module I have confimred that both pumps work, both power adapters work, both PWM channels are working and the battery works. The only thing not working now is the connector 2 on the module. I was thinking it may be the actual connector that connects to the pump... thoughts?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 11:22 am
by rimai
Can you try with both pumps connected and both power supplies plugged in??

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 11:25 am
by hedrickms
I have it set up that way now (See edit in previous post). Both pumps connected and only one (connector 1) is working.

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 11:30 am
by rimai
I think I found the problem.
It was an oversight when I designed the boards :(
This is from the manual:
Jebao-Battery-Backup.png
Port 1 is actually Port 2 and vice versa.
Do you also have both dimming ports connected?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 11:39 am
by hedrickms
Yes... I actually ended up setting up the entire backup (both pumps, both dimming ports, and both ac/adapters) just to see if I could figure out why it wasnt working. I guess based on this it may be Power 2 and port 2 that is working the other one doesnt

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 11:50 am
by rimai
So, even after you have everything connected, you still get nothing on one of the sides?
Do both relays click when you connect the power supplies for each respective side?
It is starting to sound like there is something more than just the switched dimming ports.

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 11:54 am
by hedrickms
Correct. Even with everything connected I get nothing on one of connectors. I do hear a click wth both power supplies when I unplug and replug them.

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 11:56 am
by rimai
That doesn't make sense then... :?
Do both pumps run at slower speed when in battery mode?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 11:58 am
by hedrickms
Yes... They did but will double check when I get back home. I was thinking a bad connection somewhere in the box but maybe not.

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 12:34 pm
by hedrickms
Maybe my code too? I will double check the last code I used as well and post a copy to see if I made any errors.

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 12:37 pm
by rimai
Just to simplify and make sure that it is not code related, use this code:

Code: Select all

ReefAngel.PWM.SetDaylight(100);
ReefAngel.PWM.SetActinic(100);

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 12:42 pm
by hedrickms
I cant remember right now but if there are any references to memory= true or false and sync/anti-sync should I remove them?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 12:46 pm
by rimai
Yes, remove them.

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 3:01 pm
by hedrickms
Ok I think I figured out the problem. Its not code but a cable/PWM wire (if you can believe it). One of the PWM wires doesnt connect very well (at the pin). I was able to bend the wire a little to make it work but not sure how long it will last. I will start again with some code to see if it is in fact working/syncing with two pumps and that the battery works.

Thanks again for all the awesome support

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 9:28 pm
by hedrickms
after fixing the cable everything is good. I updated my code and all is functioning. Thanks for the help

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Wed Aug 06, 2014 9:36 pm
by rimai
Awesome!!

Re: Jebeo Battery Backup - still having issues after testing

Posted: Thu Aug 14, 2014 7:52 pm
by hedrickms
Ok sorry to be a pest. I am still having issues with the backup unit. I got it operational and all pumps are running however now for whatever reason the backup is not working. I checked the battery for voltage (11.5v) and even plugged it into a trickle charger to just be sure and still nothing when power off. The unit does click when power goes on and there is voltage coming from the sunpower. Its like nothing is being fed back to he Jebaos.

Any ideas?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Thu Aug 14, 2014 7:57 pm
by hedrickms
I also noticed that the unit wasn't charging (battery was dropping voltage overnight) yesterday. When I checked the battery before charging it was only 5v and I let it sit with light on it for a day and still 5v so I charged it so now its at 11.5v (well see what it is tomorrow). Either way nothing functioning when power off.

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Thu Aug 14, 2014 8:53 pm
by rimai
Are the relays still clicking when you apply power to the port 1 and 2?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Thu Aug 14, 2014 9:20 pm
by hedrickms
If I pullout each plug and plug back in both click. When I turn off the power I hear a click (cant tell if its both) and turn it back on I hear both click

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Thu Aug 14, 2014 9:29 pm
by rimai
If it is clicking, it should work.
I wonder if the low battery voltage was the issue. Did it not spin with the battery charged either?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Thu Aug 14, 2014 9:39 pm
by hedrickms
no it wont spin even after charging. I also tried just one Jebao still nothing. Could there be a short somewhere I can check? Im not sure its charging either (not sure why the battery had low voltage).

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Thu Aug 14, 2014 9:47 pm
by hedrickms
I can confirm that the battery is not charging. After charging the battery to 11.7v and hooking up to the backup it is down to 7v and the Jebaos where running on power (not battery).

Is the issue the box or the battery?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Fri Aug 15, 2014 7:35 am
by rimai
Did you use a different battery charger to charge it?
Is the solar panel blinking blue when it gets light?
If you connect the solar panel directly to the battery, does it charge the battery?

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Fri Aug 15, 2014 9:49 am
by hedrickms
I did charge the battery with a different charger only after I discovered it wasnt charging with the backup unit. It was a 12v trickle charger I use for my bike. It did charge the battery to 11.7v. I immediately plugged it into the unit to see if it would run the Jebaos and nothing. After letting it sit plugged in and running on full power I checked the battery again and it was down to 7v. I didnt try charging directly with the SunForce but I know it is putting out voltage (checked) and because the kids hid the extra cords somewhere LOL.

Does the SunForce panels blink blue? or is there a light somewhere?

I will go and check and let you know.

Ok I checked and didnt see any blue blinking (although I am not sure what is supposed to blink).

Re: Jebeo Battery Backup - only functions on battery mode

Posted: Fri Aug 15, 2014 7:28 pm
by hedrickms
Ok I figured it out again... although Im not sure why it was working (ever) last week. I took the unit apart and noticed that you have the circuit board labeled and the battery and solar ports are backward from what the manual said so I switched them and all is working now. I think you need to double check the manual and swap the picture/instructions for the battery and solar hookups.

We will see tomorrow if the battery still holds a charge/keeps charging.

Thanks again and sorry I am such a noob :)