I want to make an app that tracks a person’s heart rate and if that heart rate exceeds or is below a predefined limit the app will display a message. I know there are sensors like the accelerometer but I don’t find a sensor to track the heart rate or how to do it.
Related
Is it possible to reading data from accelerometer with very high sample rate? I need about an 1-2 KHZ. My sensor is can read data with sample rate 25 KHZ, but on android it reading data with 200-400 HZ sample rate. What to do?
The sample rate depends in the sensor hardware.
Most Android phones are not equipped with high frequency accelerometers.
You can check what your phone sensor supports using [getHighestDirectReportRateLevel][1] method of the sensor object.
You can also use the Sensor object you get from SensorManager to check the exact model of the accelerometer in your phone and look up its speck sheet.
Is it possible to record the raw light data from the heart rate sensor in Android Wear? I know it's possible to record the calculated heart rate in bpm, but I would like to record the raw light data.
The device I am using is the Polar M600.
This question has been asked before, but I am asking it again in case any new devices or APIs have made access to this data possible since then:
Read underlying color/light data from Android Wear heart rate sensor?
How to access Android Heart Rate Sensor RAW DATA? (reflected light, not the heart beat)
I've no idea what data is shown but on the moto360 sport you can see other information from the heartrate sensor. Using wearSensors you scroll though each sensor on the watch. See if has anything none standard, in the sport case a motorola.sensor.ppg sensor.
I'd like to read the heart rate sensor data on an Android Wear smartwatch. The documentation makes it seem like the heart rate sensor only reports two things:
Heart rate (in beats per minute)
Either an accuracy measure or an error code
Is it possible to get the Android Wear heart rate sensor's underlying data, i.e., the amount of red light (or green or blue light) at any point in time, which it uses to determine when the heart beats?
The Instant Heart Rate app gets color data from the camera (which I know is different from the Android Wear heart rate monitor), which it uses to display a graph of the heart rate:
I'd like to do a similar thing, but with the Android Wear's optical heart rate sensor instead of with the camera. In order to make the graph, I'd need to know the level of red light at any point in time, not just the beats-per-minute measure. Does anyone know if that's possible?
This will be dependent on the manufacturer exposing the data. I agree it could be very cool. For instance, reflectance could be used to analyze spectral data, and beat to beat variability is an indicator of health... Maybe submit a request to Android site to create an API for the raw sensor data?
I have responded to a similar question here: Android Wear: How to get raw PPG data?
Essentially, I was able to record the raw PPG signal from Huawei and Fossil watches. This will let you compute things like Spo2 and HRV.
I am trying to make a game in which the rate a game event occurs (such as climbing or rowing or spinning a wheel) is proportional to the rate at which the user rotates/spins an android device, using either world coordinates or device coordinates.I would like to use accelerometer and gyroscope(or any sensor present on current generation smartphones)
I have looked at calculating distances using accelerometer and Indoor Positioning System based on Gyroscope and Accelerometer . Apparently accurate position/velocity detection is impossible using only these two sensors due to noise.
So my question is : Is it still possible to measure the rate of spinning or rotating of a current gen smartphone.If so how and which types of rotation can be measured?
I do not care about exact displacement or velocity of the device , just some fairly accurate measurement of rate of some repetitive motion to drive game events.
I write a simple app to read accelerometer data and I found that sampling rate is too low(even one sample 5 seconds) when I put phone on the table and keep quiet. I set sampling rate as FASTEST it's sampling rate always is high.
I want to know why and how does Android do this? I guess jni or hardware always read data but it discard data when it find there is no change between two sample.
As you can see from the documentation of the sensor listener the procedure onSensorChanged is called when the sensor changed. This means that if you hold the device still the sensor values won't change.
I have to admit that most phones add noise to sensor values and these values are always changing; you should be 'proud' of your phone - it doesn't add a lot of noise.