Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sip&Puff sensor spurious failing #63

Open
benjaminaigner opened this issue Jun 6, 2023 · 1 comment
Open

Sip&Puff sensor spurious failing #63

benjaminaigner opened this issue Jun 6, 2023 · 1 comment

Comments

@benjaminaigner
Copy link
Contributor

@ma0027 had the problem of a failing sip&puff sensor.

Workaround: unplug & plug in for a few times.

Reason: unknown

Maybe we should add error handling for the sensor & a restart procedure of I2C.
In addition, it would be good to have error output and maybe a "storage" of error messages.

@ChrisVeigl
Copy link
Contributor

ChrisVeigl commented Jun 18, 2023

i suspect that the problem is that some of the sip/puff sensors introduce significant noise.
Not all sensors (tested v3 boards) behave in the same way!
The attached screenshot shows the noise range of the (already pre-processed) sip/puff signal inside the web gui: no sip/puff activities were performed but the signal fluctuates with more than 30 (corr.: 50!) values. The signal processing default values for the sip/puff sensors have already been chosen sub-optimally (big deadzone around zero) - but even this is not enough for some of the tested boards: due to the high fluctuations it can happen that the zero value can't be adjusted correctly and the sensor value indicates permanted sip or puff - although there is no user interaction. This could be a reason of the malfunctioning although the i2C communcation is still working. (However this is still just an assumption, which should be verified).
This needs more testing and we should try to find the reason why some sensors behave so weakly!
sip_puff_values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants