+ Post New Thread
Results 1 to 13 of 13

11th November 2019, 10:22 #1
 Join Date
 Mar 2018
 Posts
 103
 Helped
 0 / 0
 Points
 890
 Level
 6
sampling rate vs rate of change of input for control system
I am referring to http://support.ctccontrol.com/custo...rTheLayman.pdf to understand type ii servo loop. Theory provides zero velocity lag for changing velocity inputs.
To implement in hardware, I wanted to know if sampling rate is to made higher than the input rate of change? For example, If I desire to implement 12 bit measurement system (to measure velocity) and input is changing at 100 rps, then the sampling rate must be >(1/4095* 100)seconds or close to 400KHz.?
In other words, should the group delay of the control loop be lower than the input rate of change?

11th November 2019, 11:10 #2
 Join Date
 Jan 2008
 Location
 Bochum, Germany
 Posts
 46,176
 Helped
 14042 / 14042
 Points
 264,250
 Level
 100
Re: sampling rate vs rate of change of input for control system
The calculation makes no sense, there's no reason why the controller shouldn't perform a large step in one sampling interval. Rate of change and group delay have different units and can't be related.
Group delay is however essential for the control loop stability. Preferably, the controller will be designed as time discrete system, considering the zdomain transfer function of the complete loop.

Advertisement

11th November 2019, 11:41 #3
 Join Date
 Mar 2018
 Posts
 103
 Helped
 0 / 0
 Points
 890
 Level
 6
Re: sampling rate vs rate of change of input for control system
I was just thinking that by that time controller makes corrections, the input would have changed making error nonzero all the time.

12th November 2019, 01:43 #4
 Join Date
 Feb 2012
 Location
 L.A. USA Zulu 8
 Posts
 3,705
 Helped
 881 / 881
 Points
 19,302
 Level
 33
Re: sampling rate vs rate of change of input for control system
If I desire to implement 12 bit measurement system (to measure velocity) and input is changing at 100 rps,
rps is a velocity, not a change in velocity.
Do you mean 100rps/s change?
How fast does the velocity change and what speed of correction you need?
Also what are you trying to correct?
Generally the sampling rate would need to be at least twice the highest frequency response of the correction loop.Zapper
Curmudgeon Elektroniker

12th November 2019, 07:52 #5
 Join Date
 Mar 2018
 Posts
 103
 Helped
 0 / 0
 Points
 890
 Level
 6
Re: sampling rate vs rate of change of input for control system
Hi
I mean only velocity. My basic doubt arouse factoring a sampled system. Analog type II system have VCO that produces frequency proportion to error in real time. A sampled system has to wait for the delta time(reciprocal of sampling rate) before correction can be taken. In other words what could be relation ship between sampling rate vs tracking rate of a system with respect to type ii servo loop?

Advertisement

12th November 2019, 12:32 #6
 Join Date
 Mar 2018
 Posts
 103
 Helped
 0 / 0
 Points
 890
 Level
 6
Re: sampling rate vs rate of change of input for control system
Let me give another example. if shaft speed is rotating at 360 deg/s (sawtooth wave) and if I need to quantize it to 12 bit, then sampling interval needs to be 1/4095 sec to ensure that we get 50 %duty cycle wave shape for all bits (btw, i tried this in spice with wave generator and the theory seems to be working)

Advertisement

12th November 2019, 13:27 #7
 Join Date
 Jan 2008
 Location
 Bochum, Germany
 Posts
 46,176
 Helped
 14042 / 14042
 Points
 264,250
 Level
 100
Re: sampling rate vs rate of change of input for control system
The idea behind your examples seems to be that the sampled data should look the same as time continuous data. That's not the way time discrete systems are designed.
You need to sample the shaft position only at the calculated high speed if it can take arbitrary positions at each sample (being moved with infinite torque). But the real system has finite torque and acceleration, respectively finite bandwidth of the position signal. Time discrete system design is utilizing this knowledge.
It can be reasonable to increase the sampling rate above the theoretical minimum according to sampling theorem, may be factor 5 to 20 but not by factor > 1000.

12th November 2019, 14:19 #8
 Join Date
 Mar 2018
 Posts
 103
 Helped
 0 / 0
 Points
 890
 Level
 6
Re: sampling rate vs rate of change of input for control system
Hi FvM
Quick thought process on by fundamental understanding. Suppose I sample 50Hz signal with 1KHz, all I get is 20 points (resolution is 4.5 bits), If I need 12 bits to represent the same signal, then sampling frequency must be 200KHz. What do you think.

13th November 2019, 02:26 #9
 Join Date
 Feb 2012
 Location
 L.A. USA Zulu 8
 Posts
 3,705
 Helped
 881 / 881
 Points
 19,302
 Level
 33
Re: sampling rate vs rate of change of input for control system
Suppose I sample 50Hz signal with 1KHz, all I get is 20 points (resolution is 4.5 bits)
You get 20 points with a 12bit resolution for each point (sample).
You are confusing time resolution with amplitude resolution.Zapper
Curmudgeon Elektroniker

13th November 2019, 05:30 #10
 Join Date
 Mar 2018
 Posts
 103
 Helped
 0 / 0
 Points
 890
 Level
 6
Re: sampling rate vs rate of change of input for control system
I meant amplitude resolution only. Consider sine cos encoder rotating at high speed. In order to detect instantaneous position with high accuracy, my sampling rate must be higher enough to do so.

13th November 2019, 09:08 #11
 Join Date
 Jan 2008
 Location
 Bochum, Germany
 Posts
 46,176
 Helped
 14042 / 14042
 Points
 264,250
 Level
 100
Re: sampling rate vs rate of change of input for control system
Again, you are not understanding the concepts of time discrete signal processing. Required sample rate depends on signal bandwidth, not magnitude resolution.

Advertisement

13th November 2019, 13:03 #12
 Join Date
 Mar 2018
 Posts
 103
 Helped
 0 / 0
 Points
 890
 Level
 6
Re: sampling rate vs rate of change of input for control system
Hi FvM
My brain is bit thicker and hard. It takes a while to understand. Please give it a last try analyzing the following example
Shaft of motor is rotating at velocity 1 rps or 360 deg/s. I have ADC (12 bit) and sampling this signal at 10Hz, that is 10 points/sec (Nyquist satisfied). Now I am talking about resolution of position. By sampling@10Hz , resolution of position becomes 360/10= 36 degrees. If I need to detect instantaneous changes say every 1 degree, then should I not sample at 360 Hz?
Sorry if I am repetitive

17th November 2019, 12:02 #13
 Join Date
 Jan 2008
 Location
 Bochum, Germany
 Posts
 46,176
 Helped
 14042 / 14042
 Points
 264,250
 Level
 100
Re: sampling rate vs rate of change of input for control system
Shaft of motor is rotating at velocity 1 rps or 360 deg/s. I have ADC (12 bit) and sampling this signal at 10Hz, that is 10 points/sec (Nyquist satisfied).
A more practical viewpoint could be: How is the position information processed in your system? If you are running a control algorithm at a fixed rate, it makes sense to sample the position at the same rate.
+ Post New Thread
Please login