# Sampling Frequency and Bandwidth

If i have a Buck Regulator switching at 200KHz and i want to sample the Voltage and current using OpAmp in tha path connected to ADC(12 bit).

1. What would be the sampling frequency to measure the signal by ADC?

2. what shall be the Bandwidth of the OpAmp for Voltage and for current sense?

If somebody could provide some rule of thumb i could work further

P.S. : In my understanding sampling freq be >2 the switching freq. voltage sense would require lower BW OpAmp as it is slow, i also get confused either to choose the Opamp based on cross over freq or switching freq.

• Sampling, what for? You want to view the waveform like from scope or you want just measure the actual value? Jul 15, 2019 at 6:32
• just to measure the actual value..Let's say ADC be part of Voltage control loop of the Buck Jul 15, 2019 at 6:42
• If we assume that what you are measuring is (nominally) a DC value, it depends on your application. What are you doing with the sampled value? You say voltage control - so you are doing a somewhat slow tuning of output voltage? for what purpose? Battery charging? A DC motor that you are varying speed of? What and why? It depends on how quickly you need the output voltage to vary according to the various control inputs. Jul 15, 2019 at 7:04
• digital control of the power supply would be the application. The controller and compensation shall be part of lets say FPGA i just need to sense the voltage and current. I get your point that anti-aliasing needs to be done before sampling at lets say 1MS/s. My question remains regarding the OpAmp selection for the voltage and current..Do i need to consider only the loop BW to select the OpAmps for Eg if my loop BW is 20KHz then should i select OpAmps with x times 20KHz BW?what would be 'x' times to consider? also regarding sampling i could sample it at 500KS/s with filter at 200KHz ? suggest. Jul 15, 2019 at 7:15
• "just need to sense the voltage and current" <-- we're turning in circles. You don't "just" need to do that, you need to do that to achieve a specific dynamic goal, and that's what you're being asked for. Jul 15, 2019 at 7:54