I am also working on an inexpensive MPPT solution for solar and other applications. Please feel free to follow this thread:
https://forum.solar-electric.com/sh...esources-MPPT-development-technical-questions
The forum is full of experienced individuals in solar and power electronics. I started the thread and will continue to post info as my project develops. I will first experiment with a buck solution, then consider a buck / boost. It took a moment for me to recognize your topology, but I believe you are trying to do this:
A Novel Two Switch Non-inverting Buck-Boost Converter
based Maximum Power Point Tracking System
as described here:
https://iaesjournal.com/online/index.php/IJECE/article/viewFile/2772/pdf
One concern is that at the insolation point at which you might want to boost from your PV source (say you are getting 10V from your 18V panel), the current has diminished to a trivial level, yielding little advantage to the ability to boost the voltage to charge a 12V battery. That is, unless you were thinking about charging, for ex, a 24 or 48 V battery bank from an 18 V panel in full sun.
And maybe you are trying to build the totally versatile charger (any input, any battery config). But judging from your experience (and mine as well) I would start with a much simpler topology and circuit (as I plan to do) and advance from there.
There are a couple of changes from Tim's circuit I would recommend and I will be discussing them on the aforementioned thread.
I just discovered this forum. Looks great and I will continue to look at it and at this thread. I have enabled others to email me directly if they wish. If you and others want to contact me, then do so and I can keep you abreast of updates. I am keeping everything 'open source' for the benefit of all of us.
Regards.