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

STOP PulseSensor. #40

Closed
AiWOL opened this issue Feb 20, 2018 · 10 comments
Closed

STOP PulseSensor. #40

AiWOL opened this issue Feb 20, 2018 · 10 comments

Comments

@AiWOL
Copy link

AiWOL commented Feb 20, 2018

Command PulseSensorPlayground.:begin() to START sequence.
How do I STOP the execution PulseSensor sequence?

@biomurph
Copy link
Contributor

Hi AiWOL,

That is a great feature request!
I'll see what I can do to incorporate that into our library.

@bneedhamia
Copy link
Member

AiWOL: Hi, it's so exciting that you're doing cool things with the Pulse Sensor. Can I ask a little about what you want to do? What is it you want to stop happening?

Thanks,
Brad

@AiWOL
Copy link
Author

AiWOL commented Feb 22, 2018 via email

@biomurph
Copy link
Contributor

@AiWOL Pulse Sensor only draws about 4mA when it's on. You could easily attach the Vdd pin (red wire) to any GPIO, and use digitalWrite HIGH and LOW to turn on and off the Pulse Sensor.

@bneedhamia It still might be a good idea to look into what the risks and rewards are in having a software defined end() function. I know it can be tricky, but since the GPIO power is a workable fix there is not a huge hurry to do this.

@ghost
Copy link

ghost commented Apr 15, 2019

Hi guys, just want to ask if there's new updates on how to disable begin() for a while because it disrupts the GPS encoding when merged in the code.

@biomurph
Copy link
Contributor

@rylRAE
I have some code that needs to be tested. It will likely be the end of the week before that is available, and we will be pushing a new version of the library then.

@ghost
Copy link

ghost commented Apr 16, 2019

That would be highly appreciated @biomurph . I do love the library and the sensor for its accuracy. I do hope to have the update soon. God bless guys and well done for you efforts!

@biomurph
Copy link
Contributor

In the mean time, you can use the PulseSensor_BPM_Alternative code example to start with.
in lieu of a stop() method, you can just not call the sawNewSample() since the timing of the signal acquisition is done in software.

@biomurph
Copy link
Contributor

biomurph commented May 3, 2019

@rylRAE
@AiWOL
I now have the library working with new methods
pause()
resume()
isPaused()
Please check out the Toolbox for more info.
To use this version of the Playground, you will need to either clone or download from the repository main page, as it is not formally released yet. If you encounter any bugs, please open a new issue, as it will be concerning new code.

By the way, what Arduino platform are you targeting?

@OliverosA
Copy link

Thank you very much, I had problems using the pulse sensor together with a fingerprint sensor, but when using the .pause () method of the pulse sensor when entering the fingerprint menu it works without any problem!

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