Skip to content

Difference between sampling rate of ADC and Sampling frequency #1

@ranjanpal111

Description

@ranjanpal111

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions