Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am looking for advice. I have a mouse with sensors. One of them is retreaving signal which anables to calculate pulse. In general what I recive from that sensor are numbers like
2423
2404
2382
2357
2332
2308
2285
2265
2244
2228
2215
2206
2205
2205

and so on. Problem is when I take my finger of sensor, numbers start to jump from 0 to 5000 :

2260
2405
2738
3395
4095
4095
4095
4095
4095
4095
4095
4095
4095
4095
4095
4095
4095
4095
4095
4095
4095
4095
3528
1955
1
0
0
0
0
0
1
1
0
53
335
818
1443
2145

What method you would suggest to handle such jumps and to correct them aproximetly to normal incoming values?
Posted
Comments
Khaniya 21-Oct-10 9:22am    
I think it is depend on your sensor, so i suggest you to prefer catalog of sensor

1 solution

What you do depends on what your sensor is actually reporting: by the look of the numbers it seems to be a time period of some sort between successive Systolic or Diastolic pulses, with a twelve bit counter.
If so, then you may have to disregard maximum (4095, hex FFF) and minimum values, or use a more complex "similarity" check to eliminate the spurious readings.
It is going to depend on what you are using the equipment for - it can't be safety critical because no-one holds on to the mouse all the time!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900