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

No ECG signal #10

Open
stanky95 opened this issue Dec 13, 2017 · 5 comments
Open

No ECG signal #10

stanky95 opened this issue Dec 13, 2017 · 5 comments

Comments

@stanky95
Copy link

Hi,
I have bought a protocentral breakout board for MAX30003 recently and I have been struggling to get it up and running. A similar issue is occuring to me as the one that can be found on the link below:

#6

I'm running an Arduino Leonardo with the latest Arduino IDE version. I have tried several versions from the your github repository with no substantial difference. I have wired everything according to your schematic, except for the MISO/MOSI/SCK pins, which are wired to the ICSP header since Leonardo has SPI pins available only there, as far as I know. I am also using the provided cable and electrodes. Everything is connected via usb to the laptop disconnected from the mains.

I have also detected that it is not an issue in the GUI, since I have tried bypassing it by printing to serial only the ECG data, and not the whole data header, and monitoring it with Serial Plotter - with the same result present.

(just to clarify, I am basically using this:
Serial.println(ecgdata);
instead of the for loop for printing to the serial)

Do you have any clue what might be happening?

@VenkateshBhat
Copy link
Contributor

@stanky95
Try out this code and let me know. I have changed the FCLK pin to a dedicated PWM pin.
Connect the FCLK to digital 9 of Lenardo rest all pins are the same.

test.txt

@stanky95
Copy link
Author

@VenkateshBhat
I have tried the code you provided and swapped the pins:
When using this code, the output is completely constant, usually at zero. It does not matter if leads are connected or not.

I presume that it might have to do with the FCLK? Since the original code was driving the FCLK pin every 16us, which means the period is 32us, which gives a frequency of 31250 Hz, while it is specified in the MAX30003 datasheet that the frequency should be 32768 Hz. I'm not sure why it doesn't work with the PWM.

@VenkateshBhat
Copy link
Contributor

Something is wrong here, it doesn't give a flat line. I checked with the Lenardo board and it is working fine for me with PWM.
Yes the clock should be 32.768KHz, since we can not generate exact clock using the timer prescalar we are using clock close to that.
kindly share your connection setup and arduino sketch.

@AliAlzuabi
Copy link

AliAlzuabi commented Sep 2, 2023

I have a question, what did you use guys to generate FCLK = 32768Hz for Max30003 ?

@protocentralashwin
Copy link
Contributor

Hi @AliAlzuabi , in the latest versions of the boards, 32 KHz clock is generated by a onboard CMOS oscillator and that works fine. So you do not have to generate a separate clock for this.

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

4 participants