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

Processing showing square waveform #23

Open
sheetaltewary opened this issue Mar 27, 2019 · 1 comment
Open

Processing showing square waveform #23

sheetaltewary opened this issue Mar 27, 2019 · 1 comment

Comments

@sheetaltewary
Copy link

@biomurph
I am trying to make the Patient Health Monitoring System, I have interfaced LM35 with a Pulse Sensor when I run code for just a pulse sensor the Processing displays the correct waveform but when I try to run the combined code of both LM35 and Pulse Sensor, processing shows a square type of waveform.
Code:
Patient Health Monitoring.txt
Pictures of waveform
PulseSensor-11846
PulseSensor-3190

@biomurph
Copy link
Contributor

@sheetaltewary
First thing is that you are using deprecated code. Please use the PulseSensor Playground Library Instructions there for loading into Arduino.

In your sketch you are taking long delays. Don't do that. Notice that in the loop code, there is a delay of 20mS. That's so the Processing sketch does not get overwhelmed with data. But you are sending not enough data. Instead of taking delays, use a software timer in the loop so that you ensure that data is sent to the Processing sketch.

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