Buck Converter design with NMos

Yes, I'll use the INA219 to measure the current in order to obtain a constant current from the buck converter. Just to have a feedback for my code in Arduino.

Can you explain me why I cant use the Arduino to generate the PWM and control the Duty Cycle if the current is higher or lower than set?

Thank you in advance Paul! :slight_smile: