Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for help: Changing to hgiher sample rate and turning off filtering #11

Open
JamesTimothyMeech opened this issue Dec 3, 2020 · 1 comment

Comments

@JamesTimothyMeech
Copy link

Hello, thanks for all the great work on the breakout board and the accompanying code.

I'm attempting to up the sample rate to 38400 SPS.

To do this I have changed the values written to the MODE1 and MODE2 registers as follows:

ads1262_Reg_Write(MODE1, 0x60);
delay(10);
ads1262_Reg_Write(MODE2, 0x0F);

When I run the code with these values I observe rail to rail random variation in the output in the signal even when measuring a constant voltage. This is not the expected operation.

Am I missing some other register value that I need to change to get this to work?

@HSMinches
Copy link

HSMinches commented Dec 3, 2020

Hello James! Did u setup your INPMUX registers instead of just setting up the MODES? e.g. :

PC_ADS1262.ads1262_Reg_Write(INPMUX, B00001010); // ain0 - aincom
PC_ADS1262.ads1262_Reg_Write(MODE1, B01100000);
PC_ADS1262.ads1262_Reg_Write(MODE2, B01010000);

And regarding the Voltage supply of the ADC are u using +- 2.5V or +5V? I am asking because this will interfere depending on the measurement mode you are using ( PGA enabled or disabled, and the negative measure reference as well). I suggest that you take a look at page 119 of the ads1262 datasheet for more info on that matter.

Edit: Your registers are correct if your electrical connections are following the datasheet guidelines.
Edit 2 because I forgot to mention in edit 1: the MODE2 binary I used as example isn't correlated to yours, it is simply an example of my code.

Best regards.
Heitor S. Mendes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants