Sensor to measure vital signs - Hardware Hacking General

Hi xda-developers!
I'm working on a application that measures the users heart rate, breathing and register movement.
I have already researched the field of existing sensors, and whats on it's way to release.
One of my biggest concerns is the use of an external sensor vs an integrated sensor in the smartphone - and thats why I need your expertise!
If I use an external sensor, what elements would help me store data about heart rate, breathing and movement? and is there a sensor you would recommend? am I better of using only the smartphone sensor?
One of the other things I have been thinking about is the datatransfer from sensor to smartphone.
I would like to get data day and night, with a sensor that is small and light-weight.
What transmission-type would you use? ANT+ or Bluetooth? or something different?
Oh, one last question:
How would you power a sensor like this?
Any help is appreciated and can't wait to hear your input and comments! :highfive:
- Ganlik

Ganlik said:
Hi xda-developers!
I'm working on a application that measures the users heart rate, breathing and register movement.
I have already researched the field of existing sensors, and whats on it's way to release.
One of my biggest concerns is the use of an external sensor vs an integrated sensor in the smartphone - and thats why I need your expertise!
If I use an external sensor, what elements would help me store data about heart rate, breathing and movement? and is there a sensor you would recommend? am I better of using only the smartphone sensor?
One of the other things I have been thinking about is the datatransfer from sensor to smartphone.
I would like to get data day and night, with a sensor that is small and light-weight.
What transmission-type would you use? ANT+ or Bluetooth? or something different?
Oh, one last question:
How would you power a sensor like this?
Any help is appreciated and can't wait to hear your input and comments! :highfive:
- Ganlik
Click to expand...
Click to collapse
In my opinion, I would like to say that the best option is a sensor with integrated bluetooth, because that will give a "generic" plus to the project (Every smartphone has bluetooth sensor) and i think that it will be easier to configure the conection (you mean datatransfer) between your project and the phone.
Regards and best of luck, it seems it's a good project

Related

Proximity sensor on all the time

After testing the Air Gesture features the first day I had the S4, I disabled them because I'd rather have better battery life than gimmicky features. The only time I'd really use them is if I were going to have messy hands for whatever reason, and didn't want to touch the phone to answer a call. Anyway, today I was taking a video of the phone with a camera without an IR filter, and I noticed that the proximity sensor is on any time the display is active. I verified that all of the Air Gesture features were disabled, and they are. Does anyone know of any purpose this serves? I'd only expect it to be enabled during a call or whenever it's accepting Air Gesture input.
I did notice that while it's expecting Air Gesture input, the proximity sensor is putting out a lot more light, so I'm still getting a little bit of battery savings while having them disabled because it doesn't ramp up the IR output at certain times - but not much.
Has anyone else noticed this?

Is S5 infrared sensor capable of learning IR codes from ir remote?

I have plant to upgrade my s4 to s5 I'm love this function
I know this is an old thread, but I just got an S5, and I have the same question. Many digital cameras, including the one on the S5, can "see" infrared light; it shows up as a bright purple color. Try it sometime; point your TV remote at your phone's camera, and you should see it light up when you push a button. Knowing this, shouldn't it be possible to create an app that uses the camera to learn new codes?
This sounds interesting..
However, to create such an app, one must consider the maximum scanning rate of the camera sensor. Which I suspect isn't as high as the IR pulse frequency. If this happens to be true, the feat would turn out impossible.

Turning phone over to mute?

Had this phone for about 5 days so far, and coming from an old HTC one X I'm amazed by the battery life! And generally really liking the phone, however..........
I cannot seem to find how to mute the phone's alerts by turning the phone over onto it's screen. i.e. in a meeting or restaurant, phone begins to ring... and I can just flip it quickly over to shut it up and know that it won't ring again whilst turned over.
I know I'm probably being stunningly dim, but any hints?
alex.mc said:
Had this phone for about 5 days so far, and coming from an old HTC one X I'm amazed by the battery life! And generally really liking the phone, however..........
I cannot seem to find how to mute the phone's alerts by turning the phone over onto it's screen. i.e. in a meeting or restaurant, phone begins to ring... and I can just flip it quickly over to shut it up and know that it won't ring again whilst turned over.
I know I'm probably being stunningly dim, but any hints?
Click to expand...
Click to collapse
I guess this isn't supported on x play.
alex.mc said:
Had this phone for about 5 days so far, and coming from an old HTC one X I'm amazed by the battery life! And generally really liking the phone, however..........
I cannot seem to find how to mute the phone's alerts by turning the phone over onto it's screen. i.e. in a meeting or restaurant, phone begins to ring... and I can just flip it quickly over to shut it up and know that it won't ring again whilst turned over.
I know I'm probably being stunningly dim, but any hints?
Click to expand...
Click to collapse
That's a handy feature to have... Someone should work on that.
abhish3k9 said:
That's a handy feature to have... Someone should work on that.
Click to expand...
Click to collapse
It's kernel related I think. You can tell the developers about it on kernel related thread.
K.khiladi said:
It's kernel related I think. You can tell the developers about it on kernel related thread.
Click to expand...
Click to collapse
I don't think so. I think, it's just using the proximity sensor to mute the device while receiving a call. An app for non-rooted phones will do. Though, it can be embedded in custom ROMs.
abhish3k9 said:
I don't think so. I think, it's just using the proximity sensor to mute the device while receiving a call. An app for non-rooted phones will do. Though, it can be embedded in custom ROMs.
Click to expand...
Click to collapse
Nope it isn't that easy that just an app would enable it. X play has notification led also but requires custom kernel to support it.
K.khiladi said:
Nope it isn't that easy that just an app would enable it. X play has notification led also but requires custom kernel to support it.
Click to expand...
Click to collapse
I might be wrong, but, enabling the notification LED i.e letting power into it or establishing a connection to it (hardware level) is different than using a (already working) sensor. The feature mentioned in this thread is just a cleaver use of sensors.
abhish3k9 said:
I might be wrong, but, enabling the notification LED i.e letting power into it or establishing a connection to it (hardware level) is different than using a (already working) sensor. The feature mentioned in this thread is just a cleaver use of sensors.
Click to expand...
Click to collapse
The sensors are working correctly but for that particular trick to work there has to be support from software level and that comes from kernel support. I haven't heard of any app that initiates this flip to mute thing. I could also be wrong. I ain't a developer but just reading stuffs everywhere.
You don't need special kernel support for this.
Any app (if you grant the permission) can mute the phone by setting RINGER_MODE_SILENT via Android Audiomanager.
http://developer.android.com/reference/android/media/AudioManager.html
And any app can choose to be notified on sensor data changes of a specific sensor (e.g. proximity semsor) if it registers a listener for this sensor.
http://developer.android.com/reference/android/hardware/SensorManager.html
If you combine both and put it as background service you have an app that mutes the phone based on sensor input. E.g. if proximity sensor if covered. Quite easy.
Though for flip to mute proximity sensor alone probably doesn't help as the sensor is a also covered if the phone is in your pocket. I guess gyroscope would be best, which X Play doesn't have...
But maybe you can detect the flip motion also via clever combination of magnetometer and accelerometer data?
But I would be very surprised if there were no apps in Google Play which offer flip to mute functionality
u42671 said:
You don't need special kernel support for this.
Any app (if you grant the permission) can mute the phone by setting RINGER_MODE_SILENT via Android Audiomanager.
http://developer.android.com/reference/android/media/AudioManager.html
And any app can choose to be notified on sensor data changes of a specific sensor (e.g. proximity semsor) if it registers a listener for this sensor.
http://developer.android.com/reference/android/hardware/SensorManager.html
If you combine both and put it as background service you have an app that mutes the phone based on sensor input. E.g. if proximity sensor if covered. Quite easy.
Though for flip to mute proximity sensor alone probably doesn't help as the sensor is a also covered if the phone is in your pocket. I guess gyroscope would be best, which X Play doesn't have...
But maybe you can detect the flip motion also via clever combination of magnetometer and accelerometer data?
But I would be very surprised if there were no apps in Google Play which offer flip to mute functionality
Click to expand...
Click to collapse
Thanks for correction and I haven't heard of any app with that feature.
I haven't seen a standalone app for this (but then I haven't really looked too hard) but if you have xposed installed you can use GravityBox which has "Flip action while ringing" under the "Phone Tweaks" section. Options are:
Do nothing (default)
Mute ringer
Dismiss call
The flip action is defined as "device is flipped face down while ringing".

windows hello sensor

Hi, can you do something more with the windows hello sensor?? It really looks like the kinect dot, wonder if you can scan 3d object, or have some sort of night vision if an app could use that sensor...
Kinect no (as far as i know it doesnt 'do 3d') but night vision maybe, since its pretty much an IR camera.
A little too early i guess, maybe in a few weeks somebody with the right skillset can have a stab at this
You most definitely can do some more stuff with that camera. It has after all an IR sensor.
You'll need to use the Windows Biometric Framework API.
Creating Client Applications
https://msdn.microsoft.com/en-us/library/windows/desktop/ee829699(v=vs.85).aspx
Windows Hello OEM and IHV app scenarios
https://msdn.microsoft.com/en-us/library/windows/hardware/mt608302(v=vs.85).aspx
It seems to me like there isn't actually any separate IR camera. It seems like the standard front-facing camera plus an infrared LED.
The reason I say that is that if you cover the FFC, then go to the "Improve Recognition" screen where it actually shows you what the device sees, it remains covered.
Just speculation though.
jhoff80 said:
It seems to me like there isn't actually any separate IR camera. It seems like the standard front-facing camera plus an infrared LED.
The reason I say that is that if you cover the FFC, then go to the "Improve Recognition" screen where it actually shows you what the device sees, it remains covered.
Just speculation though.
Click to expand...
Click to collapse
There is a separate (IR?) camera. If you cover the FFC, the iris recognition and the login work normally.
ArsLDN said:
There is a separate (IR?) camera. If you cover the FFC, the iris recognition and the login work normally.
Click to expand...
Click to collapse
Hmm, you're right. I guess the view I was talking about during the Improve Recognition is just showing the regular camera to the user (maybe to give an idea of where the phone needs to be positioned), while using the separate iris scanning camera for the actual training.

[Help] Is it posible to read raw data from proximity sensor and corner sensors

Hi,
I'm building a special app on Moto x style that need access to low level data of proximity sensor (not only "near" and "far")
As far as I know, there are at least 2 diodes in a proximity sensor, how can I read raw data from them.
Also, is there a way to read data from 4 IR sensors at the corners of the phone.
Thank you in advance.
lonelyboycs said:
Hi,
I'm building a special app on Moto x style that need access to low level data of proximity sensor (not only "near" and "far")
As far as I know, there are at least 2 diodes in a proximity sensor, how can I read raw data from them.
Also, is there a way to read data from 4 IR sensors at the corners of the phone.
Thank you in advance.
Click to expand...
Click to collapse
I don't think you can, it is internal to sensor I believe, but the kernel tells the sensor what thresholds are LOW and HIGH to set the FAR or NEAR resulting value. I'm not sure how to read it exactly (don't think you can), but we used to fiddle with these on the Rezound (it had a wacky prox sensor). If anyone knows it would be @chad0989 his thread on this is here, it might help.
The values are PS1_CANC (low threshold) and PS2_CANC (high threshold)
acejavelin said:
I don't think you can, it is internal to sensor I believe, but the kernel tells the sensor what thresholds are LOW and HIGH to set the FAR or NEAR resulting value. I'm not sure how to read it exactly (don't think you can), but we used to fiddle with these on the Rezound (it had a wacky prox sensor). If anyone knows it would be @chad0989 his thread on this is here, it might help.
The values are PS1_CANC (low threshold) and PS2_CANC (high threshold)
Click to expand...
Click to collapse
Thank you for the useful information!

Categories

Resources