Buck Converter design with NMos

Not easy for charging … there are some about if you google , but you need to add protection to the cells , keep them balanced , not charged at full rate if the voltage is very low , not over charged, charged as constant current then constant voltage , not left on float.
If you google there are some buck converters designs based on Arduino , but it’s far easier to use an ic designed for the job