-
Notifications
You must be signed in to change notification settings - Fork 94
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
BPM work good and TFT work good but when I combine them, not good! #101
Comments
I actually here is the problem |
@noajm What Arduino are you targeting? Try declaring myBPM as a global variable and moving the value assignment into the if statement, like this:
Since you are printing to the TFT, you don't really need the Serial.print statement in there either? Why are you using those long delays in the loop? I see a total of 1700mS delay. Can you shorten those? Or use a software timer instead? Check out the BlinkWithoutDelay.ino in the |
I have made it global and did not think it worked but I will try again with the taking the delay off. I put them because I was not sure what is going on. my So you think there is no problem if I was using ADC0 pin and PWM pin simultaneously? I just find this block of code:
Do I have critical code ? I will try it with the delay off as you suggested as soon as I go back home from work. |
I don't see any issues with using ADC0 and PWM. We do that with the Fade LED in our example sketch. |
Alright then good to know that so I don't worry about this part.. haha I'm new and everything could sound to me could be the error. BTW forgot to mention that mine is Can not wait to go home and try that.. It has thrown me over the edge for almost 3 days |
Alright, I apologize for taking longer to get back but I have been trying a lot of stuff and none worked. I'm posting codes I have tried and I have recorded a video for each code. First Part Here is code
Second Part Here is code
|
@noajm |
This is exactly where I bought my TFT from |
@biomurph |
Could be this the issue:
Unfortunately, I don't know how to tell what |
I found out that they using |
So all works good but as I said and now when I want to see BPM number on the TFT. My TFT act wired like it will print different color and the letter "B" will be removed from BPM will be missing and the 5s maybe later it will turn all white I don't know why but after long debugging I was able to find the line causing that! which is this -- >
pulseSensor.analogInput(PulseWire);
However, if there is If a take the wire off from A0 things good but will print BPM: 0
The text was updated successfully, but these errors were encountered: