WorldFamousElectronics / PulseSensor_Amped_Processing_Visualizer

Processing code for pulse wave visualization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Processing showing square waveform

sheetaltewary opened this issue · comments

@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

@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.