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

How to run it on Ras Pi4? Is it compatible with Max30101? #13

Open
chen3082 opened this issue Feb 27, 2023 · 1 comment
Open

How to run it on Ras Pi4? Is it compatible with Max30101? #13

chen3082 opened this issue Feb 27, 2023 · 1 comment

Comments

@chen3082
Copy link

Please ask your question

Hi,
I'm using Raspi 4 and Max30101.

I tried to follow the readme in the RasPi project. But having bug when I'm trying to execute after "find_package(max30102 REQUIRED)"

It shows "syntax error near unexpected token 'max30102'

And when I'm executing "./max30102 -i" or "./max30102 -p" or "./max30102 -t reg" it works as expected but when executing "./max30102 -t fifo --times=3" it shows read timeout.

The reason why I'm using this lib for Max30101 is because when I use this library https://github.com/sparkfun/SparkFun_MAX3010x_Sensor_Library

The SparkFun lib works for both Max30102 and Max30101 so I thought might be worth a try. Please let me know if there is anything I have done wrong or if this Max30102 just simply doesn't work on Max30101 or if there is anything I can do to make it work on 30101. Thank you for your time and understanding.

Additional context

No response

@libdriver
Copy link
Owner

Hello, "find_ package()" is a command for CMake to find dependent libraries. It must be written in CMakelists.txt. It is not a command for shell running. It is not necessary for our test. You can just run "make" command and then test this driver.

In order to run the driver efficiently, we use the FIFO interrupt trigger method instead of the SparkFun rotation training method. Therefore, you must connect the INT pin to the raspberry GPIO17. In addition, you need a 4-6 K Ω resistor to connect to 5V, because the interrupt pin of MAX30102 is open-drain.

You can try the above method first. If you have any questions, please contact me.

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