I’m trying to use to the ear-clip sensor (http://wiki.seeedstudio.com/wiki/Grove_-_Ear-clip_Heart_Rate_Sensor) but impossible to find sample code for GrovePi+ & Python. the only one code is for Arduino/C with interupt… and some scientist conversion :). I’m not sure to know if I have to connect it on Digital port (Wiki sample with arduino) or on Analog port
thanks for your answer. I bought it on internet site and I met seller about that… it seem that this sensor still sold in the gorvepi+ world…
I created a python code to get heart rate based on time (15, 30, or 60s) and make multiplication… I’m not happy of this solution too simple and too long…
now I looking for detect how many milliseconds there are between two 1 value to calculate the realtime heart rate and stop to use fixed values but I’m fighting with time varibales conversion/operation :(.
I Put myCode in case of someone have same issue than me with ear-clip sensor.
I think the code on the GrovePi that you have written is just too slow to respond to changes in the signal, and nothing much can be done without fiddling with the firmware. Thanks for posting the sensor. Maybe someone else would have the same sensor and they can use this as a starting point to make the sensor compatible with the GrovePi.