Hey Guys
I have been testing a new buck converter shield that i have designed. You can see my progress here.
http://forum.arduino.cc/index.php?topic=190642.0
I have managed to use the timer 1 library to output a pwm by manually setting the duty cycle. I have also been able to read input current and voltage and output current and voltage. My next step is being able to make a lab style power supply where the output current limit can be set and the voltage can also be set. This will be handy for experiments and battery charging.
My question is how to vary the duty cycle according to say a voltage set point. Does any body have any code examples that i could pick at to make a working program. I couldn't find much by doing a search.
Thanks