Sensor signal debouncing
Abstract
One disclosed method includes retrieving a sensor reading, incrementing a reading change counter and setting a stable reading counter in response to the sensor reading not equaling an immediately previous sensor reading, reporting a sensor reading bouncing error and resetting the reading change counter in response to the reading change counter being greater than or equal to a reading change tolerance, incrementing the stable reading counter in response to the sensor reading equaling the immediately previous sensor reading, resetting the stable reading counter and reading change counter in response to the stable reading counter being greater than or equal to a stable reading tolerance, reporting a state change event and setting the most-recent stable sensor reading equal to the sensor reading in response to the sensor reading not being equal to the most-recent stable sensor reading, and setting the previous sensor reading to the sensor reading.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: retrieving a present sensor reading; incrementing a reading change counter and setting a stable reading counter to a predetermined value in response to the present sensor reading not equaling an immediately previous sensor reading; reporting a sensor reading bouncing error and resetting the reading change counter to a predetermined value in response to the reading change counter being greater than or equal to a reading change tolerance; incrementing said stable reading counter in response to the present sensor reading equaling the immediately previous sensor reading; reset
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗