View Single Post
Old 07-31-2018, 07:19 PM
axxelxavier axxelxavier is offline
Join Date: Dec 2011
Posts: 70
I am trying to make a battery swapper for 2 batts setup with arduino, did anybody find a way to solve the voltage threshold issue? So, when the first battery reach the lower level voltage, arduino should switch to second battery, and stay there until he reach also the low voltage, and so on.
I am a complete beginner in programming, but even so, I have learned a lot in past 2 weeks, and after some experiments with N channel Mosfet as switch (VERY INTERESTING, low current draw, but unfortunately, with a BIG issue - non-isolation), now I'm working with relays.
For my setup, I'm using 2 custom voltage divisors, an Arduino Nano, 4 relays board with optocoupler isolation, all powered by 4 x 18650 Li-Ion and a buck converter, to step down voltage to 5 volts. All setup will be soon wired up on a single board.
So far I manage to switch battery at low voltage, but when the load is removed and the battery regain voltage, very quick the setup stay in a kind of perpetual loop On-Off.
Can anybody help me on this?