-
Notifications
You must be signed in to change notification settings - Fork 0
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
Log Weight Changes to EEPROM #5
Comments
@JLJTGR when's you're next availability for this issue? |
I'm still trying to figure out the usage of the HX711 library. So far the only values I get out of it are 2147483647 and -2147483648 (0b01111111 11111111 11111111 11111111 and 0b10000000 00000000 00000000 00000000) |
@JLJTGR Here's working code for initializing HX711. I think you may have pins incorrect.
|
I don't think that's quite it at all. Maybe the current library is fairly different than the one you were used to using. 14/12 are definitely the correct pins. Your previous sample code assumes an int where the function returns a float. You then decimate that truncated float by a power of ten, which causes any reading below 10 lbs to become zero. Your scale calibration value is vastly different than my working one. In short, I didn't understand what your code did, so when I used it blindly it didn't work and I didn't know how to fix it. So I just did that portion from the ground up so I actually had an understanding of it. |
Output example...
|
I should mention that this code requires Arduino 1.6.8 to compile properly by the default IDE. There is a bug that causes the ESP8266 libraries to crash the prototyping function of the default Arduino Builder and the compile will fail. |
Story
As a User, I want to measure pour data from a keg and store locally on the device, in order to capture data for batch analysis.
Desc
The device when monitoring a Keg is looking for changes in weight to signify a pour start and stop to calculate the pour size and timestamp. We've implemented a method for monitoring the keg for pours below. We want to store all readings locally ATC EEPROM not ESP EEPROM for batch export. Export will be a separate Story/Issue
Method
To measure keg pours we watch for stable weight readings in 5 second intervals. Every 5 seconds the weight is checked, if the weight is the same as the last reading the reading is considered stable. If the reading is different we know there is a pour occurring which may take more than one 5 second interval to complete so we begin a new comparison for a second stable reading. I've organized this using two setpoints in an array setpoint[0,1]. Once we have a second stable reading, we mesure the delta between the two points, reset setpointp[0] with the latest stable weight, and store the delta with timestamp as a pour to be transmitted to the system.
Acceptance Criteria
Code Example
The text was updated successfully, but these errors were encountered: