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

reading speed #18

Open
agentff6600 opened this issue Sep 24, 2020 · 7 comments
Open

reading speed #18

agentff6600 opened this issue Sep 24, 2020 · 7 comments

Comments

@agentff6600
Copy link

Hi!

I might have a question that seems very obvious for you. But I guess I need to ask somebody.

I have a hard time to figure out what the update speed is. When I plug in the Arduino and look at the serial monitor (or your Gui) it seems like that the data is sent in 1 sec burst.

Is that correct? How could I change that speed?

@Maximum20
Copy link

Did you get it? How to change the speed?

@joicetm
Copy link

joicetm commented May 27, 2021

Hi,

You meant the speed at which the ECG signal is streamed ?
It samples the data in every 8ms (It is configured with a sampling rate of 125 Hz), and sends it in real time. as you can see in the arduino plotter example, it sends the data serially in every 8ms.

Why do you want to increase the speed ?

@Maximum20
Copy link

Sorry, I don't need to change the speed actually, I need to increase the sample rate because the signal is not detailed enough. Can I do it?

@joicetm
Copy link

joicetm commented May 28, 2021

Yes,

It has 3 different sampling rates possible, (128, 256, 512). you can do this by writing to CNFG_ECG Register
Screenshot from 2021-05-28 09-17-02

There is a function in the library to set the sampling rate, call this after max30003_begin()

void MAX30003::max30003SetsamplingRate(uint16_t samplingRate)

It is not tested but you may try it out.
you will also have to adjust the delay in the loop according to the configured sampling rate.

@joicetm
Copy link

joicetm commented May 29, 2021

fyi,

You can increase the gain also If you are looking to increase the signal quality.
The default gain in the example configuration is only 20.

@Maximum20
Copy link

@joicetm I've tried MAX30003_Reg_Write(CNFG_ECG, 0x805011);
If I get right 0x805011 (11) mean to set ECG channel Gain to 160V/V isn't it?
I get more information from the signal but I notice that some heart beats still don't appear on the graph .

if i use MAX30003_Reg_Write(CNFG_ECG, 0x005011); I get more noisy signal
And what does the gain mean? How does it work?

@joicetm
Copy link

joicetm commented May 31, 2021

No,
Its in binary, you will have to write the corresponding hex/decimal value.

Please try 0x835000 for 128 sampling rate and 160 gain.
Keep the hpf and lpf as it will help to reduce the noise.

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

3 participants