View Single Post
 
Old 08-07-2018, 11:51 AM
citfta's Avatar
citfta citfta is online now
Gold Member
 
Join Date: Jun 2008
Posts: 1,309
Okay.

Let's see if this will work for you. The following is not code. It is just a description of what the code should do. I am not that familiar with the code for Arduino. I do most all of my coding for Picaxe.

Beginning of program.

Read battery A
Read battery B
If A>B then go to loop A else go to loop B

Loop A

Pause 30 seconds
Read battery A
If battery A < low set point then go to loop B else return to loop A

Loop B

Pause 30 seconds
Read battery B
If battery B< low set point then go to loop A else return to loop B

I hope this is enough info to help you solve your problem.

Regards,
Carroll
__________________
Just because someone disagrees with you does NOT make them your enemy. We can disagree without attacking someone. This means YOU especially BroMikey.
Reply With Quote