Step up DC converter, controlling PWM duty cycle

Hi all!

i have been working on building a Switched mode power supply to convert 14.7 volts into 180 volts. The present device is a push-pull configuration, 30-50kHz, I have the power half of the device finished with a hand wound ferrite transformer, ultra fast rectifier diodes, filtering and the appropriate Mosfets to send power to the transformer. I have use an arduino to drive the mosfets and it works just fine but there is no regulation.

I have been trying to use a SG3525 PWM regulator to control the circuit but I am having issues with it at the moment.

I would like to if possible use a Arduino to control the Pulse width of the mosfets to regulate the output of the circuit, increase of decrease the pulse width to keep the output voltage steady.

How would I setup some sort of feedback? I have tried to use a voltage divider to send power to the analog pin of the arduino, then do a analogRead to measure voltage output voltage then adjust the deadtime based on that but nothing happend. Can the arduino read from the analog pin at 30Khz? Is there a better way that I am missing? is it even possible for an arduino to make adjustments this fast?

thanks,

Often they use optoisolators for driving cuts like this.