You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 18, asks for user defined sampling frequency.
And then in Line 43, this 'user defined sampling frequency ' is used to define time step ( as mentioned in line 22) and save it in csv file.
Line 19, asks for sapling rate (sps) of the ADC convertor i.e. ADS1115 (which can be any one of 8, 16, 32, 64, 128, 250, 475, 860 sps).
And then In line 27, ADC conversion is done wrt to this sps as mentioned in line 19.
However, as per my understanding, sapling frequency and sampling rate are same.
So how can we have two different inputs ?
If you could please let me know where is my understanding going wrong, I would be very appreciative.
The text was updated successfully, but these errors were encountered:
Dear @ranjanpal111
thanks for your message. It's been a while since I last looked at this, but I'll try to answer!
The SPS is the rate at which the ADC will sample data and update its registers. The sampling frequency determines how often the python code will query the ADC. So they are different, but not independent. You'd certainly want the SPS to be higher than the sampling freq of the python code.
Thanks a lot for your work. Its very helpful.
I have a query based on your codes.
(ref link: https://github.com/OpenLabTools/RPi_ADS1115/blob/master/code/continuous_read_adc.py ).
Line 18, asks for user defined sampling frequency.
And then in Line 43, this 'user defined sampling frequency ' is used to define time step ( as mentioned in line 22) and save it in csv file.
Line 19, asks for sapling rate (sps) of the ADC convertor i.e. ADS1115 (which can be any one of 8, 16, 32, 64, 128, 250, 475, 860 sps).
And then In line 27, ADC conversion is done wrt to this sps as mentioned in line 19.
However, as per my understanding, sapling frequency and sampling rate are same.
So how can we have two different inputs ?
If you could please let me know where is my understanding going wrong, I would be very appreciative.
The text was updated successfully, but these errors were encountered: