I am using an arduino for the first time and for my school project I am working with an Arduino UNO and am trying to interface the following two sensors.
Pulse sensor (Pulse Sensor Amped!: PulseSensor.com – World Famous Electronics llc.)
Temperature and Humidity (RHT03)
I am then displaying the temperature, humidity and the BPM to an LCD screen. I am able to get the two sensors working independently of each other but am unable to get them both working at the same time. In the attached file I have the arduino sketches that in my mind should be working.
I have tried to stop interrupts during the section of code that reads and prints the RHT values but the lcd just goes blank and the sensor shows nothing in the serial port.
Please let me know if you have any ideas on how to get these two sensors to work at the same time. I think RHT code will have to be its own interrupt function thingy but i don't have enough expertise to program it.
I have attached the arduino sketch because when I tried to input it into the post it exceeded 9000 characters (sorry for the inconvenience). Let me know if it doesn't attach properly
Thank you guys for your time,
Andrew
Interrupt.ino (5.61 KB)
heart_with_display_and_RHT.ino (3.09 KB)