I was following the circuitry by great Scott for the DIY buck converter here: https://www.youtube.com/watch?v=m8rK9gU30v4 . Created a converter that gives 0-23V on 24V supply.
After this i wanted to add different current limits to this buck converter such as 1/2/3/4/5 Amps for charging different li-ion battery pack. For that i am going to follow this"Traditional method of implementing CC/CV"here:
also have seen this video on adding a current limit to a buck boost converter: https://www.youtube.com/watch?v=8uoo5pAeWZI
with the shunt resistor and all.
Thing is I cannot even understand how is the Traditional method of implementing CC/CV working here and how to approach this software wise.
A more in depth explanation could be quite helpful and any type of suggestions regarding any other way would be highly appreciated.