We design a solar panel boost converter.Input voltage is from solar panel and at the output there are 5 leds.As a switch we use a nmos transistor but ı need a ardunio code to control the switch.Since the input voltage is variable between 2 V to 4 V , it has to be constant with ardunio code, can anyone help me about this code?