Iam trying to read a pulse sensor from pulsensor.com and send the data through BLE. The pulse sensor code works correctly when separate from the BLE code. When I integrate them together pulse sensor doesn't work.Anyone who have tried this successfully would like your assistance.
Please post the working pulse sensor program and the program that represents your best attempt at sending using BLE.
Also tell us exactly what happens when you try the program with BLE.
A link to the datasheet for the BLE module would also be useful.
...R
It sounds like a timer and interrupt conflict between analog read and software serial.
Robin2:
Please post the working pulse sensor program and the program that represents your best attempt at sending using BLE.Also tell us exactly what happens when you try the program with BLE.
A link to the datasheet for the BLE module would also be useful.
...R
Iam using esp32.
charliekim:
It sounds like a timer and interrupt conflict between analog read and software serial.
I suspected this too.The pulse sensor is using a timer and interrupt.I have tried changing the timer to timer 0,timer 1 ,timer 2 and timer 3.In all cases the pulse sensor data doesnt trasnsmit.Is it possible that BLE and software serial are using all the timers and non left for my pulse sensor.What is your proposed solution.Thanks
Wayne_david:
Iam using esp32.
I am happy to wait until you respond to the other parts in the piece you quoted in Reply #3
...R