carjake
Posts: 18
Joined: Sat Feb 02, 2019 9:30 pm

Detect BPM from light sensor

Tue Apr 09, 2019 11:03 am

Hi there, I am making my own smartwatch for detecting my BPM.
To do that, I used Raspberry Pi 3B+, and made PCB, which is included of VEML6030 light sensor with a normal green LED. But the problem is that I can't get BPM from the sensor.
When I just test the light sensor, it seems to work perfectly but put my finger on the sensor and start to detect BPM, it prints just meaningless decreasing values, not heartbeats. Is it solved if I use IR LED?
If you have any suggestions, I would greatly appreciate it! Thanks!

This is my pcb
Image

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Detect BPM from light sensor

Tue Apr 09, 2019 11:07 am

If you have any suggestions, I would greatly appreciate it!


Suggestions:

Provide a link (URL) for the datasheet or other documentation for the sensor you are using;

Share the code you are using to process the input from the sensor. Use the forum Code tag markup, using the Code button at the top if the message edit screen.

carjake
Posts: 18
Joined: Sat Feb 02, 2019 9:30 pm

Re: Detect BPM from light sensor

Tue Apr 09, 2019 12:41 pm

Thanks for answering about the problem!
Here are the sensor's datasheet and one of my code and github link!
https://github.com/GGChe/Stress_Controller_Device
https://www.vishay.com/docs/84366/veml6030.pdf
https://github.com/GGChe/Stress_Control ... 030rpi.cpp

carjake
Posts: 18
Joined: Sat Feb 02, 2019 9:30 pm

Re: Detect BPM from light sensor

Tue Apr 09, 2019 12:41 pm

B.Goode wrote:
Tue Apr 09, 2019 11:07 am
If you have any suggestions, I would greatly appreciate it!


Suggestions:

Provide a link (URL) for the datasheet or other documentation for the sensor you are using;

Share the code you are using to process the input from the sensor. Use the forum Code tag markup, using the Code button at the top if the message edit screen.
Thanks for answering about the problem!
Here are the sensor's datasheet and one of my code and github link!
https://github.com/GGChe/Stress_Controller_Device
https://www.vishay.com/docs/84366/veml6030.pdf
https://github.com/GGChe/Stress_Control ... 030rpi.cpp

Andyroo

Re: Detect BPM from light sensor

Tue Apr 09, 2019 1:33 pm

I would be surprised if you would get that to work as it’s designed to detect daylight changes not the reflected light.

You need to be looking along the lines of https://calcuttaelectronics.com/product ... te-module/

Return to “Automation, sensing and robotics”