Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How hard would it be to charge 2 batteries successively ? #4

Open
X-Ryl669 opened this issue Nov 8, 2021 · 2 comments
Open

How hard would it be to charge 2 batteries successively ? #4

X-Ryl669 opened this issue Nov 8, 2021 · 2 comments
Labels
question Further information is requested

Comments

@X-Ryl669
Copy link

X-Ryl669 commented Nov 8, 2021

Let's say you have a primary battery to charge first and when it's charged, switch to charging a second battery. Typical motorhome or RV scenario.

Is that possible ?

I guess 2 mosfet will be required to select which battery to charge, but that would consume 2 more GPIO (or maybe, use a I2C I/O expander on the UEXT interface, that board containing the 2 mosfet and the large trace width).

@martinjaeger
Copy link
Member

Yes, with extra hardware as you described it should be possible to switch between two batteries. However, you have to make sure that you maintain power supply to the MCU during switching, so you can probably only do it while there is solar power available.

There are 8 GPIOs in the UEXT connector, so if you don't need I2C, SPI and UART at the same time, you should be able to use two of them instead of an I2C I/O expander.

I know there are some charge controllers out there which can charge a second battery with lower priority and less current. But I don't know exactly how they realize the current limitation to the second battery. It could be possible to charge the second battery via the load output, limiting the current by a series resistor. However, this would probably be quite wasteful.

@martinjaeger martinjaeger added the question Further information is requested label Nov 8, 2021
@X-Ryl669
Copy link
Author

X-Ryl669 commented Nov 8, 2021

I guess maintaining the power supply is not really an issue since the goal is to top the 2 batteries' charge. So if there's no solar power, the main idea of switching is kind of useless. If the PS fails, then upon solar resumption it'll restart on the first battery. Maybe it'll require more IO to measure the second battery voltage (so it does not switch if it's not present).

I don't think it'll work if we try to PWM the load output to limit the current on it (or it'll require another H-Bridge and an inductor + sense resistor and so on).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants