TSL230 interrupts question

Hello !

I am using the above sensor with two LED to make beat detection based on optic sensor.
But this sensor is returning me number of RISING interrupts for some time I define.

How to interprete these data in order to find the bpm ?

Please supply the code.

Weedpharma

I am actually using this example as a base:

http://playground.arduino.cc/Main/TSL235R

But what I can't get is how to convert that into bpm.
Any guidance or something from someone that actually did it before ?

That code was never intended to be used for heartbeat rate. you should at least increase the frequency of sampling.

change

if (millis() - last >= 1000)

in

if (millis() - last >= 100)

and you will have 10x as much samples (600 per minute). That should be sufficient to see a variation that can be interpreted as the heartbeat

Can you post one minute of the output after the above modification?

please use [code]..[/code] tags around the output

The deltas are very small but if you copy this to Excel an make an XY plot.
you can see 36 beats in 350 samples ~~ 1 beat per second.

now please use

if (millis() - last >= 250)

that should make the deltas bigger