Hi everyone,
i am new to this and am using arduino uno board to power up my dc-dc converter . I need two modes of operation of 20 Khz each. and in the first mode one switch is triggering and in the second mode the next one is triggering. In both case i need to vary my pulse width. If anyone familiar with the code can guide me. I tried to use code words for PWM but couldnot got the result. In both case i am sensing the output voltage and its a closed loop. Expecting replies from you.
Hi, welcome to the forum.
The analogWrite is an PWM signal, but the default frequency is only about 500Hz.
Can you give us more information. For example a schematic ? You can even make a drawing and make a photo of it. When you write a post, below the text field is "Additional Options...", that can be used to attach pictures.
Can you also tell what your goal is ? there might be easier ways to do that.
Have you read this page
http://playground.arduino.cc/Main/RegulatedPositiveVoltageBooster
You can change the freq for the PWM
http://playground.arduino.cc/Code/PwmFrequency
What sort of voltage, current are you looking for?
Use a proper switching mode DC-DC SMPS IC that is what they were designed for.