ronaldombre / ReBrewie

Custom, Open-Source firmware for the Brewie B20+ (and maybe B20)
MIT License
11 stars 5 forks source link

Pressue sensor readings unreliable #1

Closed ronaldombre closed 3 years ago

ronaldombre commented 3 years ago

Reading values too quickly causes garbage readings, and the current setup seems to overflow above a certain reading, causing negative values. Without knowing anything from a datasheet, it will have to be trial and error to solve.

ronaldombre commented 3 years ago

Found datasheet that shows MSB is a "stale data" bit, so negative values are just old values. New code takes this into account and only updates with fresh readings.